MDL-51623 core_event: Updating error messages
authorDavid Monllao <davidm@moodle.com>
Thu, 8 Oct 2015 07:57:46 +0000 (15:57 +0800)
committerDavid Monllao <davidm@moodle.com>
Thu, 8 Oct 2015 07:57:46 +0000 (15:57 +0800)
lib/tests/event_test.php

index 556d4ff..55cdbf9 100644 (file)
@@ -956,7 +956,7 @@ and nothing else.";
         $pageevent = \core_tests\event\course_module_viewed::create($data);
         $pageevent->trigger();
 
         $pageevent = \core_tests\event\course_module_viewed::create($data);
         $pageevent->trigger();
 
-        $this->assertSame(['observe_all_alt'], \core_tests\event\unittest_observer::$info, 'Can still subscribe to child event');
+        $this->assertSame(['observe_all_alt'], \core_tests\event\unittest_observer::$info, 'Error observing triggered event');
 
         \core_tests\event\unittest_observer::reset();
 
 
         \core_tests\event\unittest_observer::reset();
 
@@ -969,7 +969,7 @@ and nothing else.";
         $pageevent = \core_tests\event\course_module_viewed::create($data);
         $pageevent->trigger();
 
         $pageevent = \core_tests\event\course_module_viewed::create($data);
         $pageevent->trigger();
 
-        $this->assertSame(['observe_all_alt'], \core_tests\event\unittest_observer::$info, 'Can subscribe to parent event');
+        $this->assertSame(['observe_all_alt'], \core_tests\event\unittest_observer::$info, 'Error observing parent class event');
 
         \core_tests\event\unittest_observer::reset();
     }
 
         \core_tests\event\unittest_observer::reset();
     }