aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2016-02-12 14:49:41 +0100
committerThomas Citharel <tcit@tcit.fr>2016-02-12 14:49:41 +0100
commitfca2b05200f3e681c3ee195b8bb00088a8de0cf8 (patch)
tree657ce9546d3904df849e17824987b9dca37d7a5f /src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php
parent06c190887fd38c314db8d240ab2e46f5777ed59e (diff)
downloadwallabag-fca2b05200f3e681c3ee195b8bb00088a8de0cf8.tar.gz
wallabag-fca2b05200f3e681c3ee195b8bb00088a8de0cf8.tar.zst
wallabag-fca2b05200f3e681c3ee195b8bb00088a8de0cf8.zip
import tags from v1 (#1657)
Diffstat (limited to 'src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php')
-rw-r--r--src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php15
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 }