From: Nicolas LÅ“uillet Date: Fri, 5 May 2017 13:20:58 +0000 (+0200) Subject: Fixed test X-Git-Tag: 2.3.0~31^2~106^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=4eeb29ff784934fa879dd87999e07c4c7626af8c;p=github%2Fwallabag%2Fwallabag.git Fixed test --- diff --git a/tests/Wallabag/CoreBundle/Command/CleanDuplicatesCommandTest.php b/tests/Wallabag/CoreBundle/Command/CleanDuplicatesCommandTest.php index 688cc388..e6e57f30 100644 --- a/tests/Wallabag/CoreBundle/Command/CleanDuplicatesCommandTest.php +++ b/tests/Wallabag/CoreBundle/Command/CleanDuplicatesCommandTest.php @@ -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(); } }