mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Various code coverage changes and code updates.
This commit is contained in:
@@ -188,7 +188,7 @@ class MassControllerTest extends TestCase
|
||||
$repository = $this->mock(JournalRepositoryInterface::class);
|
||||
$repository->shouldReceive('firstNull')->once()->andReturn(new TransactionJournal);
|
||||
$repository->shouldReceive('update')->once();
|
||||
$repository->shouldReceive('find')->once()->andReturn($deposit);
|
||||
$repository->shouldReceive('findNull')->once()->andReturn($deposit);
|
||||
$repository->shouldReceive('getTransactionType')->andReturn('Deposit');
|
||||
$repository->shouldReceive('getNoteText')->andReturn('Some note');
|
||||
|
||||
|
@@ -84,6 +84,8 @@ class SingleControllerTest extends TestCase
|
||||
$journalRepos->shouldReceive('getJournalBudgetId')->andReturn(0);
|
||||
$journalRepos->shouldReceive('getJournalCategoryName')->andReturn('');
|
||||
$journalRepos->shouldReceive('getTags')->andReturn([]);
|
||||
$journalRepos->shouldReceive('getMetaField')->andReturnNull();
|
||||
|
||||
|
||||
$note = new Note();
|
||||
$note->id = 5;
|
||||
|
Reference in New Issue
Block a user