]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
[tests] Fix pre-existing tests (preview now imported + records added) 3965/head
authornicofrand <mail@nicofrand.eu>
Tue, 21 May 2019 18:10:57 +0000 (20:10 +0200)
committernicofrand <mail@nicofrand.eu>
Tue, 21 May 2019 18:38:22 +0000 (20:38 +0200)
tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php
tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php

index 8ed7fa5f8cfaa837be42cd8c343363a190951279..c7caac1d326a3e60c1ebcbd2532f8bbd599c94dc 100644 (file)
@@ -499,7 +499,7 @@ class ContentProxyTest extends TestCase
 
         $records = $handler->getRecords();
 
-        $this->assertCount(1, $records);
+        $this->assertCount(3, $records);
         $this->assertContains('Error while defining date', $records[0]['message']);
     }
 
index 1f57939d997d9883a10c0693a108906a0bab1fd4..2a8e7c899ae948df2bbde94a4cac93e65e6fea18 100644 (file)
@@ -121,7 +121,7 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase
 
         $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content);
         $this->assertEmpty($content->getMimetype(), 'Mimetype for http://www.framablog.org is empty');
-        $this->assertEmpty($content->getPreviewPicture(), 'Preview picture for http://www.framablog.org is empty');
+        $this->assertSame($content->getPreviewPicture(), 'http://www.framablog.org/public/_img/framablog/wallaby_baby.jpg');
         $this->assertEmpty($content->getLanguage(), 'Language for http://www.framablog.org is empty');
 
         $tags = $content->getTags();