diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-03-18 22:34:14 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | af84bbf204cc6594d7fddfed387139f869a5c061 (patch) | |
tree | eb83b8d133f823385c9e21955678033336bf8903 /tests/Unit/Db/ItemTest.php | |
parent | 7306370ececd6ada186061af7deb9437d6182be6 (diff) |
✅ Item: update tests - include sharer display name
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests/Unit/Db/ItemTest.php')
-rw-r--r-- | tests/Unit/Db/ItemTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Unit/Db/ItemTest.php b/tests/Unit/Db/ItemTest.php index 289126e32..8d556a445 100644 --- a/tests/Unit/Db/ItemTest.php +++ b/tests/Unit/Db/ItemTest.php @@ -201,6 +201,7 @@ class ItemTest extends TestCase $item->setLastModified(321); $item->setCategories(['food']); $item->setSharedBy('jack'); + $item->setSharedByDisplayName('Jack'); $this->assertEquals( [ @@ -225,7 +226,8 @@ class ItemTest extends TestCase 'intro' => 'this is a test', 'fingerprint' => 'fingerprint', 'categories' => ['food'], - 'sharedBy' => 'jack' + 'sharedBy' => 'jack', + 'sharedByDisplayName' => 'Jack' ], $item->jsonSerialize() ); } |