1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-21 18:11:10 +00:00

Fix tests

This commit is contained in:
Jeremy Benoist 2017-07-03 07:30:54 +02:00
parent f808b01692
commit 38520658ad
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
9 changed files with 34 additions and 39 deletions

View file

@ -230,8 +230,8 @@ class ExportControllerTest extends WallabagCoreTestCase
$this->assertArrayHasKey('created_at', $content[0]);
$this->assertArrayHasKey('updated_at', $content[0]);
$this->assertSame($contentInDB->isArchived(), $content[0]['is_archived']);
$this->assertSame($contentInDB->isStarred(), $content[0]['is_starred']);
$this->assertSame((int) $contentInDB->isArchived(), $content[0]['is_archived']);
$this->assertSame((int) $contentInDB->isStarred(), $content[0]['is_starred']);
$this->assertSame($contentInDB->getTitle(), $content[0]['title']);
$this->assertSame($contentInDB->getUrl(), $content[0]['url']);
$this->assertSame([['text' => 'This is my annotation /o/', 'quote' => 'content']], $content[0]['annotations']);