summaryrefslogtreecommitdiffstats
path: root/tests/unit/businesslayer
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/businesslayer')
-rw-r--r--tests/unit/businesslayer/ItemBusinessLayerTest.php13
1 files changed, 2 insertions, 11 deletions
diff --git a/tests/unit/businesslayer/ItemBusinessLayerTest.php b/tests/unit/businesslayer/ItemBusinessLayerTest.php
index 9bff8acfc..e3ae280a6 100644
--- a/tests/unit/businesslayer/ItemBusinessLayerTest.php
+++ b/tests/unit/businesslayer/ItemBusinessLayerTest.php
@@ -249,18 +249,9 @@ class ItemBusinessLayerTest extends \OCA\AppFramework\Utility\TestUtility {
public function testAutoPurgeOldWillPurgeOld(){
- $item = new Item();
- $item->setId(3);
- $unread = array(
- new Item(), $item
- );
- $this->mapper->expects($this->once())
- ->method('getReadOlderThanThreshold')
- ->with($this->equalTo($this->threshold))
- ->will($this->returnValue($unread));
$this->mapper->expects($this->once())
- ->method('deleteReadOlderThanId')
- ->with($this->equalTo($item->getId()));
+ ->method('deleteReadOlderThanThreshold')
+ ->with($this->equalTo($this->threshold));
$result = $this->itemBusinessLayer->autoPurgeOld();