mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix test again
This commit is contained in:
parent
257b1af23f
commit
ee67f60652
@ -288,9 +288,14 @@ class AppRequestControllerTest extends TestCase
|
|||||||
}
|
}
|
||||||
// decay balance variy always
|
// decay balance variy always
|
||||||
if(isset($expected['transactions'])) {
|
if(isset($expected['transactions'])) {
|
||||||
|
$dynamic_transaction_fields = ['decay_duration', 'balance'];
|
||||||
foreach($expected['transactions'] as $i => $transaction) {
|
foreach($expected['transactions'] as $i => $transaction) {
|
||||||
if(isset($transaction['type']) && isset($transaction['balance']) && $transaction['type'] == 'decay') {
|
if(isset($transaction['type']) && $transaction['type'] == 'decay') {
|
||||||
$expected['transactions'][$i]['balance'] = $json->transactions[$i]['balance'];
|
foreach($dynamic_transaction_fields as $field) {
|
||||||
|
if(isset($transaction[$field])) {
|
||||||
|
$expected['transactions'][$i][$field] = $json->transactions[$i][$field];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user