Merge branch 'task/localization' of https://github.com/werkraum-media/calendar into task/localization

This commit is contained in:
Dirk Koritnik 2020-11-30 13:06:15 +01:00
commit c00f38073a

View file

@ -70,7 +70,19 @@ class DayTest extends TestCase
); );
self::assertInstanceOf(\DateTimeImmutable::class, $subject->getDateTimeInstance()); 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'));
} }
/** /**