diff options
author | Aurélien <dav.aurelien@gmail.com> | 2021-02-16 16:25:32 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | f9f25ddbd2214abf5b290e881b1f1dbe57342888 (patch) | |
tree | 42bcd04e03a200ee5c407b794fe29f7fcf4c879f /tests | |
parent | 615668d6886714719e2d0786626e1f85d202fbf8 (diff) |
Add tests setSharedBy and setSharedWith
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Unit/Db/ItemTest.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/Unit/Db/ItemTest.php b/tests/Unit/Db/ItemTest.php index 75880c8a7..5cd0cddac 100644 --- a/tests/Unit/Db/ItemTest.php +++ b/tests/Unit/Db/ItemTest.php @@ -453,4 +453,18 @@ class ItemTest extends TestCase $this->assertEquals(json_encode(['podcast', 'blog']), $item->getCategoriesJson()); $this->assertArrayHasKey('categoriesJson', $item->getUpdatedFields()); } + + public function testSetSharedBy(){ + $item = new Item(); + $item->setSharedBy('Hector'); + $this->assertEquals('Hector', $item->getSharedBy()); + $this->assertArrayHasKey('sharedBy', $item->getUpdatedFields()); + } + + public function testSetSharedWith(){ + $item = new Item(); + $item->setSharedWith('Hector'); + $this->assertEquals('Hector', $item->getSharedWith()); + $this->assertArrayHasKey('sharedWith', $item->getUpdatedFields()); + } } |