diff options
author | nicofrand <mail@nicofrand.eu> | 2019-05-21 20:10:57 +0200 |
---|---|---|
committer | nicofrand <mail@nicofrand.eu> | 2019-05-21 20:38:22 +0200 |
commit | d99e6423f4bd54595a8a805dd1efd0bd94e8bb09 (patch) | |
tree | c687d727071f6bbd2fad81594d79fb839965feab /tests/Wallabag | |
parent | 715fabf8f286177c7abb216f0c867a989de18c32 (diff) | |
download | wallabag-d99e6423f4bd54595a8a805dd1efd0bd94e8bb09.tar.gz wallabag-d99e6423f4bd54595a8a805dd1efd0bd94e8bb09.tar.zst wallabag-d99e6423f4bd54595a8a805dd1efd0bd94e8bb09.zip |
[tests] Fix pre-existing tests (preview now imported + records added)
Diffstat (limited to 'tests/Wallabag')
-rw-r--r-- | tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php | 2 | ||||
-rw-r--r-- | tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php index 8ed7fa5f..c7caac1d 100644 --- a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php +++ b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php | |||
@@ -499,7 +499,7 @@ class ContentProxyTest extends TestCase | |||
499 | 499 | ||
500 | $records = $handler->getRecords(); | 500 | $records = $handler->getRecords(); |
501 | 501 | ||
502 | $this->assertCount(1, $records); | 502 | $this->assertCount(3, $records); |
503 | $this->assertContains('Error while defining date', $records[0]['message']); | 503 | $this->assertContains('Error while defining date', $records[0]['message']); |
504 | } | 504 | } |
505 | 505 | ||
diff --git a/tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php b/tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php index 1f57939d..2a8e7c89 100644 --- a/tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php +++ b/tests/Wallabag/ImportBundle/Controller/WallabagV1ControllerTest.php | |||
@@ -121,7 +121,7 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase | |||
121 | 121 | ||
122 | $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content); | 122 | $this->assertInstanceOf('Wallabag\CoreBundle\Entity\Entry', $content); |
123 | $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'); |
124 | $this->assertEmpty($content->getPreviewPicture(), 'Preview picture for http://www.framablog.org is empty'); | 124 | $this->assertSame($content->getPreviewPicture(), 'http://www.framablog.org/public/_img/framablog/wallaby_baby.jpg'); |
125 | $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'); |
126 | 126 | ||
127 | $tags = $content->getTags(); | 127 | $tags = $content->getTags(); |