diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-20 15:09:15 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-20 15:09:15 +0200 |
commit | 381f8efd1096001f34810414c1054a00a64179c8 (patch) | |
tree | a8bd92117dfd7352bfae3e06cacf57287312036a /tests/unit/businesslayer | |
parent | 4d4a27969705b8ff14c139795228d2f05e017b87 (diff) |
set autopurge limit to 200 and purge per feed rather than per user or per all items, fix #98
Diffstat (limited to 'tests/unit/businesslayer')
-rw-r--r-- | tests/unit/businesslayer/ItemBusinessLayerTest.php | 13 |
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(); |