aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-03-11 14:48:46 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-03-20 21:12:22 +0100
commit4204a06b7726597dc84fe34b39c53f1534a86140 (patch)
treef81243f621997e9da4c39e4c17f2a2d37053103e /src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php
parent4f9cf232f8d4d750d39aca83406b8a6d5e17a6c9 (diff)
downloadwallabag-4204a06b7726597dc84fe34b39c53f1534a86140.tar.gz
wallabag-4204a06b7726597dc84fe34b39c53f1534a86140.tar.zst
wallabag-4204a06b7726597dc84fe34b39c53f1534a86140.zip
Add flashes messages
Diffstat (limited to 'src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php')
-rw-r--r--src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php
index 58baa836..bcbd6305 100644
--- a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php
+++ b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV2ControllerTest.php
@@ -40,7 +40,7 @@ class WallabagV2ControllerTest extends WallabagCoreTestCase
40 $crawler = $client->followRedirect(); 40 $crawler = $client->followRedirect();
41 41
42 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text'))); 42 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text')));
43 $this->assertContains('Import summary', $body[0]); 43 $this->assertContains('flashes.import.notice.summary', $body[0]);
44 44
45 $content = $client->getContainer() 45 $content = $client->getContainer()
46 ->get('doctrine.orm.entity_manager') 46 ->get('doctrine.orm.entity_manager')
@@ -88,6 +88,6 @@ class WallabagV2ControllerTest extends WallabagCoreTestCase
88 $crawler = $client->followRedirect(); 88 $crawler = $client->followRedirect();
89 89
90 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text'))); 90 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text')));
91 $this->assertContains('Import failed, please try again', $body[0]); 91 $this->assertContains('flashes.import.notice.failed', $body[0]);
92 } 92 }
93} 93}