Improve factories and tests.

This commit is contained in:
James Cole
2019-03-18 16:52:49 +01:00
parent 200a4b18a8
commit 3545d894fd
11 changed files with 1901 additions and 1398 deletions

View File

@@ -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
*/