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