MDL-48638 course: update unit test to new message

This commit is contained in:
Dan Poltawski 2014-12-22 16:23:04 +00:00
parent 427f70a8d3
commit affdc3b7e6

View File

@ -958,7 +958,7 @@ class core_course_externallib_testcase extends externallib_advanced_testcase {
core_course_external::delete_modules(array('1337'));
$this->fail('Exception expected due to missing course module.');
} catch (dml_missing_record_exception $e) {
$this->assertEquals('invalidrecord', $e->errorcode);
$this->assertEquals('invalidcoursemodule', $e->errorcode);
}
// Create two modules.