aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/front/controller/visitor
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-11-02 19:22:50 +0100
committerArthurHoaro <arthur@hoa.ro>2020-11-02 19:32:48 +0100
commitb862705947ff14f54023ba6d1cbead3435d0f234 (patch)
tree42c37b85fe5084a65c65ffcacef7a11b782baaf5 /tests/front/controller/visitor
parentdff039092d180fffa89e7d88f7a4b7bc24dfc80f (diff)
downloadShaarli-b862705947ff14f54023ba6d1cbead3435d0f234.tar.gz
Shaarli-b862705947ff14f54023ba6d1cbead3435d0f234.tar.zst
Shaarli-b862705947ff14f54023ba6d1cbead3435d0f234.zip
UT: fix formatting issue when the current day has a single digit
Diffstat (limited to 'tests/front/controller/visitor')
-rw-r--r--tests/front/controller/visitor/DailyControllerTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/front/controller/visitor/DailyControllerTest.php b/tests/front/controller/visitor/DailyControllerTest.php
index 758e7219..70fbce54 100644
--- a/tests/front/controller/visitor/DailyControllerTest.php
+++ b/tests/front/controller/visitor/DailyControllerTest.php
@@ -327,7 +327,7 @@ class DailyControllerTest extends TestCase
327 static::assertSame(200, $result->getStatusCode()); 327 static::assertSame(200, $result->getStatusCode());
328 static::assertSame('daily', (string) $result->getBody()); 328 static::assertSame('daily', (string) $result->getBody());
329 static::assertCount(0, $assignedVariables['linksToDisplay']); 329 static::assertCount(0, $assignedVariables['linksToDisplay']);
330 static::assertSame('Today - ' . (new \DateTime())->format('F d, Y'), $assignedVariables['dayDesc']); 330 static::assertSame('Today - ' . (new \DateTime())->format('F j, Y'), $assignedVariables['dayDesc']);
331 static::assertEquals((new \DateTime())->setTime(0, 0)->getTimestamp(), $assignedVariables['day']); 331 static::assertEquals((new \DateTime())->setTime(0, 0)->getTimestamp(), $assignedVariables['day']);
332 static::assertEquals((new \DateTime())->setTime(0, 0), $assignedVariables['dayDate']); 332 static::assertEquals((new \DateTime())->setTime(0, 0), $assignedVariables['dayDate']);
333 } 333 }