diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-03-04 23:26:34 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | 25e2efd54a2d77adcefdebdbbbc8d00ab3bb3109 (patch) | |
tree | 73756ead5029a4c19a6df91b8bbdcf6a10481319 /tests | |
parent | 293300166d4f141f78b6e3ff27a702273cdfdd53 (diff) |
✅ Update ItemTest - remove sharedWith field
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Unit/Db/ItemTest.php | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/Unit/Db/ItemTest.php b/tests/Unit/Db/ItemTest.php index 5cd0cddac..faf924e46 100644 --- a/tests/Unit/Db/ItemTest.php +++ b/tests/Unit/Db/ItemTest.php @@ -201,7 +201,6 @@ class ItemTest extends TestCase $item->setLastModified(321); $item->setCategories(['food']); $item->setSharedBy('jack'); - $item->setSharedWith('mclovin'); $this->assertEquals( [ @@ -227,7 +226,6 @@ class ItemTest extends TestCase 'fingerprint' => 'fingerprint', 'categories' => ['food'], 'sharedBy' => 'jack', - 'sharedWith' => 'mclovin', 'isShared' => true, ], $item->jsonSerialize() ); @@ -460,11 +458,4 @@ class ItemTest extends TestCase $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()); - } } |