From 3733a74f05ef49fbae24c9c00868ed30c7541e44 Mon Sep 17 00:00:00 2001 From: Dmitrii Metelkin Date: Sat, 16 Nov 2019 22:47:18 +1100 Subject: [PATCH] Fix unit tests in later moodle versions --- tests/auth_plugin_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auth_plugin_test.php b/tests/auth_plugin_test.php index ba6c119..e760a2b 100644 --- a/tests/auth_plugin_test.php +++ b/tests/auth_plugin_test.php @@ -752,7 +752,7 @@ class auth_plugin_userkey_testcase extends advanced_testcase { * Test that IP address mismatch exception gets thrown if user id is incorrect. * * @expectedException moodle_exception - * @expectedExceptionMessage Invalid user id + * @expectedExceptionMessageRegExp /Invalid user id/i */ public function test_invalid_user_exception_thrown_if_user_is_invalid() { global $DB;