From 4eeb29ff784934fa879dd87999e07c4c7626af8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 5 May 2017 15:20:58 +0200 Subject: [PATCH] Fixed test --- .../CoreBundle/Command/CleanDuplicatesCommandTest.php | 4 ++++ 1 file changed, 4 insertions(+) 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(); } } -- 2.41.0