mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Fix code quality and run.
This commit is contained in:
@@ -43,7 +43,7 @@ class NavigationPreferredCarbonFormatTest extends TestCase
|
||||
$this->navigation = new Navigation();
|
||||
}
|
||||
|
||||
public static function providePeriods(): array
|
||||
public static function providePeriods(): iterable
|
||||
{
|
||||
return [
|
||||
'1 week' => ['start' => Carbon::now(), 'end' => Carbon::now()->addWeek(), 'expected' => 'Y-m-d'],
|
||||
@@ -67,6 +67,6 @@ class NavigationPreferredCarbonFormatTest extends TestCase
|
||||
public function testGivenStartAndEndDatesWhenCallPreferredCarbonFormatThenReturnsTheExpectedFormatSuccessful(Carbon $start, Carbon $end, string $expected)
|
||||
{
|
||||
$carbonFormat = $this->navigation->preferredCarbonFormat($start, $end);
|
||||
$this->assertEquals($expected, $carbonFormat);
|
||||
self::assertSame($expected, $carbonFormat);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user