summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Db/ItemTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Db/ItemTest.php')
-rw-r--r--tests/Unit/Db/ItemTest.php14
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());
+ }
}