mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
Fix test coverage.
This commit is contained in:
@@ -878,6 +878,12 @@ class TransactionFactoryTest extends TestCase
|
||||
// first search action is for the asset account, second is for expense account.
|
||||
$accountRepos->shouldReceive('findNull')->andReturn($asset, $expense)->atLeast()->once();
|
||||
|
||||
// Find budget, but based on null it returns null.
|
||||
$budgetFactory->shouldReceive('find')->withArgs([null, null])->andReturnNull()->atLeast()->once();
|
||||
|
||||
// find category, but none are present so return null.
|
||||
$categoryFactory->shouldReceive('findOrCreate')->withArgs([null, null])->andReturnNull()->atLeast()->once();
|
||||
|
||||
// factories return various stuff:
|
||||
$currencyFactory->shouldReceive('find')->andReturn(null, null)->atLeast()->once();
|
||||
|
||||
@@ -896,7 +902,7 @@ class TransactionFactoryTest extends TestCase
|
||||
|
||||
$newCount = $withdrawal->transactions()->count();
|
||||
|
||||
$this->assertEquals($count, $newCount);
|
||||
$this->assertEquals($count, $newCount - 2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user