summaryrefslogtreecommitdiffstats
path: root/tests/lib/preferences.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2013-12-17 01:28:05 +0100
committerAndreas Fischer <bantu@owncloud.com>2013-12-21 19:56:14 +0100
commit4bc2a22317dd65f142cf697cd10ed6920d930544 (patch)
tree7b8625f810440eae4a117c9aa63daabb8f5982c5 /tests/lib/preferences.php
parent63a2bea7ec0171595f2a96639827e9d477fc6878 (diff)
downloadnextcloud-server-4bc2a22317dd65f142cf697cd10ed6920d930544.tar.gz
nextcloud-server-4bc2a22317dd65f142cf697cd10ed6920d930544.zip
Remove all uses of numRows().
Diffstat (limited to 'tests/lib/preferences.php')
-rw-r--r--tests/lib/preferences.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/preferences.php b/tests/lib/preferences.php
index 68b794e9ea9..a8236909ded 100644
--- a/tests/lib/preferences.php
+++ b/tests/lib/preferences.php
@@ -101,28 +101,28 @@ class Test_Preferences extends PHPUnit_Framework_TestCase {
$this->assertTrue(\OC_Preferences::deleteKey('Deleteuser', 'deleteapp', 'deletekey'));
$query = \OC_DB::prepare('SELECT `configvalue` FROM `*PREFIX*preferences` WHERE `userid` = ? AND `appid` = ? AND `configkey` = ?');
$result = $query->execute(array('Deleteuser', 'deleteapp', 'deletekey'));
- $this->assertEquals(0, $result->numRows());
+ $this->assertEquals(0, count($result->fetchAll()));
}
public function testDeleteApp() {
$this->assertTrue(\OC_Preferences::deleteApp('Deleteuser', 'deleteapp'));
$query = \OC_DB::prepare('SELECT `configvalue` FROM `*PREFIX*preferences` WHERE `userid` = ? AND `appid` = ?');
$result = $query->execute(array('Deleteuser', 'deleteapp'));
- $this->assertEquals(0, $result->numRows());
+ $this->assertEquals(0, count($result->fetchAll()));
}
public function testDeleteUser() {
$this->assertTrue(\OC_Preferences::deleteUser('Deleteuser'));
$query = \OC_DB::prepare('SELECT `configvalue` FROM `*PREFIX*preferences` WHERE `userid` = ?');
$result = $query->execute(array('Deleteuser'));
- $this->assertEquals(0, $result->numRows());
+ $this->assertEquals(0, count($result->fetchAll()));
}
public function testDeleteAppFromAllUsers() {
$this->assertTrue(\OC_Preferences::deleteAppFromAllUsers('someapp'));
$query = \OC_DB::prepare('SELECT `configvalue` FROM `*PREFIX*preferences` WHERE `appid` = ?');
$result = $query->execute(array('someapp'));
- $this->assertEquals(0, $result->numRows());
+ $this->assertEquals(0, count($result->fetchAll()));
}
}