mirror of
https://github.com/werkraum-media/calendar.git
synced 2024-11-21 17:46:08 +01:00
Merge pull request #2 from werkraum-media/bugfix/tests-ci
Fix broken tests
This commit is contained in:
commit
21686dcc8e
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