diff --git a/Tests/Loggable/LogTest.php b/Tests/Loggable/LogTest.php index 6dc6d74..d5eca5b 100644 --- a/Tests/Loggable/LogTest.php +++ b/Tests/Loggable/LogTest.php @@ -362,7 +362,7 @@ public function testRevert() $this->em->remove($art0); $this->em->flush(); - $art0 = $this->em->find($artclass, $artid); + $art0 = $this->em->getRepository($artclass)->findOneBy(array('id'=>$artid)); $this->assertNull($art0); $logs = $this->logrepo->findAll(); $this->assertCount(2, $logs);