summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-03-16 22:59:58 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-03-17 08:58:42 +0100
commit226a7d0dfb8fdbcc399a4302df2fb48a4eafcfa9 (patch)
tree012d43435365e0479c866187b7a8acf00eedc7e2
parent7e0aab358c07a9999b511e0e91e6501dc6b04461 (diff)
✅ Item: update tests to include categories
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
-rw-r--r--tests/Unit/Db/ItemTest.php4
1 files changed, 3 insertions, 1 deletions
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()
);
}