From afe9467f17147f63148cb0b8cb918bb3c2d724d7 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sat, 20 Apr 2013 15:12:08 +0200 Subject: also test for limit parameter --- tests/unit/db/ItemMapperTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/unit') diff --git a/tests/unit/db/ItemMapperTest.php b/tests/unit/db/ItemMapperTest.php index f46533c58..01bc84664 100644 --- a/tests/unit/db/ItemMapperTest.php +++ b/tests/unit/db/ItemMapperTest.php @@ -348,8 +348,8 @@ class ItemMapperTest extends \OCA\AppFramework\Utility\MapperTestUtility { $this->api->expects($this->at(1)) ->method('prepareQuery') - ->with($this->equalTo($sql2)) - ->will(($this->returnValue($query2))); + ->with($this->equalTo($sql2), $this->equalTo(1)) + ->will($this->returnValue($query2)); $result = $this->mapper->deleteReadOlderThanThreshold($threshold); } -- cgit v1.2.3