summaryrefslogtreecommitdiffstats
path: root/tests/unit/db/FeedMapperTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/db/FeedMapperTest.php')
-rw-r--r--tests/unit/db/FeedMapperTest.php21
1 files changed, 2 insertions, 19 deletions
diff --git a/tests/unit/db/FeedMapperTest.php b/tests/unit/db/FeedMapperTest.php
index b7d095861..f347e9732 100644
--- a/tests/unit/db/FeedMapperTest.php
+++ b/tests/unit/db/FeedMapperTest.php
@@ -284,25 +284,8 @@ class FeedMapperTest extends \OCA\AppFramework\Utility\MapperTestUtility {
$pdoResult->expects($this->any())
->method('fetchRow');
- $query = $this->getMock('Query',
- array('execute'));
- $query->expects($this->at(0))
- ->method('execute')
- ->with($this->equalTo($arguments))
- ->will($this->returnValue($pdoResult));
- $this->api->expects($this->at(0))
- ->method('prepareQuery')
- ->with($this->equalTo($sql))
- ->will(($this->returnValue($query)));
-
- $query->expects($this->at(1))
- ->method('execute')
- ->with($this->equalTo($arguments2))
- ->will($this->returnValue($pdoResult));
- $this->api->expects($this->at(1))
- ->method('prepareQuery')
- ->with($this->equalTo($sql2))
- ->will(($this->returnValue($query)));
+ $this->setMapperResult($sql, $arguments);
+ $this->setMapperResult($sql2, $arguments2);
$this->mapper->delete($feed);