mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Improve factories and tests.
This commit is contained in:
@@ -122,6 +122,14 @@ abstract class TestCase extends BaseTestCase
|
||||
return $this->getRandomAccount(AccountType::ASSET);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Account
|
||||
*/
|
||||
public function getRandomLoan(): Account
|
||||
{
|
||||
return $this->getRandomAccount(AccountType::LOAN);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return TransactionJournal
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user