aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/front/controller/DailyControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/front/controller/DailyControllerTest.php')
-rw-r--r--tests/front/controller/DailyControllerTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/front/controller/DailyControllerTest.php b/tests/front/controller/DailyControllerTest.php
index bb453d5b..2714bfd9 100644
--- a/tests/front/controller/DailyControllerTest.php
+++ b/tests/front/controller/DailyControllerTest.php
@@ -112,6 +112,8 @@ class DailyControllerTest extends TestCase
112 'Daily - '. format_date($currentDay, false, true) .' - Shaarli', 112 'Daily - '. format_date($currentDay, false, true) .' - Shaarli',
113 $assignedVariables['pagetitle'] 113 $assignedVariables['pagetitle']
114 ); 114 );
115 static::assertEquals($currentDay, $assignedVariables['dayDate']);
116 static::assertEquals($currentDay->getTimestamp(), $assignedVariables['day']);
115 static::assertCount(3, $assignedVariables['linksToDisplay']); 117 static::assertCount(3, $assignedVariables['linksToDisplay']);
116 118
117 $link = $assignedVariables['linksToDisplay'][0]; 119 $link = $assignedVariables['linksToDisplay'][0];
@@ -358,6 +360,8 @@ class DailyControllerTest extends TestCase
358 static::assertSame('daily', (string) $result->getBody()); 360 static::assertSame('daily', (string) $result->getBody());
359 static::assertCount(0, $assignedVariables['linksToDisplay']); 361 static::assertCount(0, $assignedVariables['linksToDisplay']);
360 static::assertSame('Today', $assignedVariables['dayDesc']); 362 static::assertSame('Today', $assignedVariables['dayDesc']);
363 static::assertEquals((new \DateTime())->setTime(0, 0)->getTimestamp(), $assignedVariables['day']);
364 static::assertEquals((new \DateTime())->setTime(0, 0), $assignedVariables['dayDate']);
361 } 365 }
362 366
363 protected function createValidContainerMockSet(): void 367 protected function createValidContainerMockSet(): void