Fixed test

This commit is contained in:
Nicolas Lœuillet 2017-05-05 15:20:58 +02:00
parent 89f108b45a
commit 4eeb29ff78
No known key found for this signature in database
GPG key ID: BDC1EFB5CA0145F2

View 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();
}
}