From 3ec1087b71a17d75c6e13cd9debf0bc542b8630e Mon Sep 17 00:00:00 2001 From: Alexander Van der Bellen Date: Fri, 7 Feb 2025 17:03:42 +0800 Subject: [PATCH] Fix deprecated expectErrorMessage call --- tests/locallib_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }