mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-19057 one more insert_record_raw test
This commit is contained in:
parent
4d7b046739
commit
3b63379634
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user