summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-14 01:07:19 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-14 01:09:48 +0200
commit9e36c33104213f425941d4788a06889871a590c9 (patch)
treea265dca2132187c79c50ecff9d83af814fe3af1d /tests/lib
parent512373fadf64c4ea982e12d921684b298f112314 (diff)
downloadnextcloud-server-9e36c33104213f425941d4788a06889871a590c9.tar.gz
nextcloud-server-9e36c33104213f425941d4788a06889871a590c9.zip
use fetch method instead of fetchRow because fetchRow is only an owncloud internal alias that exists purely for compability
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/appframework/db/MapperTestUtility.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/appframework/db/MapperTestUtility.php b/tests/lib/appframework/db/MapperTestUtility.php
index 4c81d4cd27b..fc0e5c2c445 100644
--- a/tests/lib/appframework/db/MapperTestUtility.php
+++ b/tests/lib/appframework/db/MapperTestUtility.php
@@ -51,7 +51,7 @@ abstract class MapperTestUtility extends \PHPUnit_Framework_TestCase {
->getMock();
$this->query = $this->getMock('Query', array('execute', 'bindValue'));
- $this->pdoResult = $this->getMock('Result', array('fetchRow'));
+ $this->pdoResult = $this->getMock('Result', array('fetch'));
$this->queryAt = 0;
$this->prepareAt = 0;
$this->iterators = array();
@@ -65,7 +65,7 @@ abstract class MapperTestUtility extends \PHPUnit_Framework_TestCase {
* @param array $arguments the expected arguments for the prepare query
* method
* @param array $returnRows the rows that should be returned for the result
- * of the database query. If not provided, it wont be assumed that fetchRow
+ * of the database query. If not provided, it wont be assumed that fetch
* will be called on the result
*/
protected function setMapperResult($sql, $arguments=array(), $returnRows=array(),
@@ -77,7 +77,7 @@ abstract class MapperTestUtility extends \PHPUnit_Framework_TestCase {
$fetchAt = $this->fetchAt;
$this->pdoResult->expects($this->any())
- ->method('fetchRow')
+ ->method('fetch')
->will($this->returnCallback(
function() use ($iterators, $fetchAt){
$iterator = $iterators[$fetchAt];