Skip to content

Commit

Permalink
Merge pull request #331 from lemoinem/fix/timestampable-tests
Browse files Browse the repository at this point in the history
Fix Timestampable tests
  • Loading branch information
docteurklein authored Sep 30, 2016
2 parents 9cfefd5 + 88fbd6c commit c41433f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Knp/DoctrineBehaviors/ORM/TimestampableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit c41433f

Please sign in to comment.