mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-01 03:29:33 +00:00
Improve test coverage.
This commit is contained in:
@@ -50,6 +50,8 @@ class FrontpageControllerTest extends TestCase
|
||||
*/
|
||||
public function testPiggyBanks(): void
|
||||
{
|
||||
$this->mockDefaultSession();
|
||||
|
||||
$piggy = $this->user()->piggyBanks()->first();
|
||||
$repository = $this->mock(PiggyBankRepositoryInterface::class);
|
||||
$repository->shouldReceive('getPiggyBanks')->andReturn(new Collection([$piggy]));
|
||||
|
||||
Reference in New Issue
Block a user