Skip to content
Snippets Groups Projects
Commit b980987e authored by Bart Visscher's avatar Bart Visscher
Browse files

Doctrine only returns false

parent eb907840
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ class Test_DB extends PHPUnit_Framework_TestCase {
$result = $query->execute(array('uri_1'));
$this->assertTrue((bool)$result);
$row = $result->fetchRow();
$this->assertFalse((bool)$row); //PDO returns false, MDB2 returns null
$this->assertFalse($row);
$query = OC_DB::prepare('INSERT INTO `*PREFIX*'.$this->table2.'` (`fullname`,`uri`) VALUES (?,?)');
$result = $query->execute(array('fullname test', 'uri_1'));
$this->assertTrue((bool)$result);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment