summaryrefslogtreecommitdiffstats
path: root/tests/unit/businesslayer/ItemBusinessLayerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/businesslayer/ItemBusinessLayerTest.php')
-rw-r--r--tests/unit/businesslayer/ItemBusinessLayerTest.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/unit/businesslayer/ItemBusinessLayerTest.php b/tests/unit/businesslayer/ItemBusinessLayerTest.php
index 2094456b7..54b7bc5fc 100644
--- a/tests/unit/businesslayer/ItemBusinessLayerTest.php
+++ b/tests/unit/businesslayer/ItemBusinessLayerTest.php
@@ -259,6 +259,32 @@ class ItemBusinessLayerTest extends \OCA\AppFramework\Utility\TestUtility {
}
+ public function testReadAll(){
+ $highestItemId = 6;
+
+ $this->mapper->expects($this->once())
+ ->method('readAll')
+ ->with($this->equalTo($highestItemId),
+ $this->equalTo($this->user));
+
+ $this->itemBusinessLayer->readAll($highestItemId, $this->user);
+ }
+
+
+ public function testReadFolder(){
+ $folderId = 3;
+ $highestItemId = 6;
+
+ $this->mapper->expects($this->once())
+ ->method('readFolder')
+ ->with($this->equalTo($folderId),
+ $this->equalTo($highestItemId),
+ $this->equalTo($this->user));
+
+ $this->itemBusinessLayer->readFolder($folderId, $highestItemId, $this->user);
+ }
+
+
public function testReadFeed(){
$feedId = 3;
$highestItemId = 6;