diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-03-20 13:14:02 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | 307534cc2958bec058b98f5479a2904ea19292be (patch) | |
tree | aecf6152e8a06e8ec7c5272b9003c425f26127ac /tests/Unit | |
parent | 413c4b8914f8090a06da816b5dd16a0a9e54bfb8 (diff) |
✅ Added test for sharedByDisplayName field
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests/Unit')
-rw-r--r-- | tests/Unit/Db/ItemTest.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/Unit/Db/ItemTest.php b/tests/Unit/Db/ItemTest.php index 3aa219105..68b7b5ab8 100644 --- a/tests/Unit/Db/ItemTest.php +++ b/tests/Unit/Db/ItemTest.php @@ -460,4 +460,11 @@ class ItemTest extends TestCase $this->assertEquals('Hector', $item->getSharedBy()); $this->assertArrayHasKey('sharedBy', $item->getUpdatedFields()); } + + public function testSetSharedByDisplayName() + { + $item = new Item(); + $item->setSharedByDisplayName('Hector'); + $this->assertEquals('Hector', $item->getSharedByDisplayName()); + } } |