MDL-48638 course: update unit test to new message
authorDan Poltawski <dan@moodle.com>
Mon, 22 Dec 2014 16:23:04 +0000 (16:23 +0000)
committerDan Poltawski <dan@moodle.com>
Mon, 22 Dec 2014 16:23:04 +0000 (16:23 +0000)
course/tests/externallib_test.php

index 37bd1a8..a4e4234 100644 (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.