MDL-83468 phpunit: Fix various tests after phpunit 10

This commit is contained in:
Andrew Nicols 2024-10-16 11:58:29 +08:00 committed by Sara Arjona
parent b95a8c6ecc
commit bc75ef8bbc
No known key found for this signature in database
51 changed files with 717 additions and 659 deletions

View file

@ -194,27 +194,27 @@ final class stateactions_test extends \advanced_testcase {
public static function basic_role_provider(): array {
return [
'admin' => [
'role' => 'admin',
'rolename' => 'admin',
'expectedexception' => false,
],
'editingteacher' => [
'role' => 'editingteacher',
'rolename' => 'editingteacher',
'expectedexception' => false,
],
'teacher' => [
'role' => 'teacher',
'rolename' => 'teacher',
'expectedexception' => true,
],
'student' => [
'role' => 'student',
'rolename' => 'student',
'expectedexception' => true,
],
'guest' => [
'role' => 'guest',
'rolename' => 'guest',
'expectedexception' => true,
],
'unenroled' => [
'role' => 'unenroled',
'rolename' => 'unenroled',
'expectedexception' => true,
],
];