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();