MDL-23997 new tests for bound query compatibility - reverting text comparison, we need param type hints for that

This commit is contained in:
Petr Skoda 2010-08-30 10:51:50 +00:00
parent 78b3faa98c
commit 2a72392d59

View File

@ -2856,6 +2856,8 @@ class dml_test extends UnitTestCase {
$this->assertEqual(1, count($records));
$this->assertTrue($records = $DB->get_records($tablename, array('name' => '2')));
$this->assertEqual(1, count($records));
/* TODO: we need param type hints to make this work
$this->assertTrue($records = $DB->get_records($tablename, array('content' => '1')));
$this->assertEqual(1, count($records));
$this->assertTrue($records = $DB->get_records($tablename, array('content' => 1)));
@ -2864,6 +2866,7 @@ class dml_test extends UnitTestCase {
$this->assertEqual(1, count($records));
$this->assertTrue($records = $DB->get_records($tablename, array('content' => '2')));
$this->assertEqual(1, count($records));
*/
}
}