@@ -803,7 +803,7 @@ public function test_should_login_redirect($cfg, $config, $param, $multiidp, $se
803
803
*
804
804
* @return array of testcases
805
805
*/
806
- public function provider_should_login_redirect (): array {
806
+ public static function provider_should_login_redirect (): array {
807
807
$ midp = (new \moodle_url ('/auth/saml2/selectidp.php ' ))->out ();
808
808
return [
809
809
// Login normal, dual login on.
@@ -1019,7 +1019,7 @@ public function test_check_whitelisted_ip_redirect($saml, $remoteip, $whitelist,
1019
1019
*
1020
1020
* @return array
1021
1021
*/
1022
- public function provider_check_whitelisted_ip_redirect (): array {
1022
+ public static function provider_check_whitelisted_ip_redirect (): array {
1023
1023
return [
1024
1024
'saml off, no ip, no redirect ' => ['off ' , '1.2.3.4 ' , '' , false ],
1025
1025
'saml not specified, junk, no redirect ' => [null , '1.2.3.4 ' , 'qwer1234!@#qwer ' , false ],
@@ -1034,7 +1034,7 @@ public function provider_check_whitelisted_ip_redirect(): array {
1034
1034
*
1035
1035
* @return array
1036
1036
*/
1037
- public function provider_is_access_allowed (): array {
1037
+ public static function provider_is_access_allowed (): array {
1038
1038
return [
1039
1039
'' => [[
1040
1040
['uid ' => 'test ' ], // User don't have groups attribute.
@@ -1258,7 +1258,7 @@ public function test_update_custom_user_profile_fields($attributes): void {
1258
1258
*
1259
1259
* @return array of testcases
1260
1260
*/
1261
- public function provider_update_custom_user_profile_fields (): array {
1261
+ public static function provider_update_custom_user_profile_fields (): array {
1262
1262
return [
1263
1263
[['testfield ' => ['Test data ' ]]],
1264
1264
[['secondfield ' => ['A different string ' ]]],
@@ -1305,7 +1305,7 @@ public function test_missing_user_custom_profile_fields($attributes): void {
1305
1305
*
1306
1306
* @return array of testcases
1307
1307
*/
1308
- public function provider_missing_user_custom_profile_fields (): array {
1308
+ public static function provider_missing_user_custom_profile_fields (): array {
1309
1309
return [
1310
1310
[['missingfield ' => ['Test data ' ]]],
1311
1311
[['secondfield ' => ['A different string ' ]]],
@@ -1344,7 +1344,7 @@ public function test_invalid_map_user_profile_fields($mapping, $attributes): voi
1344
1344
*
1345
1345
* @return array of testcases
1346
1346
*/
1347
- public function provider_invalid_map_user_profile_fields (): array {
1347
+ public static function provider_invalid_map_user_profile_fields (): array {
1348
1348
return [
1349
1349
[
1350
1350
['field ' => 'userame ' , 'mapping ' => 'invalid ' ],
0 commit comments