summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Db
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Db')
-rw-r--r--tests/Unit/Db/ItemTest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/Unit/Db/ItemTest.php b/tests/Unit/Db/ItemTest.php
index 4f9de59d3..75880c8a7 100644
--- a/tests/Unit/Db/ItemTest.php
+++ b/tests/Unit/Db/ItemTest.php
@@ -200,6 +200,8 @@ class ItemTest extends TestCase
$item->setStarred(true);
$item->setLastModified(321);
$item->setCategories(['food']);
+ $item->setSharedBy('jack');
+ $item->setSharedWith('mclovin');
$this->assertEquals(
[
@@ -223,7 +225,10 @@ class ItemTest extends TestCase
'rtl' => true,
'intro' => 'this is a test',
'fingerprint' => 'fingerprint',
- 'categories' => ['food']
+ 'categories' => ['food'],
+ 'sharedBy' => 'jack',
+ 'sharedWith' => 'mclovin',
+ 'isShared' => true,
], $item->jsonSerialize()
);
}