From 226a7d0dfb8fdbcc399a4302df2fb48a4eafcfa9 Mon Sep 17 00:00:00 2001 From: Marco Nassabain Date: Tue, 16 Mar 2021 22:59:58 +0100 Subject: =?UTF-8?q?=E2=9C=85=20Item:=20update=20tests=20to=20include=20cat?= =?UTF-8?q?egories?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marco Nassabain --- tests/Unit/Db/ItemTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Unit/Db/ItemTest.php b/tests/Unit/Db/ItemTest.php index e871c6157..1fd968efc 100644 --- a/tests/Unit/Db/ItemTest.php +++ b/tests/Unit/Db/ItemTest.php @@ -136,6 +136,7 @@ class ItemTest extends TestCase $item->setFingerprint('fingerprint'); $item->setStarred(true); $item->setLastModified(321); + $item->setCategories(['food']); $this->assertEquals( [ @@ -158,7 +159,8 @@ class ItemTest extends TestCase 'lastModified' => 321, 'rtl' => true, 'intro' => 'this is a test', - 'fingerprint' => 'fingerprint' + 'fingerprint' => 'fingerprint', + 'categories' => ['food'] ], $item->jsonSerialize() ); } -- cgit v1.2.3