aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-03-21 12:47:57 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-03-21 12:47:57 +0100
commit439b36323e37f669b056cc5228c44bb91196256c (patch)
treeecd84477adf3e12819b26aff2a6d2e644e45ea72 /src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php
parentbd46de6b25f982e1a0d3f975971fe8014db13833 (diff)
parent4083887afe4dd3f568b2dfea3392506b554c79b8 (diff)
downloadwallabag-439b36323e37f669b056cc5228c44bb91196256c.tar.gz
wallabag-439b36323e37f669b056cc5228c44bb91196256c.tar.zst
wallabag-439b36323e37f669b056cc5228c44bb91196256c.zip
Merge pull request #1774 from wallabag/v2-key-translation
Switch to keys in translated files
Diffstat (limited to 'src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php')
-rw-r--r--src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php
index 7f97b0f5..8d353a71 100644
--- a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php
+++ b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php
@@ -54,8 +54,8 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase
54 54
55 $this->assertTrue($content->getTags()->contains($tag)); 55 $this->assertTrue($content->getTags()->contains($tag));
56 56
57 $this->assertGreaterThan(1, $alert = $crawler->filter('div.messages.success')->extract(array('_text'))); 57 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text')));
58 $this->assertContains('Import summary', $alert[0]); 58 $this->assertContains('flashes.import.notice.summary', $body[0]);
59 } 59 }
60 60
61 public function testImportWallabagWithFileAndMarkAllAsRead() 61 public function testImportWallabagWithFileAndMarkAllAsRead()
@@ -99,7 +99,8 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase
99 99
100 $this->assertTrue($content2->isArchived()); 100 $this->assertTrue($content2->isArchived());
101 101
102 $this->assertContains('Import summary', $client->getResponse()->getContent()); 102 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text')));
103 $this->assertContains('flashes.import.notice.summary', $body[0]);
103 } 104 }
104 105
105 public function testImportWallabagWithEmptyFile() 106 public function testImportWallabagWithEmptyFile()
@@ -122,7 +123,7 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase
122 123
123 $crawler = $client->followRedirect(); 124 $crawler = $client->followRedirect();
124 125
125 $this->assertGreaterThan(1, $alert = $crawler->filter('div.messages.success')->extract(array('_text'))); 126 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(array('_text')));
126 $this->assertContains('Import failed, please try again', $alert[0]); 127 $this->assertContains('flashes.import.notice.failed', $body[0]);
127 } 128 }
128} 129}