diff --git a/tests/Knp/DoctrineBehaviors/ORM/TimestampableTest.php b/tests/Knp/DoctrineBehaviors/ORM/TimestampableTest.php index f0e1c246..400ee274 100644 --- a/tests/Knp/DoctrineBehaviors/ORM/TimestampableTest.php +++ b/tests/Knp/DoctrineBehaviors/ORM/TimestampableTest.php @@ -66,6 +66,7 @@ public function it_should_modify_update_datetime_when_updated_but_not_the_creati $em->persist($entity); $em->flush(); + $em->refresh($entity); $id = $entity->getId(); $createdAt = $entity->getCreatedAt(); $em->clear(); @@ -99,6 +100,7 @@ public function it_should_return_the_same_datetime_when_not_updated() $em->persist($entity); $em->flush(); + $em->refresh($entity); $id = $entity->getId(); $createdAt = $entity->getCreatedAt(); $updatedAt = $entity->getUpdatedAt(); @@ -135,6 +137,7 @@ public function it_should_modify_update_datetime_only_once() $em->persist($entity); $em->flush(); + $em->refresh($entity); $id = $entity->getId(); $createdAt = $entity->getCreatedAt(); $em->clear();