MDL-81521 core: Update all possibly data providers to be static
Note: Some data providers could not be automatically be converted to being static. These will be handled in a separate issue.
This commit is contained in:
@@ -228,7 +228,7 @@ final class component_test extends advanced_testcase {
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function is_valid_plugin_name_provider(): array {
|
||||
public static function is_valid_plugin_name_provider(): array {
|
||||
return [
|
||||
[['mod', 'example1'], true],
|
||||
[['mod', 'feedback360'], true],
|
||||
@@ -696,7 +696,7 @@ final class component_test extends advanced_testcase {
|
||||
/**
|
||||
* Data provider for classloader test
|
||||
*/
|
||||
public function classloader_provider() {
|
||||
public static function classloader_provider(): array {
|
||||
global $CFG;
|
||||
|
||||
// As part of these tests, we Check that there are no unexpected problems with overlapping PSR namespaces.
|
||||
@@ -795,7 +795,7 @@ final class component_test extends advanced_testcase {
|
||||
/**
|
||||
* Data provider for psr_classloader test
|
||||
*/
|
||||
public function psr_classloader_provider() {
|
||||
public static function psr_classloader_provider(): array {
|
||||
global $CFG;
|
||||
|
||||
// As part of these tests, we Check that there are no unexpected problems with overlapping PSR namespaces.
|
||||
@@ -968,7 +968,7 @@ final class component_test extends advanced_testcase {
|
||||
/**
|
||||
* Data provider for get_class_file test
|
||||
*/
|
||||
public function get_class_file_provider() {
|
||||
public static function get_class_file_provider(): array {
|
||||
global $CFG;
|
||||
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user