diff options
Diffstat (limited to 'src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php index e12ea429..819bb0e6 100644 --- a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php +++ b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php | |||
@@ -39,6 +39,21 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase | |||
39 | 39 | ||
40 | $crawler = $client->followRedirect(); | 40 | $crawler = $client->followRedirect(); |
41 | 41 | ||
42 | $content = $client->getContainer() | ||
43 | ->get('doctrine.orm.entity_manager') | ||
44 | ->getRepository('WallabagCoreBundle:Entry') | ||
45 | ->findByUrlAndUserId( | ||
46 | 'http://www.framablog.org/index.php/post/2014/02/05/Framabag-service-libre-gratuit-interview-developpeur', | ||
47 | $this->getLoggedInUserId() | ||
48 | ); | ||
49 | |||
50 | $tag = $client->getContainer() | ||
51 | ->get('doctrine.orm.entity_manager') | ||
52 | ->getRepository('WallabagCoreBundle:Tag') | ||
53 | ->findOneByLabel('Framabag'); | ||
54 | |||
55 | $this->assertTrue($content->getTags()->contains($tag)); | ||
56 | |||
42 | $this->assertGreaterThan(1, $alert = $crawler->filter('div.messages.success')->extract(array('_text'))); | 57 | $this->assertGreaterThan(1, $alert = $crawler->filter('div.messages.success')->extract(array('_text'))); |
43 | $this->assertContains('Import summary', $alert[0]); | 58 | $this->assertContains('Import summary', $alert[0]); |
44 | } | 59 | } |