mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Test coverage.
This commit is contained in:
@@ -97,6 +97,9 @@ class AllModelsTest extends TestCase
|
|||||||
$tj->components()->save($budget);
|
$tj->components()->save($budget);
|
||||||
$tj->components()->save($category);
|
$tj->components()->save($category);
|
||||||
$user->transactionjournals()->save($tj);
|
$user->transactionjournals()->save($tj);
|
||||||
|
$tj->user()->associate($user);
|
||||||
|
|
||||||
|
$this->assertEquals($tj->user_id, $user->id);
|
||||||
|
|
||||||
$this->assertCount(2, $tj->components()->get());
|
$this->assertCount(2, $tj->components()->get());
|
||||||
$this->assertCount(1, $tj->budgets()->get());
|
$this->assertCount(1, $tj->budgets()->get());
|
||||||
|
Reference in New Issue
Block a user