mirror of
https://github.com/werkraum-media/calendar.git
synced 2024-12-22 04:56:08 +01:00
Merge branch 'task/localization' of https://github.com/werkraum-media/calendar into task/localization
This commit is contained in:
commit
c00f38073a
1 changed files with 13 additions and 1 deletions
|
@ -70,7 +70,19 @@ class DayTest extends TestCase
|
|||
);
|
||||
|
||||
self::assertInstanceOf(\DateTimeImmutable::class, $subject->getDateTimeInstance());
|
||||
self::assertSame($dateTimeInstance->format('U'), $subject->getDateTimeInstance()->format('U'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function providedDateTimeInstanceHasExpectedDay(): void
|
||||
{
|
||||
$dateTimeInstance = new \DateTime();
|
||||
$subject = new Day(
|
||||
$dateTimeInstance
|
||||
);
|
||||
|
||||
self::assertSame($dateTimeInstance->format('d.m.Y'), $subject->getDateTimeInstance()->format('d.m.Y'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue