diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-03-03 23:01:36 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | 2ee5112760d721e441abee4ededfa5484269a3c9 (patch) | |
tree | 37b241472c1dbf424acf317a0a86c93bfd54d00b /tests/Unit/Service | |
parent | 9bd27da9bac99a7780df8eb3845df566fb23b02a (diff) |
🔥 Remove old share logic from tests & old tests
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests/Unit/Service')
-rw-r--r-- | tests/Unit/Service/ItemServiceTest.php | 45 |
1 files changed, 1 insertions, 44 deletions
diff --git a/tests/Unit/Service/ItemServiceTest.php b/tests/Unit/Service/ItemServiceTest.php index 6c4658d5e..1985bdc18 100644 --- a/tests/Unit/Service/ItemServiceTest.php +++ b/tests/Unit/Service/ItemServiceTest.php @@ -114,17 +114,6 @@ class ItemServiceTest extends TestCase $this->assertEquals([], $result); } - public function testFindAllNewShared() - { - $this->mapper->expects($this->once()) - ->method('findAllSharedAfter') - ->with('jack', 20333, true) - ->will($this->returnValue([])); - - $result = $this->class->findAllSharedAfter($this->user, 20333, true); - $this->assertEquals([], $result); - } - public function testFindAllNewItem() { $this->mapper->expects($this->once()) @@ -185,27 +174,7 @@ class ItemServiceTest extends TestCase $this->assertEquals(['val'], $result); } - public function testFindAllSharedWithUser() - { - $this->mapper->expects($this->once()) - ->method('findAllSharedWithUser') - ->with('user', 20, 5, true, true, []) - ->will($this->returnValue(['val'])); - - $result = $this->class->findAllSharedWithUserWithFilters( - 'user', - 20, - 5, - true, - true, - [] - ); - - $this->assertEquals(['val'], $result); - } - - - public function testFindAll() + public function testFindAllItems() { $type = ListType::STARRED; $this->mapper->expects($this->once()) @@ -716,16 +685,4 @@ class ItemServiceTest extends TestCase $this->class->share('sender', 1, 'recipient'); } - - public function testSharedCount() - { - $this->mapper->expects($this->once()) - ->method('findAllFromUser') - ->with('user', ['shared_with' => 'user', 'unread' => true]) - ->will($this->returnValue([new Item(), new Item()])); - - $result = $this->class->sharedWithUser('user'); - - $this->assertEquals(2, count($result)); - } } |