]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - tests/Wallabag/AnnotationBundle/Controller/AnnotationControllerTest.php
Fix tests
[github/wallabag/wallabag.git] / tests / Wallabag / AnnotationBundle / Controller / AnnotationControllerTest.php
index 964744684ef07c8e7ae52e8b4a274e04a82ddb19..537283f2539a8127a35a478d9a80f738f5180a62 100644 (file)
@@ -100,8 +100,7 @@ class AnnotationControllerTest extends WallabagAnnotationTestCase
         $this->assertSame('my quote', $content['quote']);
 
         /** @var Annotation $annotation */
-        $annotation = $this->client->getContainer()
-            ->get('doctrine.orm.entity_manager')
+        $annotation = $em
             ->getRepository('WallabagAnnotationBundle:Annotation')
             ->findLastAnnotationByPageId($entry->getId(), 1);