MDL-23997 even more unittests detecting failures in sqlsrv driver
authorPetr Skoda <skodak@moodle.org>
Wed, 1 Sep 2010 16:05:17 +0000 (16:05 +0000)
committerPetr Skoda <skodak@moodle.org>
Wed, 1 Sep 2010 16:05:17 +0000 (16:05 +0000)
lib/dml/simpletest/testdml.php

index 30ff934..b179b55 100755 (executable)
@@ -2854,6 +2854,9 @@ class dml_test extends UnitTestCase {
         $this->assertTrue($DB->record_exists($tablename, array('name'=>1)));
         $this->assertTrue($DB->record_exists($tablename, array('name'=>'1')));
         $this->assertFalse($DB->record_exists($tablename, array('name'=>111)));
+        $this->assertTrue($DB->get_record($tablename, array('name'=>1)));
+        $this->assertTrue($DB->get_record($tablename, array('name'=>'1')));
+        $this->assertFalse($DB->get_record($tablename, array('name'=>111)));
         $sqlqm = "SELECT *
                     FROM {{$tablename}}
                    WHERE name = ?";