Add tests

This commit is contained in:
Jeremy Benoist
2017-05-30 20:15:41 +02:00
parent 4c707d087b
commit 047fdc767a
3 changed files with 4 additions and 3 deletions

View File

@ -36,8 +36,8 @@ class WallabagV2Import extends WallabagImport
return [
'html' => $entry['content'],
'content_type' => $entry['mimetype'],
'is_archived' => (int) ($entry['is_archived'] || $this->markAsRead),
'is_starred' => (int) $entry['is_starred'],
'is_archived' => (bool) ($entry['is_archived'] || $this->markAsRead),
'is_starred' => (bool) $entry['is_starred'],
] + $entry;
}