summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Db/ItemTest.php
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-02-07 22:26:49 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commit4133e68c8ec87fd53dc424a4512758acbd4dc7d6 (patch)
treec34d2956b1d26412280bfea8f743d8199c76852b /tests/Unit/Db/ItemTest.php
parent54aa8b527099edb409099335638382dbf754f36b (diff)
✅ Update tests to contain share data
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests/Unit/Db/ItemTest.php')
-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()
);
}