diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-05-05 15:20:58 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-05-05 15:20:58 +0200 |
commit | 4eeb29ff784934fa879dd87999e07c4c7626af8c (patch) | |
tree | b7aceca6528cda9635e734970fa3db2abba81a02 | |
parent | 89f108b45ae94cd827595461b39f869111092579 (diff) | |
download | wallabag-4eeb29ff784934fa879dd87999e07c4c7626af8c.tar.gz wallabag-4eeb29ff784934fa879dd87999e07c4c7626af8c.tar.zst wallabag-4eeb29ff784934fa879dd87999e07c4c7626af8c.zip |
Fixed test
-rw-r--r-- | tests/Wallabag/CoreBundle/Command/CleanDuplicatesCommandTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
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 | |||
100 | 100 | ||
101 | $nbEntries = $em->getRepository('WallabagCoreBundle:Entry')->findAllByUrlAndUserId($url, $this->getLoggedInUserId()); | 101 | $nbEntries = $em->getRepository('WallabagCoreBundle:Entry')->findAllByUrlAndUserId($url, $this->getLoggedInUserId()); |
102 | $this->assertCount(1, $nbEntries); | 102 | $this->assertCount(1, $nbEntries); |
103 | |||
104 | $query = $em->createQuery('DELETE FROM Wallabag\CoreBundle\Entity\Entry e WHERE e.url = :url'); | ||
105 | $query->setParameter('url', $url); | ||
106 | $query->execute(); | ||
103 | } | 107 | } |
104 | } | 108 | } |