summaryrefslogtreecommitdiffstats
path: root/tests/lib/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/db.php')
-rw-r--r--tests/lib/db.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/db.php b/tests/lib/db.php
index 60331a23295..18b7340ec9b 100644
--- a/tests/lib/db.php
+++ b/tests/lib/db.php
@@ -94,7 +94,7 @@ class Test_DB extends PHPUnit_Framework_TestCase {
$query = OC_DB::prepare('SELECT * FROM `*PREFIX*'.$this->table3.'`');
$result = $query->execute();
$this->assertTrue((bool)$result);
- $this->assertEquals('4', $result->numRows());
+ $this->assertEquals('4', count($result->fetchAll()));
}
public function testinsertIfNotExistDontOverwrite() {