From 6b1310148fc828fd76db4d0f0c4d5fe35c3d3ccf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 11 Jan 2022 11:24:11 +0100 Subject: [PATCH] notification: fix test --- .../Tests/Controller/NotificationApiControllerTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Tests/Controller/NotificationApiControllerTest.php b/src/Bundle/ChillMainBundle/Tests/Controller/NotificationApiControllerTest.php index ea06f1e4f..96b707ee7 100644 --- a/src/Bundle/ChillMainBundle/Tests/Controller/NotificationApiControllerTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Controller/NotificationApiControllerTest.php @@ -16,6 +16,7 @@ use Chill\MainBundle\Entity\User; use Chill\MainBundle\Repository\UserRepository; use Chill\MainBundle\Test\PrepareClientTrait; use Chill\PersonBundle\Entity\AccompanyingPeriod; +use DateTimeImmutable; use Doctrine\ORM\EntityManagerInterface; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; @@ -55,7 +56,8 @@ final class NotificationApiControllerTest extends WebTestCase ->setRelatedEntityClass(AccompanyingPeriod::class) ->setRelatedEntityId(0) ->setSender($userB) - ->addAddressee($userA); + ->addAddressee($userA) + ->setUpdatedAt(new DateTimeImmutable()); $em->persist($notification); $em->refresh($notification); $em->flush();