MDL-19057 one more insert_record_raw test

This commit is contained in:
Petr Skoda 2010-09-06 19:37:30 +00:00
parent 4d7b046739
commit 3b63379634

View File

@ -1415,6 +1415,14 @@ class dml_test extends UnitTestCase {
} catch (coding_exception $ex) {
$this->assertTrue(true);
}
// wrong column error
try {
$DB->insert_record_raw($tablename, array('xxxxx' => 3, 'onechar' => 'bb'));
$this->assertFail('Exception expected due to invalid column');
} catch (dml_write_exception $ex) {
$this->assertTrue(true);
}
}
public function test_insert_record() {