aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-10-02 01:34:52 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-10-02 01:42:21 +0200
commitd6d3fb6e4c92ec8d71b3f8c6d91e0f8ab80f795b (patch)
treedbd1cbf4bed47fecd2647b22ea821070f3b27b28
parent19ca0b2f355a657dd296bfa782473ffd45280572 (diff)
downloadwallabag-d6d3fb6e4c92ec8d71b3f8c6d91e0f8ab80f795b.tar.gz
wallabag-d6d3fb6e4c92ec8d71b3f8c6d91e0f8ab80f795b.tar.zst
wallabag-d6d3fb6e4c92ec8d71b3f8c6d91e0f8ab80f795b.zip
Remove additional entry
After the test is done, cleanup what we’ve done
-rw-r--r--tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php9
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 /**