diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-03-11 14:48:46 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-03-20 21:12:22 +0100 |
commit | 4204a06b7726597dc84fe34b39c53f1534a86140 (patch) | |
tree | f81243f621997e9da4c39e4c17f2a2d37053103e /src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php | |
parent | 4f9cf232f8d4d750d39aca83406b8a6d5e17a6c9 (diff) | |
download | wallabag-4204a06b7726597dc84fe34b39c53f1534a86140.tar.gz wallabag-4204a06b7726597dc84fe34b39c53f1534a86140.tar.zst wallabag-4204a06b7726597dc84fe34b39c53f1534a86140.zip |
Add flashes messages
Diffstat (limited to 'src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php index 6c876b3b..8d353a71 100644 --- a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php +++ b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php | |||
@@ -55,7 +55,7 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase | |||
55 | $this->assertTrue($content->getTags()->contains($tag)); | 55 | $this->assertTrue($content->getTags()->contains($tag)); |
56 | 56 | ||
57 | $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text'))); | 57 | $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text'))); |
58 | $this->assertContains('Import summary', $body[0]); | 58 | $this->assertContains('flashes.import.notice.summary', $body[0]); |
59 | } | 59 | } |
60 | 60 | ||
61 | public function testImportWallabagWithFileAndMarkAllAsRead() | 61 | public function testImportWallabagWithFileAndMarkAllAsRead() |
@@ -100,7 +100,7 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase | |||
100 | $this->assertTrue($content2->isArchived()); | 100 | $this->assertTrue($content2->isArchived()); |
101 | 101 | ||
102 | $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text'))); | 102 | $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text'))); |
103 | $this->assertContains('Import summary', $body[0]); | 103 | $this->assertContains('flashes.import.notice.summary', $body[0]); |
104 | } | 104 | } |
105 | 105 | ||
106 | public function testImportWallabagWithEmptyFile() | 106 | public function testImportWallabagWithEmptyFile() |
@@ -124,6 +124,6 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase | |||
124 | $crawler = $client->followRedirect(); | 124 | $crawler = $client->followRedirect(); |
125 | 125 | ||
126 | $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text'))); | 126 | $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text'))); |
127 | $this->assertContains('Import failed, please try again', $body[0]); | 127 | $this->assertContains('flashes.import.notice.failed', $body[0]); |
128 | } | 128 | } |
129 | } | 129 | } |