mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix phpunit tests
This commit is contained in:
@@ -25,6 +25,7 @@ declare(strict_types=1);
|
||||
namespace Tests\unit\Support;
|
||||
|
||||
use FireflyIII\Support\Navigation;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use Tests\integration\TestCase;
|
||||
|
||||
/**
|
||||
@@ -38,17 +39,18 @@ use Tests\integration\TestCase;
|
||||
*/
|
||||
final class NavigationPreferredCarbonFormatByPeriodTest extends TestCase
|
||||
{
|
||||
private readonly Navigation $navigation;
|
||||
private Navigation $navigation;
|
||||
|
||||
public function __construct(string $name)
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::__construct($name);
|
||||
parent::setUp();
|
||||
$this->navigation = new Navigation();
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider providePeriods
|
||||
*
|
||||
*/
|
||||
#[DataProvider('providePeriods')]
|
||||
public function testGivenAPeriodWhenCallPreferredCarbonFormatByPeriodThenReturnsExpectedFormat(string $period, string $expected): void
|
||||
{
|
||||
$formatPeriod = $this->navigation->preferredCarbonFormatByPeriod($period);
|
||||
|
Reference in New Issue
Block a user