summaryrefslogtreecommitdiffstats
path: root/tests/lib/db.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-06-24 18:15:02 +0200
committerBart Visscher <bartv@thisnet.nl>2013-06-24 22:38:19 +0200
commit769212a9a025a58a5b2189eb2461a01e0ece6d36 (patch)
treeb45970062d0feb8e5bc5ea31fb6d9d68d5f190de /tests/lib/db.php
parentb980987e32270fc416eefc87f7e163763cab2776 (diff)
downloadnextcloud-server-769212a9a025a58a5b2189eb2461a01e0ece6d36.tar.gz
nextcloud-server-769212a9a025a58a5b2189eb2461a01e0ece6d36.zip
numRows doesn't work with Oracle
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() {