mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Improve test coverage.
This commit is contained in:
@@ -333,6 +333,9 @@ abstract class TestCase extends BaseTestCase
|
||||
DB::raw('COUNT(transaction_journal_id) as ct'),
|
||||
]
|
||||
)->first();
|
||||
if(null === $result) {
|
||||
throw new FireflyException(sprintf('Cannot find suitable %s to use.', $type));
|
||||
}
|
||||
|
||||
return TransactionJournal::find((int)$result->transaction_journal_id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user