diff --git a/tests/php/Extension/FluentExtensionTest.php b/tests/php/Extension/FluentExtensionTest.php index f6671d4f..5498f3eb 100644 --- a/tests/php/Extension/FluentExtensionTest.php +++ b/tests/php/Extension/FluentExtensionTest.php @@ -307,7 +307,7 @@ public function testLocalisedFieldsCanBeSorted($locale, array $sortArgs, $expect /** * @return array[] Keys: Locale, sorting arguments, expected titles in result */ - public function sortRecordProvider() + public static function sortRecordProvider() { return [ /** diff --git a/tests/php/Extension/FluentSiteTreeExtensionTest.php b/tests/php/Extension/FluentSiteTreeExtensionTest.php index dac0d88e..9962e92a 100644 --- a/tests/php/Extension/FluentSiteTreeExtensionTest.php +++ b/tests/php/Extension/FluentSiteTreeExtensionTest.php @@ -116,7 +116,7 @@ public function testGetLocales() * - page id * - expected link */ - public function provideURLTests() + public static function provideURLTests() { return [ // Non-domain tests @@ -473,7 +473,7 @@ public function testHomeNotVisibleInCMSOneConfigExact() /** * @return array[] */ - public function localePrefixUrlProvider() + public static function localePrefixUrlProvider() { return [ 'locale_with_domain' => ['en_US', 'about', 'http://www.example.com/usa/'], @@ -521,7 +521,7 @@ public function testPageVisibilityWithFallback($cmsMode, $frontendMode, bool $is }); } - public function localeFallbackProvider(): array + public static function localeFallbackProvider(): array { return [ 'Frontend / no inheritance' => [ diff --git a/tests/php/Extension/LocalisedCopyTest/DuplicationTest.php b/tests/php/Extension/LocalisedCopyTest/DuplicationTest.php index 8c53604f..7482ae81 100644 --- a/tests/php/Extension/LocalisedCopyTest/DuplicationTest.php +++ b/tests/php/Extension/LocalisedCopyTest/DuplicationTest.php @@ -238,7 +238,7 @@ public function testEditWithInheritedRelation(string $locale, bool $duplicated, }); } - public function localesProvider(): array + public static function localesProvider(): array { return [ ['en_NZ', false, true], @@ -248,7 +248,7 @@ public function localesProvider(): array ]; } - public function copyStateProvider(): array + public static function copyStateProvider(): array { return [ [false], diff --git a/tests/php/Extension/LocalisedVersionsTest.php b/tests/php/Extension/LocalisedVersionsTest.php index 1794e2f4..f13549d1 100644 --- a/tests/php/Extension/LocalisedVersionsTest.php +++ b/tests/php/Extension/LocalisedVersionsTest.php @@ -217,7 +217,7 @@ public function testArchive(): void }); } - public function latestVersionsProvider(): array + public static function latestVersionsProvider(): array { return [ [null, 6], @@ -227,7 +227,7 @@ public function latestVersionsProvider(): array ]; } - public function listVersionsProvider(): array + public static function listVersionsProvider(): array { return [ [ diff --git a/tests/php/Middleware/DetectLocaleMiddlewareTest.php b/tests/php/Middleware/DetectLocaleMiddlewareTest.php index bf1f4e6c..98896841 100644 --- a/tests/php/Middleware/DetectLocaleMiddlewareTest.php +++ b/tests/php/Middleware/DetectLocaleMiddlewareTest.php @@ -88,7 +88,7 @@ public function testGetLocalePriority($url, $routeParams, $queryParams, $persist /** * @return array[] List of tests with arguments: $url, $routeParams, $queryParams, $persisted, $header, $expected */ - public function localePriorityProvider() + public static function localePriorityProvider() { return [/* // First priority: controller routing params diff --git a/tests/php/Middleware/InitStateMiddlewareTest.php b/tests/php/Middleware/InitStateMiddlewareTest.php index 3989c35b..cd8d02cf 100644 --- a/tests/php/Middleware/InitStateMiddlewareTest.php +++ b/tests/php/Middleware/InitStateMiddlewareTest.php @@ -24,7 +24,7 @@ public function testGetIsFrontend($url, $getVars, $expected) /** * @return array[] */ - public function isFrontendProvider() + public static function isFrontendProvider() { return [ ['admin', [], false], diff --git a/tests/php/Model/LocalDateTimeTest.php b/tests/php/Model/LocalDateTimeTest.php index db2448cb..0bbb4ee4 100644 --- a/tests/php/Model/LocalDateTimeTest.php +++ b/tests/php/Model/LocalDateTimeTest.php @@ -82,7 +82,7 @@ public function testSwitchLocales($locale, $expectedTime) }); } - public function provideTestSwitchLocales() + public static function provideTestSwitchLocales() { return [ [ diff --git a/tests/php/Model/LocaleTest.php b/tests/php/Model/LocaleTest.php index 24d95f7c..12fcaf41 100644 --- a/tests/php/Model/LocaleTest.php +++ b/tests/php/Model/LocaleTest.php @@ -79,7 +79,7 @@ public function testIsLocale($locale, $input, $expected) /** * @return array[] */ - public function isLocaleProvider() + public static function isLocaleProvider() { return [ ['en_NZ', 'en_NZ', true], diff --git a/tests/php/Task/InitialPageLocalisationTaskTest.php b/tests/php/Task/InitialPageLocalisationTaskTest.php index 664528e5..fcc19a04 100644 --- a/tests/php/Task/InitialPageLocalisationTaskTest.php +++ b/tests/php/Task/InitialPageLocalisationTaskTest.php @@ -105,7 +105,7 @@ public function testInitialPageLocalisation(bool $publish, int $limit, array $lo $this->assertEquals($published, $pages); } - public function publishStateProvider(): array + public static function publishStateProvider(): array { return [ [