diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-05-30 20:15:41 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-05-30 20:27:44 +0200 |
commit | 047fdc767aed03a92f37273eae2206f3d61fedc5 (patch) | |
tree | 80a042c66e8a16f537c279a847a84ab937c240f1 /src/Wallabag/ImportBundle | |
parent | 4c707d087b9989d6cd2f21d3141eca1fe9c3f969 (diff) | |
download | wallabag-047fdc767aed03a92f37273eae2206f3d61fedc5.tar.gz wallabag-047fdc767aed03a92f37273eae2206f3d61fedc5.tar.zst wallabag-047fdc767aed03a92f37273eae2206f3d61fedc5.zip |
Add tests
Diffstat (limited to 'src/Wallabag/ImportBundle')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/WallabagV2Import.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/ImportBundle/Import/WallabagV2Import.php b/src/Wallabag/ImportBundle/Import/WallabagV2Import.php index 2603503c..3e085ecf 100644 --- a/src/Wallabag/ImportBundle/Import/WallabagV2Import.php +++ b/src/Wallabag/ImportBundle/Import/WallabagV2Import.php | |||
@@ -36,8 +36,8 @@ class WallabagV2Import extends WallabagImport | |||
36 | return [ | 36 | return [ |
37 | 'html' => $entry['content'], | 37 | 'html' => $entry['content'], |
38 | 'content_type' => $entry['mimetype'], | 38 | 'content_type' => $entry['mimetype'], |
39 | 'is_archived' => (int) ($entry['is_archived'] || $this->markAsRead), | 39 | 'is_archived' => (bool) ($entry['is_archived'] || $this->markAsRead), |
40 | 'is_starred' => (int) $entry['is_starred'], | 40 | 'is_starred' => (bool) $entry['is_starred'], |
41 | ] + $entry; | 41 | ] + $entry; |
42 | } | 42 | } |
43 | 43 | ||