diff --git a/tests/locallib_test.php b/tests/locallib_test.php index 46000d4..5a55a14 100644 --- a/tests/locallib_test.php +++ b/tests/locallib_test.php @@ -1941,7 +1941,7 @@ public function test_oublog_check_view_permissions_personal_restrict() { $this->setUser($user); list($oublog, $oubloginstance) = oublog_get_personal_blog($USER->id); $cm = get_coursemodule_from_instance('oublog', $oublog->id); - $this->expectErrorMessage('Sorry: you do not have access to view this page.'); + $this->expectExceptionMessage('Sorry: you do not have access to view this page.'); oublog_check_view_permissions($oublog, context_module::instance($cm->id), $cm); }