mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix some tests.
This commit is contained in:
@@ -108,32 +108,6 @@ class NavigationTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Support\Navigation
|
||||
*/
|
||||
public function testAddPeriodError(): void
|
||||
{
|
||||
$tests = [
|
||||
// period, skip, start, expected end
|
||||
['bla', 0, '2018-01-01', '2018-01-02'],
|
||||
];
|
||||
|
||||
/** @var array $test */
|
||||
foreach ($tests as $test) {
|
||||
|
||||
$freq = $test[0];
|
||||
/** @noinspection MultiAssignmentUsageInspection */
|
||||
$skip = $test[1];
|
||||
$start = new Carbon($test[2]);
|
||||
$nav = new Navigation;
|
||||
try {
|
||||
$nav->addPeriod($start, $freq, $skip);
|
||||
} catch (FireflyException $e) {
|
||||
$this->assertEquals('Cannot do addPeriod for $repeat_freq "bla"', $e->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Support\Navigation
|
||||
*/
|
||||
|
Reference in New Issue
Block a user