Skip to content

Commit

Permalink
test(feature): add cash flow activities in assertion of modifier oper…
Browse files Browse the repository at this point in the history
…ations
  • Loading branch information
KennethTrecy committed May 31, 2024
1 parent cdc6718 commit 56a82c2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions t/Feature/Resource/ModifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public function testDefaultIndex()
"accounts" => json_decode(json_encode([ $debit_account, $credit_account ])),
"currencies" => [ $currency ],
"modifiers" => json_decode(json_encode($modifiers)),
"cash_flow_activities" => [
$cash_flow_activity
]
]);
}

Expand Down Expand Up @@ -94,6 +97,9 @@ public function testDefaultShow()
"accounts" => json_decode(json_encode([ $debit_account, $credit_account ])),
"currencies" => [ $currency ],
"modifier" => json_decode(json_encode($modifier)),
"cash_flow_activities" => [
$cash_flow_activity
]
]);
}

Expand Down Expand Up @@ -319,6 +325,7 @@ public function testEmptyIndex()
"accounts" => [],
"currencies" => [],
"modifiers" => [],
"cash_flow_activities" => []
]);
}

Expand Down Expand Up @@ -365,6 +372,9 @@ public function testQueriedIndex()
"accounts" => json_decode(json_encode([ $debit_account, $credit_account ])),
"currencies" => [ $currency ],
"modifiers" => json_decode(json_encode(array_slice($modifiers, 0, 5))),
"cash_flow_activities" => [
$cash_flow_activity
]
]);
}

Expand Down

0 comments on commit 56a82c2

Please sign in to comment.