From 2a72392d591ca2e1a9b28b39fd0af65a6dad7031 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Mon, 30 Aug 2010 10:51:50 +0000 Subject: [PATCH] MDL-23997 new tests for bound query compatibility - reverting text comparison, we need param type hints for that --- lib/dml/simpletest/testdml.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/dml/simpletest/testdml.php b/lib/dml/simpletest/testdml.php index 23440d06fab..865ffde301f 100755 --- a/lib/dml/simpletest/testdml.php +++ b/lib/dml/simpletest/testdml.php @@ -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)); + */ } }