aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-10-09 16:45:09 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-10-09 16:45:12 +0200
commitf40c88eb1fa349aab600f9c1c94364f317fe62dd (patch)
tree4f57a7b2d5124541c4bc916a38d9dab262737db0 /tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php
parented5e175c200501e2ee115ff5d8cd3f3ea47a1c2f (diff)
downloadwallabag-f40c88eb1fa349aab600f9c1c94364f317fe62dd.tar.gz
wallabag-f40c88eb1fa349aab600f9c1c94364f317fe62dd.tar.zst
wallabag-f40c88eb1fa349aab600f9c1c94364f317fe62dd.zip
Jump to Symfony 3.3 & update others deps
Also update tests urls
Diffstat (limited to 'tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php')
-rw-r--r--tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php b/tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php
index 4bc982e0..e0e309b0 100644
--- a/tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php
+++ b/tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php
@@ -119,6 +119,7 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase
119 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text'])); 119 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text']));
120 $this->assertContains('flashes.import.notice.summary', $body[0]); 120 $this->assertContains('flashes.import.notice.summary', $body[0]);
121 121
122 $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content);
122 $this->assertEmpty($content->getMimetype(), 'Mimetype for http://www.framablog.org is empty'); 123 $this->assertEmpty($content->getMimetype(), 'Mimetype for http://www.framablog.org is empty');
123 $this->assertEmpty($content->getPreviewPicture(), 'Preview picture for http://www.framablog.org is empty'); 124 $this->assertEmpty($content->getPreviewPicture(), 'Preview picture for http://www.framablog.org is empty');
124 $this->assertEmpty($content->getLanguage(), 'Language for http://www.framablog.org is empty'); 125 $this->assertEmpty($content->getLanguage(), 'Language for http://www.framablog.org is empty');
@@ -160,6 +161,7 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase
160 $this->getLoggedInUserId() 161 $this->getLoggedInUserId()
161 ); 162 );
162 163
164 $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content1);
163 $this->assertTrue($content1->isArchived()); 165 $this->assertTrue($content1->isArchived());
164 166
165 $content2 = $client->getContainer() 167 $content2 = $client->getContainer()
@@ -170,6 +172,7 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase
170 $this->getLoggedInUserId() 172 $this->getLoggedInUserId()
171 ); 173 );
172 174
175 $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content2);
173 $this->assertTrue($content2->isArchived()); 176 $this->assertTrue($content2->isArchived());
174 177
175 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text'])); 178 $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text']));