diff --git a/mod/bigbluebuttonbn/tests/task/base_send_notification_test.php b/mod/bigbluebuttonbn/tests/task/base_send_notification_test.php index 5ef3850081a..c21082a3835 100644 --- a/mod/bigbluebuttonbn/tests/task/base_send_notification_test.php +++ b/mod/bigbluebuttonbn/tests/task/base_send_notification_test.php @@ -53,9 +53,7 @@ class base_send_notification_test extends advanced_testcase { */ private function get_instance_reflection(): \ReflectionMethod { $rc = new \ReflectionClass(base_send_notification::class); - $rcm = $rc->getMethod('get_instance'); - $rcm->setAccessible(true); - return $rcm; + return $rc->getMethod('get_instance'); } /**