mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
Fixed tests.
This commit is contained in:
@@ -109,6 +109,9 @@ class TransactionJournalModelTest extends TestCase
|
||||
$tag->transactionJournals()->save($withdrawal);
|
||||
$tag->transactionJournals()->save($deposit);
|
||||
|
||||
$withdrawal->save();
|
||||
$deposit->save();
|
||||
|
||||
// amount should be 210.12:
|
||||
$this->assertEquals('210.12', $withdrawal->amount);
|
||||
$this->assertEquals('0', $deposit->amount);
|
||||
@@ -175,8 +178,11 @@ class TransactionJournalModelTest extends TestCase
|
||||
$transfer->transactions[1]->amount = 123.45;
|
||||
$transfer->transactions[1]->save();
|
||||
|
||||
$withdrawal->save();
|
||||
$amount = $withdrawal->amount;
|
||||
|
||||
|
||||
|
||||
$this->assertEquals('0', $amount);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user