]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fixed test 2920/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 5 May 2017 13:20:58 +0000 (15:20 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 5 May 2017 13:20:58 +0000 (15:20 +0200)
tests/Wallabag/CoreBundle/Command/CleanDuplicatesCommandTest.php

index 688cc388ab6a839d0bac0ab31fb917738227ff6b..e6e57f300ff2855382d6460111d4bbef6c1a73eb 100644 (file)
@@ -100,5 +100,9 @@ class CleanDuplicatesCommandTest extends WallabagCoreTestCase
 
         $nbEntries = $em->getRepository('WallabagCoreBundle:Entry')->findAllByUrlAndUserId($url, $this->getLoggedInUserId());
         $this->assertCount(1, $nbEntries);
+
+        $query = $em->createQuery('DELETE FROM Wallabag\CoreBundle\Entity\Entry e WHERE e.url = :url');
+        $query->setParameter('url', $url);
+        $query->execute();
     }
 }