From 25e2efd54a2d77adcefdebdbbbc8d00ab3bb3109 Mon Sep 17 00:00:00 2001 From: Marco Nassabain Date: Thu, 4 Mar 2021 23:26:34 +0100 Subject: =?UTF-8?q?=E2=9C=85=20Update=20ItemTest=20-=20remove=20sharedWith?= =?UTF-8?q?=20field?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marco Nassabain --- tests/Unit/Db/ItemTest.php | 9 --------- 1 file changed, 9 deletions(-) (limited to 'tests') 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()); - } } -- cgit v1.2.3