diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-02 01:34:52 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-02 01:42:21 +0200 |
commit | d6d3fb6e4c92ec8d71b3f8c6d91e0f8ab80f795b (patch) | |
tree | dbd1cbf4bed47fecd2647b22ea821070f3b27b28 /tests | |
parent | 19ca0b2f355a657dd296bfa782473ffd45280572 (diff) | |
download | wallabag-d6d3fb6e4c92ec8d71b3f8c6d91e0f8ab80f795b.tar.gz wallabag-d6d3fb6e4c92ec8d71b3f8c6d91e0f8ab80f795b.tar.zst wallabag-d6d3fb6e4c92ec8d71b3f8c6d91e0f8ab80f795b.zip |
Remove additional entry
After the test is done, cleanup what we’ve done
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php index ebcf3f5a..9942b2a0 100644 --- a/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php | |||
@@ -193,6 +193,15 @@ class EntryControllerTest extends WallabagCoreTestCase | |||
193 | 193 | ||
194 | $this->assertEquals(302, $client->getResponse()->getStatusCode()); | 194 | $this->assertEquals(302, $client->getResponse()->getStatusCode()); |
195 | $this->assertContains('/view/', $client->getResponse()->getTargetUrl()); | 195 | $this->assertContains('/view/', $client->getResponse()->getTargetUrl()); |
196 | |||
197 | $em = $client->getContainer() | ||
198 | ->get('doctrine.orm.entity_manager'); | ||
199 | $entry = $em | ||
200 | ->getRepository('WallabagCoreBundle:Entry') | ||
201 | ->findOneByUrl(urldecode($url)); | ||
202 | |||
203 | $em->remove($entry); | ||
204 | $em->flush(); | ||
196 | } | 205 | } |
197 | 206 | ||
198 | /** | 207 | /** |