mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-04 13:16:31 +00:00
Improve test coverage.
This commit is contained in:
@@ -101,6 +101,7 @@ class PiggyBankEventFactoryTest extends TestCase
|
||||
$repos->shouldReceive('getRepetition')->andReturn(null);
|
||||
$repos->shouldReceive('getExactAmount')->andReturn('0');
|
||||
|
||||
Log::warning('The following error is part of a test.');
|
||||
$this->assertNull($factory->create($transfer, $piggy));
|
||||
}
|
||||
|
||||
@@ -115,7 +116,7 @@ class PiggyBankEventFactoryTest extends TestCase
|
||||
$piggy = $this->user()->piggyBanks()->first();
|
||||
/** @var PiggyBankEventFactory $factory */
|
||||
$factory = app(PiggyBankEventFactory::class);
|
||||
|
||||
Log::warning('The following error is part of a test.');
|
||||
$this->assertNull($factory->create($deposit, $piggy));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user