MDL-23997 add some unconvertible contents to the tests, just to be sure
authorEloy Lafuente <stronk7@moodle.org>
Mon, 30 Aug 2010 12:24:42 +0000 (12:24 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Mon, 30 Aug 2010 12:24:42 +0000 (12:24 +0000)
lib/dml/simpletest/testdml.php

index 529a755..aecf3ac 100755 (executable)
@@ -2844,8 +2844,10 @@ class dml_test extends UnitTestCase {
 
         $this->assertTrue($DB->insert_record($tablename, array('name' => '1', 'content'=>'xx')));
         $this->assertTrue($DB->insert_record($tablename, array('name' => 2, 'content'=>'yy')));
+        $this->assertTrue($DB->insert_record($tablename, array('name' => 'somestring', 'content'=>'zz')));
         $this->assertTrue($DB->insert_record($tablename, array('name' => 'aa', 'content'=>'1')));
         $this->assertTrue($DB->insert_record($tablename, array('name' => 'bb', 'content'=>2)));
+        $this->assertTrue($DB->insert_record($tablename, array('name' => 'cc', 'content'=>'sometext')));
 
 
         // Conditions in CHAR colums