mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Improve test results.
This commit is contained in:
@@ -574,10 +574,11 @@ class AccountFactoryTest extends TestCase
|
||||
public function testFindOrCreate(): void
|
||||
{
|
||||
/** @var Account $account */
|
||||
$account = $this->getRandomAsset();
|
||||
$account = $this->getRandomRevenue();
|
||||
/** @var AccountFactory $factory */
|
||||
$factory = app(AccountFactory::class);
|
||||
$factory->setUser($this->user());
|
||||
Log::debug(sprintf('Searching for account #%d with name "%s"', $account->id, $account->name));
|
||||
|
||||
$result = $factory->findOrCreate($account->name, $account->accountType->type);
|
||||
$this->assertEquals($result->id, $account->id);
|
||||
|
Reference in New Issue
Block a user