diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-10-09 16:45:09 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-10-09 16:45:12 +0200 |
commit | f40c88eb1fa349aab600f9c1c94364f317fe62dd (patch) | |
tree | 4f57a7b2d5124541c4bc916a38d9dab262737db0 /tests/Wallabag/ImportBundle/Controller/ReadabilityControllerTest.php | |
parent | ed5e175c200501e2ee115ff5d8cd3f3ea47a1c2f (diff) | |
download | wallabag-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/ReadabilityControllerTest.php')
-rw-r--r-- | tests/Wallabag/ImportBundle/Controller/ReadabilityControllerTest.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/Wallabag/ImportBundle/Controller/ReadabilityControllerTest.php b/tests/Wallabag/ImportBundle/Controller/ReadabilityControllerTest.php index e1915150..fcb9dfab 100644 --- a/tests/Wallabag/ImportBundle/Controller/ReadabilityControllerTest.php +++ b/tests/Wallabag/ImportBundle/Controller/ReadabilityControllerTest.php | |||
@@ -111,13 +111,14 @@ class ReadabilityControllerTest extends WallabagCoreTestCase | |||
111 | ->get('doctrine.orm.entity_manager') | 111 | ->get('doctrine.orm.entity_manager') |
112 | ->getRepository('WallabagCoreBundle:Entry') | 112 | ->getRepository('WallabagCoreBundle:Entry') |
113 | ->findByUrlAndUserId( | 113 | ->findByUrlAndUserId( |
114 | 'http://www.zataz.com/90-des-dossiers-medicaux-des-coreens-du-sud-vendus-a-des-entreprises-privees/', | 114 | 'https://www.zataz.com/90-des-dossiers-medicaux-des-coreens-du-sud-vendus-a-des-entreprises-privees/', |
115 | $this->getLoggedInUserId() | 115 | $this->getLoggedInUserId() |
116 | ); | 116 | ); |
117 | 117 | ||
118 | $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text'])); | 118 | $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text'])); |
119 | $this->assertContains('flashes.import.notice.summary', $body[0]); | 119 | $this->assertContains('flashes.import.notice.summary', $body[0]); |
120 | 120 | ||
121 | $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content); | ||
121 | $this->assertNotEmpty($content->getMimetype(), 'Mimetype for http://www.zataz.com is ok'); | 122 | $this->assertNotEmpty($content->getMimetype(), 'Mimetype for http://www.zataz.com is ok'); |
122 | $this->assertNotEmpty($content->getPreviewPicture(), 'Preview picture for http://www.zataz.com is ok'); | 123 | $this->assertNotEmpty($content->getPreviewPicture(), 'Preview picture for http://www.zataz.com is ok'); |
123 | $this->assertNotEmpty($content->getLanguage(), 'Language for http://www.zataz.com is ok'); | 124 | $this->assertNotEmpty($content->getLanguage(), 'Language for http://www.zataz.com is ok'); |
@@ -159,16 +160,18 @@ class ReadabilityControllerTest extends WallabagCoreTestCase | |||
159 | $this->getLoggedInUserId() | 160 | $this->getLoggedInUserId() |
160 | ); | 161 | ); |
161 | 162 | ||
163 | $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content1); | ||
162 | $this->assertTrue($content1->isArchived()); | 164 | $this->assertTrue($content1->isArchived()); |
163 | 165 | ||
164 | $content2 = $client->getContainer() | 166 | $content2 = $client->getContainer() |
165 | ->get('doctrine.orm.entity_manager') | 167 | ->get('doctrine.orm.entity_manager') |
166 | ->getRepository('WallabagCoreBundle:Entry') | 168 | ->getRepository('WallabagCoreBundle:Entry') |
167 | ->findByUrlAndUserId( | 169 | ->findByUrlAndUserId( |
168 | 'https://facebook.github.io/graphql/', | 170 | 'https://facebook.github.io/graphql/October2016/', |
169 | $this->getLoggedInUserId() | 171 | $this->getLoggedInUserId() |
170 | ); | 172 | ); |
171 | 173 | ||
174 | $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content2); | ||
172 | $this->assertTrue($content2->isArchived()); | 175 | $this->assertTrue($content2->isArchived()); |
173 | 176 | ||
174 | $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text'])); | 177 | $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text'])); |