diff --git a/typo3/sysext/backend/Tests/Functional/Backend/Shortcut/ShortcutRepositoryTest.php b/typo3/sysext/backend/Tests/Functional/Backend/Shortcut/ShortcutRepositoryTest.php index e46916b8e9f850890a207a2f70eb7129972f3174..2cba69a4027a8e39d6ebb185ef4da4e370f351e0 100644 --- a/typo3/sysext/backend/Tests/Functional/Backend/Shortcut/ShortcutRepositoryTest.php +++ b/typo3/sysext/backend/Tests/Functional/Backend/Shortcut/ShortcutRepositoryTest.php @@ -63,7 +63,7 @@ class ShortcutRepositoryTest extends FunctionalTestCase self::assertEquals($exists, $this->subject->shortcutExists($routeIdentifier, json_encode($arguments))); } - public function shortcutExistsTestDataProvider(): \Generator + public static function shortcutExistsTestDataProvider(): \Generator { yield 'Shortcut exists' => [ 'web_list', diff --git a/typo3/sysext/backend/Tests/Functional/Clipboard/ClipboardTest.php b/typo3/sysext/backend/Tests/Functional/Clipboard/ClipboardTest.php index b5891d17211a68da1f7fb6908e2360a19aaf7b31..ee414069f857485f4b8e158e035d217d0b2dc671 100644 --- a/typo3/sysext/backend/Tests/Functional/Clipboard/ClipboardTest.php +++ b/typo3/sysext/backend/Tests/Functional/Clipboard/ClipboardTest.php @@ -75,7 +75,7 @@ class ClipboardTest extends FunctionalTestCase parent::tearDown(); } - public function localizationsAreResolvedDataProvider(): array + public static function localizationsAreResolvedDataProvider(): array { return [ 'live workspace with live & version localizations' => [ diff --git a/typo3/sysext/backend/Tests/Functional/Controller/MfaAjaxControllerTest.php b/typo3/sysext/backend/Tests/Functional/Controller/MfaAjaxControllerTest.php index e1de24bdc9415ce24de1b27fedfab2c832b9314e..fb17448e7b320a0dada336d942cfd959cb273321 100644 --- a/typo3/sysext/backend/Tests/Functional/Controller/MfaAjaxControllerTest.php +++ b/typo3/sysext/backend/Tests/Functional/Controller/MfaAjaxControllerTest.php @@ -55,7 +55,7 @@ class MfaAjaxControllerTest extends FunctionalTestCase self::assertEquals('Invalid request could not be processed', $response['message']); } - public function handleRequestHandlesInvalidRequestTestDataProvider(): \Generator + public static function handleRequestHandlesInvalidRequestTestDataProvider(): \Generator { yield 'No parameters' => [[]]; yield 'Invalid action' => [['action' => 'unknown']]; @@ -113,7 +113,7 @@ class MfaAjaxControllerTest extends FunctionalTestCase self::assertEquals($remaining, $response['remaining']); } - public function handleRequestHandlesDeactivationRequestTestDataProvider(): \Generator + public static function handleRequestHandlesDeactivationRequestTestDataProvider(): \Generator { yield 'No deactivation because no active providers' => [ ['userId' => 3], diff --git a/typo3/sysext/backend/Tests/Functional/Controller/MfaConfigurationControllerTest.php b/typo3/sysext/backend/Tests/Functional/Controller/MfaConfigurationControllerTest.php index eae1f0a9caa59a0298f2664f53d782547e0492cf..eb4b896ee3f1870f8f1ac98bad74785370189c1a 100644 --- a/typo3/sysext/backend/Tests/Functional/Controller/MfaConfigurationControllerTest.php +++ b/typo3/sysext/backend/Tests/Functional/Controller/MfaConfigurationControllerTest.php @@ -210,7 +210,7 @@ class MfaConfigurationControllerTest extends FunctionalTestCase self::assertEquals($flashMessage, $message->getMessage()); } - public function handleRequestRedirectsToOverviewOnActionProviderMismatchTestDataProvider(): \Generator + public static function handleRequestRedirectsToOverviewOnActionProviderMismatchTestDataProvider(): \Generator { yield 'Empty provider' => [ 'setup', @@ -318,7 +318,7 @@ class MfaConfigurationControllerTest extends FunctionalTestCase } } - public function handleRequestForwardsToCorrectActionTestDataProvider(): \Generator + public static function handleRequestForwardsToCorrectActionTestDataProvider(): \Generator { yield 'Edit provider' => [ 'edit', @@ -400,7 +400,7 @@ class MfaConfigurationControllerTest extends FunctionalTestCase self::assertMatchesRegularExpression($providerContent, $responseContent); } - public function handleRequestAddsFormOnInteractionViewsTestTestDataProvider(): \Generator + public static function handleRequestAddsFormOnInteractionViewsTestTestDataProvider(): \Generator { yield 'Edit provider' => ['edit', true, '/<input.*id="name"/s']; yield 'Setup provider' => ['setup', false, '/<input.*id="totp"/s']; diff --git a/typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php b/typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php index d51488fb51b34d969309de06c9b81ad5536391f7..bafbad4290fe614c577ec85b2dc2cbc8621cef57 100644 --- a/typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php +++ b/typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php @@ -575,7 +575,7 @@ class TreeControllerTest extends FunctionalTestCase self::assertEquals($expected, $actual); } - public function getAllEntryPointPageTreesInWorkspaceWithSearchDataProvider(): array + public static function getAllEntryPointPageTreesInWorkspaceWithSearchDataProvider(): array { return [ 'search for "ACME in your Region" (live value, but deleted in workspace)' => [ diff --git a/typo3/sysext/backend/Tests/Functional/Controller/ShortcutControllerTest.php b/typo3/sysext/backend/Tests/Functional/Controller/ShortcutControllerTest.php index 43c317548ccd450c01223f6b7792e0cd3170e09a..27b5fb22e851779a89c81412ba9c1137b8a533fe 100644 --- a/typo3/sysext/backend/Tests/Functional/Controller/ShortcutControllerTest.php +++ b/typo3/sysext/backend/Tests/Functional/Controller/ShortcutControllerTest.php @@ -63,7 +63,7 @@ class ShortcutControllerTest extends FunctionalTestCase self::assertEquals($expectedResponseStatus, $response->getStatusCode()); } - public function addShortcutTestDataProvide(): \Generator + public static function addShortcutTestDataProvide(): \Generator { yield 'No route defined' => [ [], diff --git a/typo3/sysext/backend/Tests/Functional/Domain/Repository/Localization/LocalizationRepositoryTest.php b/typo3/sysext/backend/Tests/Functional/Domain/Repository/Localization/LocalizationRepositoryTest.php index 1c2d1a0838f8bd0b66dd40de66f00e9b8259b165..4360edf2a9f1ed556ddcfdd7121de0ce9e0d9c13 100644 --- a/typo3/sysext/backend/Tests/Functional/Domain/Repository/Localization/LocalizationRepositoryTest.php +++ b/typo3/sysext/backend/Tests/Functional/Domain/Repository/Localization/LocalizationRepositoryTest.php @@ -40,7 +40,7 @@ class LocalizationRepositoryTest extends FunctionalTestCase $this->subject = new LocalizationRepository(); } - public function fetchOriginLanguageDataProvider(): array + public static function fetchOriginLanguageDataProvider(): array { return [ 'default language returns empty array' => [ @@ -103,7 +103,7 @@ class LocalizationRepositoryTest extends FunctionalTestCase self::assertEquals($expectedResult, $result); } - public function getLocalizedRecordCountDataProvider(): array + public static function getLocalizedRecordCountDataProvider(): array { return [ 'default language returns 0 always' => [ @@ -154,7 +154,7 @@ class LocalizationRepositoryTest extends FunctionalTestCase self::assertEquals($expectedResult, $result); } - public function getRecordsToCopyDatabaseResultDataProvider(): array + public static function getRecordsToCopyDatabaseResultDataProvider(): array { return [ 'from language 0 to 1 connected mode' => [ diff --git a/typo3/sysext/backend/Tests/Functional/Form/FormDataProvider/TcaCategoryTest.php b/typo3/sysext/backend/Tests/Functional/Form/FormDataProvider/TcaCategoryTest.php index ef8f599ffe09d74d197432d32986efe33614a94d..97d9d6a25658bd94f985835f40e704f11937d75a 100644 --- a/typo3/sysext/backend/Tests/Functional/Form/FormDataProvider/TcaCategoryTest.php +++ b/typo3/sysext/backend/Tests/Functional/Form/FormDataProvider/TcaCategoryTest.php @@ -184,7 +184,7 @@ class TcaCategoryTest extends FunctionalTestCase self::assertEquals($expected, (new TcaCategory())->addData($input)); } - public function addDataOverridesDefaultFieldConfigurationBySiteConfigDataProvider(): array + public static function addDataOverridesDefaultFieldConfigurationBySiteConfigDataProvider(): array { return [ 'one setting' => [ diff --git a/typo3/sysext/backend/Tests/Functional/Form/FormDataProvider/TcaSelectItemsTest.php b/typo3/sysext/backend/Tests/Functional/Form/FormDataProvider/TcaSelectItemsTest.php index 4737fba587e4c3d4bf280d9719a401826d7fa5e3..add804de919e025aaf7b57143f1669349b51338b 100644 --- a/typo3/sysext/backend/Tests/Functional/Form/FormDataProvider/TcaSelectItemsTest.php +++ b/typo3/sysext/backend/Tests/Functional/Form/FormDataProvider/TcaSelectItemsTest.php @@ -604,7 +604,7 @@ class TcaSelectItemsTest extends FunctionalTestCase self::assertEquals($expected, (new TcaSelectItems())->addData($input)); } - public function addDataReplacesMarkersInForeignTableClauseDataProvider(): array + public static function addDataReplacesMarkersInForeignTableClauseDataProvider(): array { return [ 'replace REC_FIELD' => [ @@ -2788,7 +2788,7 @@ class TcaSelectItemsTest extends FunctionalTestCase self::assertEquals($expected, (new TcaSelectItems())->addData($input)); } - public function processSelectFieldSetsCorrectValuesForMmRelationsDataProvider(): array + public static function processSelectFieldSetsCorrectValuesForMmRelationsDataProvider(): array { return [ 'Relation with MM table and new status with default values' => [ diff --git a/typo3/sysext/backend/Tests/Functional/Form/FormDataProvider/TcaSelectTreeItemsTest.php b/typo3/sysext/backend/Tests/Functional/Form/FormDataProvider/TcaSelectTreeItemsTest.php index ee7fc0ac8b32e6c5fa12e71e06cfd259a347ea2f..3cc077bd80afbf655bb329f3eaf0536a46e08405 100644 --- a/typo3/sysext/backend/Tests/Functional/Form/FormDataProvider/TcaSelectTreeItemsTest.php +++ b/typo3/sysext/backend/Tests/Functional/Form/FormDataProvider/TcaSelectTreeItemsTest.php @@ -251,7 +251,7 @@ class TcaSelectTreeItemsTest extends FunctionalTestCase self::assertEquals($expectedItems, $resultItems); } - public function addDataHandsSiteConfigurationOverToTableConfigurationTreeDataProvider(): array + public static function addDataHandsSiteConfigurationOverToTableConfigurationTreeDataProvider(): array { return [ 'one setting' => [ diff --git a/typo3/sysext/backend/Tests/Functional/History/RecordHistoryTest.php b/typo3/sysext/backend/Tests/Functional/History/RecordHistoryTest.php index 8948afcffbca19c7a32eb2f286d5288df8d3dc01..dfb85a7a05cb65181a4d30d0d369293810bdfa82 100644 --- a/typo3/sysext/backend/Tests/Functional/History/RecordHistoryTest.php +++ b/typo3/sysext/backend/Tests/Functional/History/RecordHistoryTest.php @@ -34,7 +34,7 @@ class RecordHistoryTest extends FunctionalTestCase $this->subject = new RecordHistory(); } - public function findEventsForCorrelationWorksAsExpectedDataProvider(): array + public static function findEventsForCorrelationWorksAsExpectedDataProvider(): array { return [ 'da625644-8e50-47ee-8c11-bb19552a79e4' => ['da625644-8e50-47ee-8c11-bb19552a79e4', 2], diff --git a/typo3/sysext/backend/Tests/Functional/Module/ModuleDataTest.php b/typo3/sysext/backend/Tests/Functional/Module/ModuleDataTest.php index 6e6ea231936ae699cd357a2e5ea95003adf0ab28..797bbd400c300d36a0a9047608fc0afd1561957e 100644 --- a/typo3/sysext/backend/Tests/Functional/Module/ModuleDataTest.php +++ b/typo3/sysext/backend/Tests/Functional/Module/ModuleDataTest.php @@ -128,7 +128,7 @@ class ModuleDataTest extends FunctionalTestCase $moduleData->clean('property', []); } - public function cleanModuleDataPropertyDataProvider(): \Generator + public static function cleanModuleDataPropertyDataProvider(): \Generator { yield 'Nothing happens since the value is valid' => [ ['aValue'], @@ -167,7 +167,7 @@ class ModuleDataTest extends FunctionalTestCase self::assertEquals($cleanedValue, $moduleData->get('property')); } - public function cleanUpModuleDataPropertiesDataProvider(): \Generator + public static function cleanUpModuleDataPropertiesDataProvider(): \Generator { yield 'All valid' => [ [ diff --git a/typo3/sysext/backend/Tests/Functional/Template/Components/Buttons/Action/ShortcutButtonTest.php b/typo3/sysext/backend/Tests/Functional/Template/Components/Buttons/Action/ShortcutButtonTest.php index e7988d347112d36e50c0b65eeadd406754f08830..22cb7d185075117551b013c68649e56ce36f1a4d 100644 --- a/typo3/sysext/backend/Tests/Functional/Template/Components/Buttons/Action/ShortcutButtonTest.php +++ b/typo3/sysext/backend/Tests/Functional/Template/Components/Buttons/Action/ShortcutButtonTest.php @@ -75,7 +75,7 @@ class ShortcutButtonTest extends FunctionalTestCase ); } - public function rendersCorrectMarkupDataProvider(): \Generator + public static function rendersCorrectMarkupDataProvider(): \Generator { yield 'Recordlist' => [ (new ShortcutButton()) diff --git a/typo3/sysext/backend/Tests/Functional/Tree/Repository/PageTreeRepositoryTest.php b/typo3/sysext/backend/Tests/Functional/Tree/Repository/PageTreeRepositoryTest.php index df67139f80fa783e429fd472cef4a12e9a3c2b7d..a959864aa26bdafd5db13e631cb057f70337f7ee 100644 --- a/typo3/sysext/backend/Tests/Functional/Tree/Repository/PageTreeRepositoryTest.php +++ b/typo3/sysext/backend/Tests/Functional/Tree/Repository/PageTreeRepositoryTest.php @@ -33,7 +33,7 @@ class PageTreeRepositoryTest extends FunctionalTestCase $this->setUpBackendUser(1); } - public function getTreeLevelsReturnsGroupedAndSortedPageTreeArrayDataProvider(): iterable + public static function getTreeLevelsReturnsGroupedAndSortedPageTreeArrayDataProvider(): iterable { yield 'Single entry point with depth 2' => [ 'pageTree' => [ @@ -238,7 +238,7 @@ class PageTreeRepositoryTest extends FunctionalTestCase self::assertEquals($expected, $actual[0]); } - public function fetchFilteredTreeDataProvider(): \Generator + public static function fetchFilteredTreeDataProvider(): \Generator { yield 'Third level find by title' => [ 'Sub Area 2', diff --git a/typo3/sysext/backend/Tests/Functional/Utility/BackendUtilityTest.php b/typo3/sysext/backend/Tests/Functional/Utility/BackendUtilityTest.php index 4198e16f9332489b047ee59ab216e871c2392591..50b4f44cbda446ca88224ef7fe8a38838020fb12 100644 --- a/typo3/sysext/backend/Tests/Functional/Utility/BackendUtilityTest.php +++ b/typo3/sysext/backend/Tests/Functional/Utility/BackendUtilityTest.php @@ -145,7 +145,7 @@ class BackendUtilityTest extends FunctionalTestCase ); } - public function enableFieldsStatementIsCorrectDataProvider(): array + public static function enableFieldsStatementIsCorrectDataProvider(): array { // Expected sql should contain identifier escaped in mysql/mariadb identifier quotings "`", which are // replaced by corresponding quoting values for other database systems. diff --git a/typo3/sysext/core/Tests/Functional/Authentication/BackendUserAuthenticationTest.php b/typo3/sysext/core/Tests/Functional/Authentication/BackendUserAuthenticationTest.php index fd113406b6597eea5b6b925d35d5308c2fe70fac..a4face5224de2f9087d46910b46667212ba7fba7 100644 --- a/typo3/sysext/core/Tests/Functional/Authentication/BackendUserAuthenticationTest.php +++ b/typo3/sysext/core/Tests/Functional/Authentication/BackendUserAuthenticationTest.php @@ -142,7 +142,7 @@ class BackendUserAuthenticationTest extends FunctionalTestCase $this->setUpBackendUser(4); } - public function isImportEnabledDataProvider(): array + public static function isImportEnabledDataProvider(): array { return [ 'admin user' => [ @@ -175,7 +175,7 @@ class BackendUserAuthenticationTest extends FunctionalTestCase self::assertEquals($expected, $subject->isImportEnabled()); } - public function isExportEnabledDataProvider(): array + public static function isExportEnabledDataProvider(): array { return [ 'admin user' => [ diff --git a/typo3/sysext/core/Tests/Functional/Authentication/GroupResolverTest.php b/typo3/sysext/core/Tests/Functional/Authentication/GroupResolverTest.php index b00381f06568b3d9cf17c69c62e4a363368b32ef..533440ada0ffa46c29c5f24082bf0de42c7a4c05 100644 --- a/typo3/sysext/core/Tests/Functional/Authentication/GroupResolverTest.php +++ b/typo3/sysext/core/Tests/Functional/Authentication/GroupResolverTest.php @@ -30,7 +30,7 @@ class GroupResolverTest extends FunctionalTestCase $this->importCSVDataSet(__DIR__ . '/Fixtures/be_groups.csv'); } - public function findAllUsersOfGroupsHandlesRecursiveCallsDataProvider(): array + public static function findAllUsersOfGroupsHandlesRecursiveCallsDataProvider(): array { return [ 'invalid group' => [ diff --git a/typo3/sysext/core/Tests/Functional/Cache/Backend/ApcuBackendTest.php b/typo3/sysext/core/Tests/Functional/Cache/Backend/ApcuBackendTest.php index 543d830eb4d51afc1185606578cce38547abd553..7229ae49361ae9d8c2e738fd6f89c0fdf598389b 100644 --- a/typo3/sysext/core/Tests/Functional/Cache/Backend/ApcuBackendTest.php +++ b/typo3/sysext/core/Tests/Functional/Cache/Backend/ApcuBackendTest.php @@ -75,7 +75,7 @@ class ApcuBackendTest extends FunctionalTestCase self::assertTrue($backend->has($identifier)); } - public function itIsPossibleToSetAndGetEntryDataProvider(): iterable + public static function itIsPossibleToSetAndGetEntryDataProvider(): iterable { yield [ 5 ]; yield [ 5.23 ]; diff --git a/typo3/sysext/core/Tests/Functional/Cache/Backend/FileBackendTest.php b/typo3/sysext/core/Tests/Functional/Cache/Backend/FileBackendTest.php index b7a42e40f793f0860c21a58e699af45171232ad6..6682366e5ec72ce58f4623686bdc53f92df065fe 100644 --- a/typo3/sysext/core/Tests/Functional/Cache/Backend/FileBackendTest.php +++ b/typo3/sysext/core/Tests/Functional/Cache/Backend/FileBackendTest.php @@ -367,7 +367,7 @@ class FileBackendTest extends FunctionalTestCase self::assertFileDoesNotExist($pathAndFilename); } - public function invalidEntryIdentifiers(): array + public static function invalidEntryIdentifiers(): array { return [ 'trailing slash' => ['/myIdentifier'], diff --git a/typo3/sysext/core/Tests/Functional/Cache/Frontend/VariableFrontendTest.php b/typo3/sysext/core/Tests/Functional/Cache/Frontend/VariableFrontendTest.php index 826222fcd6bdeacefa77b4453727ad5096ab34f8..0239720ea0906283807eab2a3f09a72b3efb4d1d 100644 --- a/typo3/sysext/core/Tests/Functional/Cache/Frontend/VariableFrontendTest.php +++ b/typo3/sysext/core/Tests/Functional/Cache/Frontend/VariableFrontendTest.php @@ -36,7 +36,7 @@ class VariableFrontendTest extends FunctionalTestCase ], ]; - public function insertSerializedArrayIntoLobAndRetrieveItDataProvider(): array + public static function insertSerializedArrayIntoLobAndRetrieveItDataProvider(): array { $arrayToSerialize = [ 'string' => 'Serialize a string', diff --git a/typo3/sysext/core/Tests/Functional/Configuration/FlexForm/FlexFormToolsTest.php b/typo3/sysext/core/Tests/Functional/Configuration/FlexForm/FlexFormToolsTest.php index 131a9217526e6326b931b2ddc0c6715515d928cc..cbeda88640119ef6614462f6cc8edf930c710277 100644 --- a/typo3/sysext/core/Tests/Functional/Configuration/FlexForm/FlexFormToolsTest.php +++ b/typo3/sysext/core/Tests/Functional/Configuration/FlexForm/FlexFormToolsTest.php @@ -364,7 +364,7 @@ class FlexFormToolsTest extends FunctionalTestCase /** * Data provider for getDataStructureIdentifierReturnsValidNameForTwoFieldCombinations */ - public function getDataStructureIdentifierReturnsValidNameForTwoFieldCombinationsDataProvider(): array + public static function getDataStructureIdentifierReturnsValidNameForTwoFieldCombinationsDataProvider(): array { return [ 'direct match of two fields' => [ diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/GetUniqueTest.php b/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/GetUniqueTest.php index 6489a0a126dfcd8e5559f2fb13a7c5cf87652200..328d23af571d440a1bb90b294e09bb0f3c7d5658 100644 --- a/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/GetUniqueTest.php +++ b/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/GetUniqueTest.php @@ -43,7 +43,7 @@ class GetUniqueTest extends FunctionalTestCase /** * Data provider for getUnique */ - public function getUniqueDataProvider(): array + public static function getUniqueDataProvider(): array { $randomValue = GeneralUtility::makeInstance(Random::class)->generateRandomHexString(10); diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/SecurityTest.php b/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/SecurityTest.php index 91ad32c56a8fa77227327f634332928fed769b61..67fd9818a194e7fa71a063308ded87a6e6296862 100644 --- a/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/SecurityTest.php +++ b/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/SecurityTest.php @@ -57,7 +57,7 @@ class SecurityTest extends FunctionalTestCase $this->actionService = GeneralUtility::makeInstance(ActionService::class); } - public function crossSiteScriptingDataProvider(): array + public static function crossSiteScriptingDataProvider(): array { return [ [ diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/SlugUniqueTest.php b/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/SlugUniqueTest.php index bb2de7103cb2204480fdcbc9f828bad65314300e..7103c43707e984c84adaa65599cff31d388caafb 100644 --- a/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/SlugUniqueTest.php +++ b/typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/SlugUniqueTest.php @@ -39,7 +39,7 @@ class SlugUniqueTest extends AbstractDataHandlerActionTestCase /** * Data provider for differentUniqueEvalSettingsDeDuplicateSlug */ - public function getEvalSettingDataProvider(): array + public static function getEvalSettingDataProvider(): array { return [ 'uniqueInSite' => ['uniqueInSite'], diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/DataResolving/PlainDataResolverTest.php b/typo3/sysext/core/Tests/Functional/DataHandling/DataResolving/PlainDataResolverTest.php index 061f0b2f4f129ac8284d3fd153b6e613f0425497..708e1b474f3c34e648ce94a51a2f89fc9b05f41a 100644 --- a/typo3/sysext/core/Tests/Functional/DataHandling/DataResolving/PlainDataResolverTest.php +++ b/typo3/sysext/core/Tests/Functional/DataHandling/DataResolving/PlainDataResolverTest.php @@ -40,7 +40,7 @@ class PlainDataResolverTest extends AbstractDataHandlerActionTestCase * ['sorting'] // sorting criteria * ] */ - public function sortingDataProvider(): array + public static function sortingDataProvider(): array { return [ 'sorting' => [ diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/Regular/MinValueTest.php b/typo3/sysext/core/Tests/Functional/DataHandling/Regular/MinValueTest.php index e3ee83852c165bac4088cb18db81d2791d12aafb..acedd984b496927fa5bde46864a439dc76caa96f 100644 --- a/typo3/sysext/core/Tests/Functional/DataHandling/Regular/MinValueTest.php +++ b/typo3/sysext/core/Tests/Functional/DataHandling/Regular/MinValueTest.php @@ -41,7 +41,7 @@ class MinValueTest extends FunctionalTestCase Bootstrap::initializeLanguageObject(); } - public function valuesLowerThanMinResetToEmptyStringDataProvider(): iterable + public static function valuesLowerThanMinResetToEmptyStringDataProvider(): iterable { yield 'Too few characters result in empty string' => [ 'value' => 'Too short', diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php b/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php index bdea480a2db63b89f071ec5826a4cc0766dfe8c9..31536f5a60849da4e7033e5c4c19da688dd2aa23 100644 --- a/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php +++ b/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperTest.php @@ -97,7 +97,7 @@ class SlugHelperTest extends AbstractDataHandlerActionTestCase * 2 = "German" - (Fallback to Default) * 3 = "Swiss German" - (Fallback to German) */ - public function generateRespectsFallbackLanguageOfParentPageSlugDataProvider(): array + public static function generateRespectsFallbackLanguageOfParentPageSlugDataProvider(): array { return [ 'default page / default parent' => [ diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperUniqueWithLanguageTest.php b/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperUniqueWithLanguageTest.php index d61405b8d3dcf0fabe15bc26793bbb6848a22243..4875d1ee92de534b9d605ce4b21f118431673681 100644 --- a/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperUniqueWithLanguageTest.php +++ b/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperUniqueWithLanguageTest.php @@ -37,7 +37,7 @@ class SlugHelperUniqueWithLanguageTest extends AbstractDataHandlerActionTestCase $this->setUpFrontendRootPage(1, ['typo3/sysext/core/Tests/Functional/Fixtures/Frontend/JsonRenderer.typoscript']); } - public function buildSlugForUniqueRespectsLanguageDataProvider(): array + public static function buildSlugForUniqueRespectsLanguageDataProvider(): array { return [ 'sameLanguageSameSlug' => [ diff --git a/typo3/sysext/core/Tests/Functional/Database/Query/QueryBuilder/PositionPlaceholderPreparedStatementTest.php b/typo3/sysext/core/Tests/Functional/Database/Query/QueryBuilder/PositionPlaceholderPreparedStatementTest.php index 122181914fb66376e8142fa4c95bfc778a1d64c4..b2c98a473e0cee7a0654598c8c31849f6827058c 100644 --- a/typo3/sysext/core/Tests/Functional/Database/Query/QueryBuilder/PositionPlaceholderPreparedStatementTest.php +++ b/typo3/sysext/core/Tests/Functional/Database/Query/QueryBuilder/PositionPlaceholderPreparedStatementTest.php @@ -228,7 +228,7 @@ class PositionPlaceholderPreparedStatementTest extends FunctionalTestCase unset($result1, $result2); } - public function invalidParameterTypesForPreparedStatements(): array + public static function invalidParameterTypesForPreparedStatements(): array { return [ 'PARAM_INT_ARRAY' => [Connection::PARAM_INT_ARRAY, 'PARAM_INT_ARRAY', [10, 20]], diff --git a/typo3/sysext/core/Tests/Functional/Domain/Access/RecordAccessVoterTest.php b/typo3/sysext/core/Tests/Functional/Domain/Access/RecordAccessVoterTest.php index 2b376ec61b316d37f63545a1136403f7cf8035e2..2b354180397c628f98e9a2553d814cd71a99ae61 100644 --- a/typo3/sysext/core/Tests/Functional/Domain/Access/RecordAccessVoterTest.php +++ b/typo3/sysext/core/Tests/Functional/Domain/Access/RecordAccessVoterTest.php @@ -37,7 +37,7 @@ class RecordAccessVoterTest extends FunctionalTestCase ); } - public function accessGrantedTestDataProvider(): \Generator + public static function accessGrantedTestDataProvider(): \Generator { yield 'No access permissions set' => [ 'pages', @@ -131,7 +131,7 @@ class RecordAccessVoterTest extends FunctionalTestCase )); } - public function groupAccessGrantedTestDataProvider(): \Generator + public static function groupAccessGrantedTestDataProvider(): \Generator { yield 'No enable field' => [ 'aTable', diff --git a/typo3/sysext/core/Tests/Functional/Imaging/IconFactoryTest.php b/typo3/sysext/core/Tests/Functional/Imaging/IconFactoryTest.php index 6b113a27b6648e0abd698c070881ff125b6842c2..195cb5d487a21f783e7f48a83ab1f451c29d07f1 100644 --- a/typo3/sysext/core/Tests/Functional/Imaging/IconFactoryTest.php +++ b/typo3/sysext/core/Tests/Functional/Imaging/IconFactoryTest.php @@ -64,7 +64,7 @@ class IconFactoryTest extends FunctionalTestCase /** * DataProvider for icon sizes */ - public function differentSizesDataProvider(): array + public static function differentSizesDataProvider(): array { return [ ['size ' . Icon::SIZE_DEFAULT => ['input' => Icon::SIZE_DEFAULT, 'expected' => Icon::SIZE_DEFAULT]], diff --git a/typo3/sysext/core/Tests/Functional/Imaging/ImageMagickFileTest.php b/typo3/sysext/core/Tests/Functional/Imaging/ImageMagickFileTest.php index b055daa491ba2173b767f18ce17f11361e742c12..10e612ee125e0afa5ac524ce813fa6ad04df3669 100644 --- a/typo3/sysext/core/Tests/Functional/Imaging/ImageMagickFileTest.php +++ b/typo3/sysext/core/Tests/Functional/Imaging/ImageMagickFileTest.php @@ -27,7 +27,7 @@ class ImageMagickFileTest extends FunctionalTestCase { protected bool $initializeDatabase = false; - public function framesAreConsideredDataProvider(): array + public static function framesAreConsideredDataProvider(): array { return [ 'file.pdf' => ['file.pdf', null, '\'pdf:{directory}/file.pdf\''], @@ -47,7 +47,7 @@ class ImageMagickFileTest extends FunctionalTestCase self::assertSame($expectation, (string)$file); } - public function resultIsEscapedDataProvider(): array + public static function resultIsEscapedDataProvider(): array { // probably Windows system if (DIRECTORY_SEPARATOR === '\\') { @@ -77,7 +77,7 @@ class ImageMagickFileTest extends FunctionalTestCase self::assertSame($expectation, (string)$file); } - public function fileStatementIsResolvedDataProvider(): array + public static function fileStatementIsResolvedDataProvider(): array { return [ 'file.ai' => ['file.ai', '\'pdf:{directory}/file.ai\''], @@ -118,7 +118,7 @@ class ImageMagickFileTest extends FunctionalTestCase * In case mime-types cannot be resolved (or cannot be verified), allowed extensions * are used as conversion format (e.g. 'file.ai.jpg' -> 'jpg:...'). */ - public function fileStatementIsResolvedForEnforcedMimeTypeDataProvider(): array + public static function fileStatementIsResolvedForEnforcedMimeTypeDataProvider(): array { return [ 'file.ai.jpg' => ['file.ai.jpg', '\'jpg:{directory}/file.ai.jpg\'', 'inode/x-empty'], @@ -151,7 +151,7 @@ class ImageMagickFileTest extends FunctionalTestCase self::assertSame($expectation, (string)$file); } - public function fileStatementIsResolvedForConfiguredMimeTypeDataProvider(): array + public static function fileStatementIsResolvedForConfiguredMimeTypeDataProvider(): array { return [ 'file.fax' => ['file.fax', '\'g3:{directory}/file.fax\''], @@ -176,7 +176,7 @@ class ImageMagickFileTest extends FunctionalTestCase self::assertSame($expectation, (string)$file); } - public function fileStatementIsDeniedDataProvider(): array + public static function fileStatementIsDeniedDataProvider(): array { return [ 'file.ps' => ['file.ps'], @@ -205,7 +205,7 @@ class ImageMagickFileTest extends FunctionalTestCase ImageMagickFile::fromFilePath($filePath); } - public function fileStatementIsDeniedForConfiguredMimeTypeDataProvider(): array + public static function fileStatementIsDeniedForConfiguredMimeTypeDataProvider(): array { return [ 'file.ps' => ['file.ps'], diff --git a/typo3/sysext/core/Tests/Functional/Localization/LanguageServiceTest.php b/typo3/sysext/core/Tests/Functional/Localization/LanguageServiceTest.php index dd36a8ea72bc92766e79435298c9cdebcd4e7841..8c23e1f7ac2be2aecb9c2537c5fb4c996cbacf2d 100644 --- a/typo3/sysext/core/Tests/Functional/Localization/LanguageServiceTest.php +++ b/typo3/sysext/core/Tests/Functional/Localization/LanguageServiceTest.php @@ -61,7 +61,7 @@ class LanguageServiceTest extends FunctionalTestCase self::assertEquals($expected, $subject->sL($input)); } - public function splitLabelTestDataProvider(): \Generator + public static function splitLabelTestDataProvider(): \Generator { yield 'String without whitespace' => [ 'Edit content', @@ -139,7 +139,7 @@ class LanguageServiceTest extends FunctionalTestCase $this->ensureLocalizationScenarioWorks($locale, self::LANGUAGE_FILE, $expectedLabels); } - public function ensureVariousLocalizationScenariosWorkDataProvider(): \Generator + public static function ensureVariousLocalizationScenariosWorkDataProvider(): \Generator { yield 'Can handle localization for native language' => [ 'locale' => 'default', @@ -180,7 +180,7 @@ class LanguageServiceTest extends FunctionalTestCase $this->ensureLocalizationScenarioWorks($locale, self::LANGUAGE_FILE, $expectedLabels); } - public function ensureVariousLocalizationOverrideScenariosWorkDataProvider(): \Generator + public static function ensureVariousLocalizationOverrideScenariosWorkDataProvider(): \Generator { yield 'Can override localization for native translation' => [ 'locale' => 'default', @@ -220,7 +220,7 @@ class LanguageServiceTest extends FunctionalTestCase $this->ensureLocalizationScenarioWorks($locale, self::LANGUAGE_FILE_CORE, $expectedLabels); } - public function ensureVariousLocalizationOverrideScenariosForCoreExtensionWorkDataProvider(): \Generator + public static function ensureVariousLocalizationOverrideScenariosForCoreExtensionWorkDataProvider(): \Generator { yield 'Can override localization of core for native locale' => [ 'locale' => 'default', @@ -251,7 +251,7 @@ class LanguageServiceTest extends FunctionalTestCase } } - public function ensureMultiLanguageTranslationInSameContextWorkDataProvider(): \Generator + public static function ensureMultiLanguageTranslationInSameContextWorkDataProvider(): \Generator { yield 'Multi language translation in same context works with default first' => [ 'expectedLabelSet' => [ diff --git a/typo3/sysext/core/Tests/Functional/MetaDataHandling/PluginsTest.php b/typo3/sysext/core/Tests/Functional/MetaDataHandling/PluginsTest.php index 39af061b46476ae1d8e01538a3b1f9198a56928b..c187ca7b34b911501307da3edbba431678756529 100644 --- a/typo3/sysext/core/Tests/Functional/MetaDataHandling/PluginsTest.php +++ b/typo3/sysext/core/Tests/Functional/MetaDataHandling/PluginsTest.php @@ -43,7 +43,7 @@ class PluginsTest extends AbstractTestCase ); } - public function ensurePageSetupIsOkDataProvider(): array + public static function ensurePageSetupIsOkDataProvider(): array { return [ 'page:uid:1' => [1, false], @@ -75,7 +75,7 @@ class PluginsTest extends AbstractTestCase } } - public function ensureMetaDataAreCorrectDataProvider(): array + public static function ensureMetaDataAreCorrectDataProvider(): array { return [ 'page:uid:1' => [1, 'Rootpage for Tests', ''], diff --git a/typo3/sysext/core/Tests/Functional/Page/PageRendererTest.php b/typo3/sysext/core/Tests/Functional/Page/PageRendererTest.php index 3a8d93d0316397251096830e132ff49ce6be2412..e3d09305df9e8279d1c558fbd430ee08b43ee841 100644 --- a/typo3/sysext/core/Tests/Functional/Page/PageRendererTest.php +++ b/typo3/sysext/core/Tests/Functional/Page/PageRendererTest.php @@ -191,7 +191,7 @@ class PageRendererTest extends FunctionalTestCase self::assertStringContainsString('<meta property="og:image" content="/path/to/image2.jpg" />', $stateBasedRenderedString); } - public function pageRendererRendersFooterValuesDataProvider(): array + public static function pageRendererRendersFooterValuesDataProvider(): array { return [ 'frontend' => [SystemEnvironmentBuilder::REQUESTTYPE_FE], diff --git a/typo3/sysext/core/Tests/Functional/RateLimiter/RateLimiterFactoryTest.php b/typo3/sysext/core/Tests/Functional/RateLimiter/RateLimiterFactoryTest.php index 36c086ae3b2247239852c6ad45307ddea4c3a790..9f56e1360d945605cee56b1ff716a934b19b01d3 100644 --- a/typo3/sysext/core/Tests/Functional/RateLimiter/RateLimiterFactoryTest.php +++ b/typo3/sysext/core/Tests/Functional/RateLimiter/RateLimiterFactoryTest.php @@ -26,7 +26,7 @@ class RateLimiterFactoryTest extends FunctionalTestCase { protected bool $initializeDatabase = false; - public function loginRateLimiterLimitsRequestsDataProvider(): array + public static function loginRateLimiterLimitsRequestsDataProvider(): array { return [ 'backend accepted' => [ diff --git a/typo3/sysext/core/Tests/Functional/Resource/Driver/LocalDriverTest.php b/typo3/sysext/core/Tests/Functional/Resource/Driver/LocalDriverTest.php index 2d8232543a05769a9d3d5ad34f59b2f4ae3ffc42..0087871396b23e75d93a3d3dfbf4c982f696ae59 100644 --- a/typo3/sysext/core/Tests/Functional/Resource/Driver/LocalDriverTest.php +++ b/typo3/sysext/core/Tests/Functional/Resource/Driver/LocalDriverTest.php @@ -92,7 +92,7 @@ class LocalDriverTest extends FunctionalTestCase self::assertStringNotContainsString('/../', $basePath); } - public function publicUrlIsCalculatedCorrectlyWithDifferentBasePathsAndBasUrisDataProvider(): array + public static function publicUrlIsCalculatedCorrectlyWithDifferentBasePathsAndBasUrisDataProvider(): array { return [ 'no base uri, within public' => [ @@ -325,7 +325,7 @@ class LocalDriverTest extends FunctionalTestCase self::assertNotEquals('/', substr($subject->_call('getAbsoluteBasePath'), -2, 1)); } - public function getSpecificFileInformationDataProvider(): array + public static function getSpecificFileInformationDataProvider(): array { return [ 'size' => [ @@ -499,7 +499,7 @@ class LocalDriverTest extends FunctionalTestCase self::assertEquals($baseUri . '/subfolder/file2.ext', $subject->getPublicUrl('/subfolder/file2.ext')); } - public function getPublicUrlReturnsValidUrlContainingSpecialCharactersDataProvider(): array + public static function getPublicUrlReturnsValidUrlContainingSpecialCharactersDataProvider(): array { return [ ['/single file with some special chars äüö!.txt'], @@ -1185,7 +1185,7 @@ class LocalDriverTest extends FunctionalTestCase * - String value charset (none = '', utf-8, latin1, etc.) * - Expected result (cleaned fileName) */ - public function sanitizeFileNameUTF8FilesystemDataProvider(): array + public static function sanitizeFileNameUTF8FilesystemDataProvider(): array { // Generate string containing all characters for the utf-8 Latin-1 Supplement (U+0080 to U+00FF) // without U+0080 to U+009F: control characters @@ -1244,7 +1244,7 @@ class LocalDriverTest extends FunctionalTestCase * - String value charset (none = '', utf-8, latin1, etc.) * - Expected result (cleaned fileName) */ - public function sanitizeFileNameNonUTF8FilesystemDataProvider(): array + public static function sanitizeFileNameNonUTF8FilesystemDataProvider(): array { // Generate string containing all characters for the iso8859-1 charset, charcode greater than 127 $iso88591GreaterThan127 = ''; diff --git a/typo3/sysext/core/Tests/Functional/Resource/ResourceCompressorTest.php b/typo3/sysext/core/Tests/Functional/Resource/ResourceCompressorTest.php index b5af6d4a08b82fd4ac851e49819c01e1214dccb7..f002a5c3eded23284ba47142151eab542bc2607c 100644 --- a/typo3/sysext/core/Tests/Functional/Resource/ResourceCompressorTest.php +++ b/typo3/sysext/core/Tests/Functional/Resource/ResourceCompressorTest.php @@ -89,7 +89,7 @@ class ResourceCompressorTest extends FunctionalTestCase ); } - public function compressCssFileContentDataProvider(): array + public static function compressCssFileContentDataProvider(): array { return [ // File. Tests: @@ -138,7 +138,7 @@ class ResourceCompressorTest extends FunctionalTestCase self::assertStringEqualsFile($expected, $compressedCss); } - public function getFilenamesFromMainDirInFrontendContextDataProvider(): array + public static function getFilenamesFromMainDirInFrontendContextDataProvider(): array { return [ // Get filename using EXT: diff --git a/typo3/sysext/core/Tests/Functional/Resource/ResourceStorageTest.php b/typo3/sysext/core/Tests/Functional/Resource/ResourceStorageTest.php index 4be2c8450b22d7e80e0d1ba4b3ee01de5f04a712..6f3941e6f91191e42b76266008cdfca4a671e605 100644 --- a/typo3/sysext/core/Tests/Functional/Resource/ResourceStorageTest.php +++ b/typo3/sysext/core/Tests/Functional/Resource/ResourceStorageTest.php @@ -75,7 +75,7 @@ class ResourceStorageTest extends FunctionalTestCase /** * @return array<string, array{0: 'read'|'write', 1: array<string, bool>, 2: bool}> */ - public function checkFolderPermissionsFilesystemPermissionsDataProvider(): array + public static function checkFolderPermissionsFilesystemPermissionsDataProvider(): array { return [ 'read action on readable/writable folder' => [ @@ -147,7 +147,7 @@ class ResourceStorageTest extends FunctionalTestCase /** * @return array<string, array{0: array<string, bool>, 1: string, string}> */ - public function checkUserActionPermission_arbitraryPermissionDataProvider(): array + public static function checkUserActionPermission_arbitraryPermissionDataProvider(): array { return [ 'all lower cased' => [ diff --git a/typo3/sysext/core/Tests/Functional/Resource/Security/SvgSanitizerTest.php b/typo3/sysext/core/Tests/Functional/Resource/Security/SvgSanitizerTest.php index bf5a6e30b6661c0fdc1f2167e18aca50b8f2dd6b..ff493585412500950328df7db3cc76c3ccd29af9 100644 --- a/typo3/sysext/core/Tests/Functional/Resource/Security/SvgSanitizerTest.php +++ b/typo3/sysext/core/Tests/Functional/Resource/Security/SvgSanitizerTest.php @@ -28,7 +28,7 @@ class SvgSanitizerTest extends FunctionalTestCase /** * @return array<string, string[]> */ - public function svgContentIsSanitizedDataProvider(): array + public static function svgContentIsSanitizedDataProvider(): array { $basePath = dirname(__FILE__, 2) . '/Fixtures/'; $finder = new Finder(); diff --git a/typo3/sysext/core/Tests/Functional/Resource/StorageRepositoryTest.php b/typo3/sysext/core/Tests/Functional/Resource/StorageRepositoryTest.php index 01457113edfd3a78145ac1a3f0030162c8496e19..e70bd1adab691f1911d581b47041bd238a72af68 100644 --- a/typo3/sysext/core/Tests/Functional/Resource/StorageRepositoryTest.php +++ b/typo3/sysext/core/Tests/Functional/Resource/StorageRepositoryTest.php @@ -42,7 +42,7 @@ class StorageRepositoryTest extends FunctionalTestCase parent::tearDown(); } - public function bestStorageIsResolvedDataProvider(): iterable + public static function bestStorageIsResolvedDataProvider(): iterable { // `{public}` will be replaced by public project path (not having trailing slash) // double slashes `//` are used on purpose for given file identifiers @@ -162,7 +162,7 @@ class StorageRepositoryTest extends FunctionalTestCase self::assertEquals($rootProcessingFolder, $processingFolder); } - public function isWithinFileMountBoundariesDataProvider(): array + public static function isWithinFileMountBoundariesDataProvider(): array { return [ 'Access to file in ro file mount denied for write request' => [ @@ -327,7 +327,7 @@ class StorageRepositoryTest extends FunctionalTestCase self::assertFileDoesNotExist(Environment::getPublicPath() . '/fileadmin/foo/bar.txt'); } - public function searchFilesFindsFilesInFolderDataProvider(): array + public static function searchFilesFindsFilesInFolderDataProvider(): array { return [ 'Finds foo recursive by name' => [ diff --git a/typo3/sysext/core/Tests/Functional/Routing/Aspect/PersistedAliasMapperTest.php b/typo3/sysext/core/Tests/Functional/Routing/Aspect/PersistedAliasMapperTest.php index 0c1781d7fe2da3bde4392a254d02c67b51a60c71..d6cb891e57f103bfb47f7afdec5172c3f0415cfb 100644 --- a/typo3/sysext/core/Tests/Functional/Routing/Aspect/PersistedAliasMapperTest.php +++ b/typo3/sysext/core/Tests/Functional/Routing/Aspect/PersistedAliasMapperTest.php @@ -146,7 +146,7 @@ class PersistedAliasMapperTest extends FunctionalTestCase parent::tearDown(); } - public function languageAwareRecordsAreResolvedDataProvider(): array + public static function languageAwareRecordsAreResolvedDataProvider(): array { $baseDataSet = [ 'non-existing, default language' => ['this-value-does-not-exist', 'default', null], @@ -212,7 +212,7 @@ class PersistedAliasMapperTest extends FunctionalTestCase self::assertSame($expectation, $this->subject->resolve($requestValue)); } - public function recordVisibilityDataProvider(): array + public static function recordVisibilityDataProvider(): array { $rawContext = new Context(); $visibleContext = new Context(); diff --git a/typo3/sysext/core/Tests/Functional/Routing/Aspect/PersistedPatternMapperTest.php b/typo3/sysext/core/Tests/Functional/Routing/Aspect/PersistedPatternMapperTest.php index 41e5aa4f9a89229af776aedc73994ae412cde9f3..e7bf183af35c8f2825be620a9154aed4196fb6a3 100644 --- a/typo3/sysext/core/Tests/Functional/Routing/Aspect/PersistedPatternMapperTest.php +++ b/typo3/sysext/core/Tests/Functional/Routing/Aspect/PersistedPatternMapperTest.php @@ -154,7 +154,7 @@ class PersistedPatternMapperTest extends FunctionalTestCase parent::tearDown(); } - public function languageAwareRecordsAreResolvedDataProvider(): array + public static function languageAwareRecordsAreResolvedDataProvider(): array { $baseDataSet = [ 'non-existing, default language' => ['this-value-does-not-exist', 'default', null], @@ -220,7 +220,7 @@ class PersistedPatternMapperTest extends FunctionalTestCase self::assertSame($expectation, $this->subject->resolve($requestValue)); } - public function recordVisibilityDataProvider(): array + public static function recordVisibilityDataProvider(): array { $rawContext = new Context(); $visibleContext = new Context(); diff --git a/typo3/sysext/core/Tests/Functional/Tca/PagesVisibleFieldsTest.php b/typo3/sysext/core/Tests/Functional/Tca/PagesVisibleFieldsTest.php index 9ae55b08687d9b004bddefc21a8e67accaded8e6..31f35fde766308fc1ad8438cee05cc61554ae29b 100644 --- a/typo3/sysext/core/Tests/Functional/Tca/PagesVisibleFieldsTest.php +++ b/typo3/sysext/core/Tests/Functional/Tca/PagesVisibleFieldsTest.php @@ -206,7 +206,7 @@ class PagesVisibleFieldsTest extends FunctionalTestCase ], ]; - public function pagesFormContainsExpectedFieldsDataProvider(): array + public static function pagesFormContainsExpectedFieldsDataProvider(): array { $pageTypes = []; diff --git a/typo3/sysext/core/Tests/Functional/TypoScript/IncludeTree/TreeFromLineStreamBuilderTest.php b/typo3/sysext/core/Tests/Functional/TypoScript/IncludeTree/TreeFromLineStreamBuilderTest.php index 5a04276231515d2a039d38a82ef6344de74055e1..2c80560c1468fc0488b313c1228ec6a20f45adab 100644 --- a/typo3/sysext/core/Tests/Functional/TypoScript/IncludeTree/TreeFromLineStreamBuilderTest.php +++ b/typo3/sysext/core/Tests/Functional/TypoScript/IncludeTree/TreeFromLineStreamBuilderTest.php @@ -59,7 +59,7 @@ class TreeFromLineStreamBuilderTest extends FunctionalTestCase $this->registerComparator(new IncludeTreeObjectIgnoringIdentifierAndPathComparator()); } - public function buildTreeConditionDataProvider(): iterable + public static function buildTreeConditionDataProvider(): iterable { $typoScript = '[foo = bar]'; $typoScriptLineStream = (new LosslessTokenizer())->tokenize($typoScript); @@ -291,7 +291,7 @@ class TreeFromLineStreamBuilderTest extends FunctionalTestCase self::assertEquals($expectedTree, $tree); } - public function buildTreeAtImportDataProvider(): iterable + public static function buildTreeAtImportDataProvider(): iterable { $atImportStatement = '@import \'EXT:core/Tests/Functional/TypoScript/IncludeTree/Fixtures/AtImport/AbsoluteImport/Scenario1/setup.typoscript\''; $atImportLineStream = (new LosslessTokenizer())->tokenize($atImportStatement); @@ -764,7 +764,7 @@ class TreeFromLineStreamBuilderTest extends FunctionalTestCase self::assertEquals($expectedTree, $tree); } - public function buildTreeAtImportTsConfigDataProvider(): iterable + public static function buildTreeAtImportTsConfigDataProvider(): iterable { $atImportStatement = '@import \'EXT:core/Tests/Functional/TypoScript/IncludeTree/Fixtures/AtImport/AbsoluteImport/Scenario3/mainInclude.tsconfig\''; $atImportLineStream = (new LosslessTokenizer())->tokenize($atImportStatement); @@ -801,7 +801,7 @@ class TreeFromLineStreamBuilderTest extends FunctionalTestCase self::assertEquals($expectedTree, $tree); } - public function buildTreeImportTyposcriptDataProvider(): iterable + public static function buildTreeImportTyposcriptDataProvider(): iterable { $includeTyposcriptStatement = '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:core/Tests/Functional/TypoScript/IncludeTree/Fixtures/IncludeTyposcript/ExtImport/Scenario1/setup.typoscript">'; $includeTyposcriptStatementLineStream = (new LosslessTokenizer())->tokenize($includeTyposcriptStatement); diff --git a/typo3/sysext/core/Tests/Functional/TypoScript/IncludeTree/Visitor/IncludeTreeSetupConditionConstantSubstitutionVisitorTest.php b/typo3/sysext/core/Tests/Functional/TypoScript/IncludeTree/Visitor/IncludeTreeSetupConditionConstantSubstitutionVisitorTest.php index 5bf0b348e02f30fc5fe6b78481dc93fc6fadc5fa..f10ac32d2aec0c6923e7a2fa9046653d97fecd4c 100644 --- a/typo3/sysext/core/Tests/Functional/TypoScript/IncludeTree/Visitor/IncludeTreeSetupConditionConstantSubstitutionVisitorTest.php +++ b/typo3/sysext/core/Tests/Functional/TypoScript/IncludeTree/Visitor/IncludeTreeSetupConditionConstantSubstitutionVisitorTest.php @@ -29,7 +29,7 @@ class IncludeTreeSetupConditionConstantSubstitutionVisitorTest extends Functiona { protected bool $initializeDatabase = false; - public function visitDataProvider(): iterable + public static function visitDataProvider(): iterable { yield 'nothing to substitute, no condition' => [ [], diff --git a/typo3/sysext/core/Tests/Functional/TypoScript/IncludeTree/Visitor/IncludeTreeSyntaxScannerVisitorTest.php b/typo3/sysext/core/Tests/Functional/TypoScript/IncludeTree/Visitor/IncludeTreeSyntaxScannerVisitorTest.php index e2dc3d03c836e66e9a0089e4c5b335bc5c550f46..9d365770a940f847b35fdcb77e8ca2fafe0a66c0 100644 --- a/typo3/sysext/core/Tests/Functional/TypoScript/IncludeTree/Visitor/IncludeTreeSyntaxScannerVisitorTest.php +++ b/typo3/sysext/core/Tests/Functional/TypoScript/IncludeTree/Visitor/IncludeTreeSyntaxScannerVisitorTest.php @@ -27,7 +27,7 @@ class IncludeTreeSyntaxScannerVisitorTest extends FunctionalTestCase { protected bool $initializeDatabase = false; - public function visitDataProvider(): iterable + public static function visitDataProvider(): iterable { $node = new FileInclude(); $node->setLineStream((new LosslessTokenizer())->tokenize(' diff --git a/typo3/sysext/dashboard/Tests/Functional/WidgetRegistryTest.php b/typo3/sysext/dashboard/Tests/Functional/WidgetRegistryTest.php index 5fec73f470a9733a889f44ed84de94eef0635204..fd0ec4bf24751abd92fb83cefafad33e4f883d9c 100644 --- a/typo3/sysext/dashboard/Tests/Functional/WidgetRegistryTest.php +++ b/typo3/sysext/dashboard/Tests/Functional/WidgetRegistryTest.php @@ -126,7 +126,7 @@ class WidgetRegistryTest extends FunctionalTestCase self::assertCount(4, $this->subject->getAllWidgets()); } - public function expectedAmountOfWidgetsForUserDataProvider(): array + public static function expectedAmountOfWidgetsForUserDataProvider(): array { return [ 'Admin User - access to all groups' => [ diff --git a/typo3/sysext/extbase/Tests/Functional/Configuration/FrontendConfigurationManagerTest.php b/typo3/sysext/extbase/Tests/Functional/Configuration/FrontendConfigurationManagerTest.php index 4c949004af8ae7a4dd482bc7c02f07c26233dd3a..4fb89cb6bcdeb076cfea47c14cc785a09f638ecb 100644 --- a/typo3/sysext/extbase/Tests/Functional/Configuration/FrontendConfigurationManagerTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Configuration/FrontendConfigurationManagerTest.php @@ -81,7 +81,7 @@ class FrontendConfigurationManagerTest extends FunctionalTestCase self::assertSame('from eventlistener', $frontendConfigurationManager->getConfiguration('foo')['settings']['foo']); } - public function overrideConfigurationFromFlexFormSettingsDataProvider(): iterable + public static function overrideConfigurationFromFlexFormSettingsDataProvider(): iterable { yield 'no flexForm override configuration' => [ 'flexForm' => '<?xml version="1.0" encoding="utf-8" standalone="yes" ?> diff --git a/typo3/sysext/extbase/Tests/Functional/Mvc/Controller/ActionControllerArgumentTest.php b/typo3/sysext/extbase/Tests/Functional/Mvc/Controller/ActionControllerArgumentTest.php index f2f7156fb9ac42343fd7a859b20adce2f14f4db6..1c6f4dc13acec333121865d894b2983bd1fa1dfb 100644 --- a/typo3/sysext/extbase/Tests/Functional/Mvc/Controller/ActionControllerArgumentTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Mvc/Controller/ActionControllerArgumentTest.php @@ -43,7 +43,7 @@ class ActionControllerArgumentTest extends FunctionalTestCase 'typo3/sysext/extbase/Tests/Functional/Mvc/Controller/Fixture/Extension/action_controller_argument_test', ]; - public function validationErrorReturnsToForwardedPreviousActionDataProvider(): array + public static function validationErrorReturnsToForwardedPreviousActionDataProvider(): array { return [ // regular models diff --git a/typo3/sysext/extbase/Tests/Functional/Mvc/Controller/ControllerArgumentsMappingTest.php b/typo3/sysext/extbase/Tests/Functional/Mvc/Controller/ControllerArgumentsMappingTest.php index 60e992470f2dc122c3a3ef2e406d2e51b6bb1837..48367d3a77ac5208da43b9252b6e09054346b103 100644 --- a/typo3/sysext/extbase/Tests/Functional/Mvc/Controller/ControllerArgumentsMappingTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Mvc/Controller/ControllerArgumentsMappingTest.php @@ -73,7 +73,7 @@ class ControllerArgumentsMappingTest extends FunctionalTestCase $this->controller = $this->get(BlogController::class); } - public function actionGetsBlogFromUidArgumentDataProvider(): array + public static function actionGetsBlogFromUidArgumentDataProvider(): array { return [ [ diff --git a/typo3/sysext/extbase/Tests/Functional/Mvc/Validation/ActionControllerValidationTest.php b/typo3/sysext/extbase/Tests/Functional/Mvc/Validation/ActionControllerValidationTest.php index 605de0e62d16b5df28f96ee4dac30f7182b5b269..29b177eb6d45dc7132a09f0f905f4a96ad8164b2 100644 --- a/typo3/sysext/extbase/Tests/Functional/Mvc/Validation/ActionControllerValidationTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Mvc/Validation/ActionControllerValidationTest.php @@ -41,7 +41,7 @@ class ActionControllerValidationTest extends FunctionalTestCase 'typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example', ]; - public function forwardedActionValidatesPreviouslyIgnoredArgumentDataProvider(): array + public static function forwardedActionValidatesPreviouslyIgnoredArgumentDataProvider(): array { return [ 'new blog post' => [ diff --git a/typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Mapper/ColumnMapFactoryTest.php b/typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Mapper/ColumnMapFactoryTest.php index 0087cbcb45cd94e915ac15187f28ca9d7f5020ff..a084d69e75129dce5a2d44bbd76f4a931f3826c3 100644 --- a/typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Mapper/ColumnMapFactoryTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Mapper/ColumnMapFactoryTest.php @@ -434,7 +434,7 @@ class ColumnMapFactoryTest extends FunctionalTestCase self::assertEquals($expectedColumnMap, $this->columnMapFactory->create($columnName, $columnConfiguration, $propertyName, Fixtures\ColumnMapFactoryEntityFixture::class)); } - public function columnMapIsInitializedWithFieldEvaluationsForDateTimeFieldsDataProvider(): array + public static function columnMapIsInitializedWithFieldEvaluationsForDateTimeFieldsDataProvider(): array { return [ 'date field' => ['date', 'date'], @@ -464,7 +464,7 @@ class ColumnMapFactoryTest extends FunctionalTestCase self::assertSame($expectedValue, $columnMap->getDateTimeStorageFormat()); } - public function tcaConfigurationsContainingTypeDataProvider(): array + public static function tcaConfigurationsContainingTypeDataProvider(): array { return [ ['input', TableColumnType::INPUT], diff --git a/typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Mapper/DataMapperTest.php b/typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Mapper/DataMapperTest.php index d0313941318684e1557ed42ccaa5d993c9c0dfe9..4a4f809875da676b9f263c12bf8df8d59112acdf 100644 --- a/typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Mapper/DataMapperTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Mapper/DataMapperTest.php @@ -324,7 +324,7 @@ class DataMapperTest extends FunctionalTestCase * strings but using the date('c') conversion instead, which considers the * current local timezone setting. */ - public function mapDateTimeHandlesDifferentFieldEvaluationsDataProvider(): array + public static function mapDateTimeHandlesDifferentFieldEvaluationsDataProvider(): array { return [ 'nothing' => [null, null, null], @@ -359,7 +359,7 @@ class DataMapperTest extends FunctionalTestCase $cacheManager->getCache('extbase')->flush(); } - public function mapDateTimeHandlesDifferentFieldEvaluationsWithTimeZoneDataProvider(): array + public static function mapDateTimeHandlesDifferentFieldEvaluationsWithTimeZoneDataProvider(): array { return [ 'nothing' => [null, null, null], @@ -438,7 +438,7 @@ class DataMapperTest extends FunctionalTestCase self::assertSame('2013-04-15', $plainValueDate); } - public function getPlainValueReturnsExpectedValuesDataProvider(): array + public static function getPlainValueReturnsExpectedValuesDataProvider(): array { return [ 'datetime to timestamp' => ['1365866253', new \DateTime('@1365866253')], diff --git a/typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Storage/Typo3DbQueryParserTest.php b/typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Storage/Typo3DbQueryParserTest.php index be6e2ddf08b07bebeeaefef59ca91cd8e345128f..0f88cb56b91cd7de79f2529721ccfb3d33a58423 100644 --- a/typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Storage/Typo3DbQueryParserTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Storage/Typo3DbQueryParserTest.php @@ -738,7 +738,7 @@ class Typo3DbQueryParserTest extends FunctionalTestCase $typo3DbQueryParser->convertQueryToDoctrineQueryBuilder($query); } - public function addPageIdStatementSetsPidToZeroIfTableDeclaresRootLevelDataProvider(): iterable + public static function addPageIdStatementSetsPidToZeroIfTableDeclaresRootLevelDataProvider(): iterable { yield 'set Pid to zero if rootLevel = 1' => [ 'rootLevel' => 1, diff --git a/typo3/sysext/extbase/Tests/Functional/Persistence/QueryLocalizedDataTest.php b/typo3/sysext/extbase/Tests/Functional/Persistence/QueryLocalizedDataTest.php index 89e354f48c954cd7e19dd874d1a0b7b258bce673..e29fc753764f1119228db1de2fd59da9b0ca86e0 100644 --- a/typo3/sysext/extbase/Tests/Functional/Persistence/QueryLocalizedDataTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Persistence/QueryLocalizedDataTest.php @@ -379,7 +379,7 @@ class QueryLocalizedDataTest extends FunctionalTestCase ]); } - public function queryFirst5PostsDataProvider(): array + public static function queryFirst5PostsDataProvider(): array { //put it to variable to make cases with the same expected values explicit $lang0Expected = [ @@ -816,7 +816,7 @@ class QueryLocalizedDataTest extends FunctionalTestCase $this->assertObjectsProperties($posts, $expected); } - public function queryPostsByPropertyDataProvider(): array + public static function queryPostsByPropertyDataProvider(): array { $lang0Expected = [ [ @@ -995,7 +995,7 @@ class QueryLocalizedDataTest extends FunctionalTestCase $this->assertObjectsProperties($posts, $expected); } - public function postsWithoutRespectingSysLanguageDataProvider(): array + public static function postsWithoutRespectingSysLanguageDataProvider(): array { $allLanguages = [ [ diff --git a/typo3/sysext/extbase/Tests/Functional/Persistence/RelationTest.php b/typo3/sysext/extbase/Tests/Functional/Persistence/RelationTest.php index d15ea36872d3d658c5ffdf038730a7ab253e487e..8b4f430ee55268ddd56f4069c4a63c70142c5594 100644 --- a/typo3/sysext/extbase/Tests/Functional/Persistence/RelationTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Persistence/RelationTest.php @@ -991,7 +991,7 @@ class RelationTest extends FunctionalTestCase self::assertEquals($this->blog->getCategories()->count(), $newBlogCategoryCount); } - public function distinctDataProvider(): array + public static function distinctDataProvider(): array { return [ 'order default' => [ diff --git a/typo3/sysext/extbase/Tests/Functional/Persistence/RepositoryTest.php b/typo3/sysext/extbase/Tests/Functional/Persistence/RepositoryTest.php index cb7ccd74b60e48f049419ee75e3f2714984609e3..fd134209b46ae14dfc4556dbf9532609c957927f 100644 --- a/typo3/sysext/extbase/Tests/Functional/Persistence/RepositoryTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Persistence/RepositoryTest.php @@ -42,7 +42,7 @@ class RepositoryTest extends FunctionalTestCase $this->postRepository = $this->get(PostRepository::class); } - public function findByRespectsSingleCriteriaDataProvider(): \Generator + public static function findByRespectsSingleCriteriaDataProvider(): \Generator { yield 'findBy(["blog" => 1]) => 10' => [ ['blog' => 1], @@ -243,7 +243,7 @@ class RepositoryTest extends FunctionalTestCase ], $titles); } - public function findOneByRespectsSingleCriteriaDataProvider(): \Generator + public static function findOneByRespectsSingleCriteriaDataProvider(): \Generator { yield 'findOneBy(["blog" => 1]) => "Post4"' => [ ['uid' => 1], diff --git a/typo3/sysext/extbase/Tests/Functional/Persistence/TranslatedSiteContentTest.php b/typo3/sysext/extbase/Tests/Functional/Persistence/TranslatedSiteContentTest.php index 9309c5930559316d6a77cc44487786245df02e81..6e35d480ddfd82c6a2868fdb466e7fafd58d17a3 100644 --- a/typo3/sysext/extbase/Tests/Functional/Persistence/TranslatedSiteContentTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Persistence/TranslatedSiteContentTest.php @@ -146,7 +146,7 @@ class TranslatedSiteContentTest extends AbstractDataHandlerActionTestCase /** * Danish language has pages record and some content elements are translated */ - public function danishDataProvider(): array + public static function danishDataProvider(): array { // Expected behaviour: // Page is translated to Danish, so changing sys_language_mode does NOT change the results @@ -270,7 +270,7 @@ class TranslatedSiteContentTest extends AbstractDataHandlerActionTestCase } } - public function contentOnNonTranslatedPageDataProvider(): array + public static function contentOnNonTranslatedPageDataProvider(): array { return [ [ @@ -482,7 +482,7 @@ class TranslatedSiteContentTest extends AbstractDataHandlerActionTestCase self::assertEquals($statusCode, $response->getStatusCode()); } - public function contentOnPartiallyTranslatedPageDataProvider(): array + public static function contentOnPartiallyTranslatedPageDataProvider(): array { // Expected behaviour: // Setting sys_language_mode to different values doesn't influence the result as the requested page is translated to Polish, diff --git a/typo3/sysext/extbase/Tests/Functional/Persistence/TranslationTest.php b/typo3/sysext/extbase/Tests/Functional/Persistence/TranslationTest.php index f7a2c7b1872ec834e2e62467547cf56fc805998a..4938dd58770e1dde304247ec5268d32ef2d593ce 100644 --- a/typo3/sysext/extbase/Tests/Functional/Persistence/TranslationTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Persistence/TranslationTest.php @@ -235,7 +235,7 @@ class TranslationTest extends FunctionalTestCase self::assertSame('GR:Post11', $posts[1]->getTitle()); } - public function fetchingTranslatedPostByUidDataProvider(): array + public static function fetchingTranslatedPostByUidDataProvider(): array { return [ 'with one id' => [ diff --git a/typo3/sysext/extbase/Tests/Functional/Persistence/WorkspaceTest.php b/typo3/sysext/extbase/Tests/Functional/Persistence/WorkspaceTest.php index 69e9bdc7e6e5f70adf81e20d89385b35826d4ca1..feb55ca14ab6221157afa90268966ec818fd852e 100644 --- a/typo3/sysext/extbase/Tests/Functional/Persistence/WorkspaceTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Persistence/WorkspaceTest.php @@ -52,7 +52,7 @@ class WorkspaceTest extends FunctionalTestCase $this->importCsvDataSet(__DIR__ . '/../Persistence/Fixtures/category-mm.csv'); } - public function contextDataProvider(): array + public static function contextDataProvider(): array { return [ 'test frontend context' => [ diff --git a/typo3/sysext/extbase/Tests/Functional/Property/TypeConverter/EnumConverterTest.php b/typo3/sysext/extbase/Tests/Functional/Property/TypeConverter/EnumConverterTest.php index 7e1adc36c0cd5130bddb3918f40da885e509414b..8824d69a98a285e31876f99342aad855027f272d 100644 --- a/typo3/sysext/extbase/Tests/Functional/Property/TypeConverter/EnumConverterTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Property/TypeConverter/EnumConverterTest.php @@ -40,7 +40,7 @@ class EnumConverterTest extends FunctionalTestCase self::assertSame($expected, $enumItem); } - public function convertEnumDataProvider(): Generator + public static function convertEnumDataProvider(): Generator { yield 'convert by name 1' => [ UnbackedEnum::class, diff --git a/typo3/sysext/extbase/Tests/Functional/Utility/LocalizationUtilityTest.php b/typo3/sysext/extbase/Tests/Functional/Utility/LocalizationUtilityTest.php index cf917caa477b97f959ffc427cfcfa1e4061b332c..91f4930a5e7fe02f92503b2d6a05c026713ded56 100644 --- a/typo3/sysext/extbase/Tests/Functional/Utility/LocalizationUtilityTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Utility/LocalizationUtilityTest.php @@ -98,7 +98,7 @@ class LocalizationUtilityTest extends FunctionalTestCase self::assertNull(LocalizationUtility::translate('', 'extbase', ['argument'])); } - public function translateDataProvider(): array + public static function translateDataProvider(): array { return [ 'get translated key' => diff --git a/typo3/sysext/extbase/Tests/Functional/Validation/Validator/DateTimeValidatorTest.php b/typo3/sysext/extbase/Tests/Functional/Validation/Validator/DateTimeValidatorTest.php index 9559410d83c57fa7da3af08abbe7114a6c0fddf0..e8c73be3742169b0f620f9bcc66b7e0f41633fb8 100644 --- a/typo3/sysext/extbase/Tests/Functional/Validation/Validator/DateTimeValidatorTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Validation/Validator/DateTimeValidatorTest.php @@ -33,7 +33,7 @@ class DateTimeValidatorTest extends FunctionalTestCase $GLOBALS['TYPO3_REQUEST'] = $request; } - public function acceptsDateTimeValuesDataProvider(): array + public static function acceptsDateTimeValuesDataProvider(): array { return [ \DateTime::class => [ diff --git a/typo3/sysext/extbase/Tests/Functional/Validation/Validator/FloatValidatorTest.php b/typo3/sysext/extbase/Tests/Functional/Validation/Validator/FloatValidatorTest.php index 9f769ac59201a16bd28fd12208bdc7d913a89fcb..52b1ccbec7666c61069ac86863c55013e9ca4d0b 100644 --- a/typo3/sysext/extbase/Tests/Functional/Validation/Validator/FloatValidatorTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Validation/Validator/FloatValidatorTest.php @@ -33,7 +33,7 @@ class FloatValidatorTest extends FunctionalTestCase $GLOBALS['TYPO3_REQUEST'] = $request; } - public function validFloats(): array + public static function validFloats(): array { return [ [1029437.234726], @@ -56,7 +56,7 @@ class FloatValidatorTest extends FunctionalTestCase self::assertFalse($validator->validate($float)->hasErrors()); } - public function invalidFloats(): array + public static function invalidFloats(): array { return [ [1029437], diff --git a/typo3/sysext/extbase/Tests/Functional/Validation/Validator/IntegerValidatorTest.php b/typo3/sysext/extbase/Tests/Functional/Validation/Validator/IntegerValidatorTest.php index 8b605d3e2159d0cbf2c0abc005d72e31036bdccd..86e2292cb19a862154b005734b649ef18bd3c93f 100644 --- a/typo3/sysext/extbase/Tests/Functional/Validation/Validator/IntegerValidatorTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Validation/Validator/IntegerValidatorTest.php @@ -36,7 +36,7 @@ class IntegerValidatorTest extends FunctionalTestCase /** * Data provider with valid integers */ - public function validIntegers(): array + public static function validIntegers(): array { return [ [1029437], @@ -60,7 +60,7 @@ class IntegerValidatorTest extends FunctionalTestCase /** * Data provider with invalid integers */ - public function invalidIntegers(): array + public static function invalidIntegers(): array { return [ ['not a number'], diff --git a/typo3/sysext/extbase/Tests/Functional/Validation/Validator/RegularExpressionValidatorTest.php b/typo3/sysext/extbase/Tests/Functional/Validation/Validator/RegularExpressionValidatorTest.php index 81f8c9521c6c0a07f2b3094007467842d2c6bfc4..cdfbce9998f28f7a642565d08af609dd884d3d72 100644 --- a/typo3/sysext/extbase/Tests/Functional/Validation/Validator/RegularExpressionValidatorTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Validation/Validator/RegularExpressionValidatorTest.php @@ -76,7 +76,7 @@ class RegularExpressionValidatorTest extends FunctionalTestCase self::assertEquals([new Error('custom message', 1221565130)], $errors); } - public function customErrorMessagesDataProvider(): array + public static function customErrorMessagesDataProvider(): array { return [ 'no message' => [ diff --git a/typo3/sysext/extbase/Tests/Functional/Validation/Validator/TextValidatorTest.php b/typo3/sysext/extbase/Tests/Functional/Validation/Validator/TextValidatorTest.php index 3cd7a9b8a6166e65357d69248928d08ee2769b84..478baa7ebb57711b093398de4432114841ad576b 100644 --- a/typo3/sysext/extbase/Tests/Functional/Validation/Validator/TextValidatorTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Validation/Validator/TextValidatorTest.php @@ -34,7 +34,7 @@ class TextValidatorTest extends FunctionalTestCase $GLOBALS['TYPO3_REQUEST'] = $request; } - public function isValidDataProvider(): array + public static function isValidDataProvider(): array { return [ 'a simple string' => [ diff --git a/typo3/sysext/extbase/Tests/Functional/Validation/Validator/UrlValidatorTest.php b/typo3/sysext/extbase/Tests/Functional/Validation/Validator/UrlValidatorTest.php index d23de80bb2067ce7fafbca54c70fafaafaeed1de..7a88627e652e60c6d7e94c16583b595ae9a08cc6 100644 --- a/typo3/sysext/extbase/Tests/Functional/Validation/Validator/UrlValidatorTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Validation/Validator/UrlValidatorTest.php @@ -33,7 +33,7 @@ class UrlValidatorTest extends FunctionalTestCase $GLOBALS['TYPO3_REQUEST'] = $request; } - public function urlDataProvider(): array + public static function urlDataProvider(): array { return [ 'Regular URL' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/EscapeChildrenRenderingStandaloneTest.php b/typo3/sysext/fluid/Tests/Functional/EscapeChildrenRenderingStandaloneTest.php index bc4ab5f17961be2f9d26d45630a3a2618781fb21..cdb8615205044af572093616a227911146fa934f 100644 --- a/typo3/sysext/fluid/Tests/Functional/EscapeChildrenRenderingStandaloneTest.php +++ b/typo3/sysext/fluid/Tests/Functional/EscapeChildrenRenderingStandaloneTest.php @@ -27,7 +27,7 @@ class EscapeChildrenRenderingStandaloneTest extends FunctionalTestCase protected array $testExtensionsToLoad = ['typo3/sysext/fluid/Tests/Functional/Fixtures/Extensions/fluid_test']; - public function viewHelperTemplateSourcesDataProvider(): array + public static function viewHelperTemplateSourcesDataProvider(): array { return [ 'EscapeChildrenEnabledAndEscapeOutputDisabled: Tag syntax with children, properly encodes variable value' => diff --git a/typo3/sysext/fluid/Tests/Functional/EscapeChildrenRenderingTest.php b/typo3/sysext/fluid/Tests/Functional/EscapeChildrenRenderingTest.php index 9a89d24c5ba915894d5eb851c90be13dde855417..fed75f0f20f71df8b2dcb43ba2eed430e2cedc4c 100644 --- a/typo3/sysext/fluid/Tests/Functional/EscapeChildrenRenderingTest.php +++ b/typo3/sysext/fluid/Tests/Functional/EscapeChildrenRenderingTest.php @@ -26,7 +26,7 @@ class EscapeChildrenRenderingTest extends FunctionalTestCase protected array $testExtensionsToLoad = ['typo3/sysext/fluid/Tests/Functional/Fixtures/Extensions/fluid_test']; - public function viewHelperTemplateSourcesDataProvider(): array + public static function viewHelperTemplateSourcesDataProvider(): array { return [ 'EscapeChildrenEnabledAndEscapeOutputDisabled: Tag syntax with children, properly encodes variable value' => diff --git a/typo3/sysext/fluid/Tests/Functional/View/TemplatesPathsTest.php b/typo3/sysext/fluid/Tests/Functional/View/TemplatesPathsTest.php index dd4a6a28a3e0108f63652e6e56a480817e6e775d..3b2a8fc6dedcd1f9b2586cb8b4c93f523c7d62ee 100644 --- a/typo3/sysext/fluid/Tests/Functional/View/TemplatesPathsTest.php +++ b/typo3/sysext/fluid/Tests/Functional/View/TemplatesPathsTest.php @@ -85,7 +85,7 @@ class TemplatesPathsTest extends FunctionalTestCase $this->setUpFrontendRootPage(1, ['EXT:fluid_test/Configuration/TypoScript/Basic.typoscript']); } - public function differentOverrideScenariosDataProvider(): array + public static function differentOverrideScenariosDataProvider(): array { return [ 'base' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Asset/CssViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Asset/CssViewHelperTest.php index e4678a91970f1aa389d2e07b19fffb4f2cef7fe2..0ed2e3c9eb803796db206dc35fb82f46f6f326f5 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Asset/CssViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Asset/CssViewHelperTest.php @@ -26,7 +26,7 @@ class CssViewHelperTest extends FunctionalTestCase { protected bool $initializeDatabase = false; - public function sourceDataProvider(): array + public static function sourceDataProvider(): array { return [ 'fileadmin reference' => ['fileadmin/StyleSheets/foo.css'], diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Asset/ScriptViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Asset/ScriptViewHelperTest.php index d3b3473de948b55c5faf972e31b4bcfa96ed480d..aab6d4484dcceb79729fd084f9c15ae6225e677b 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Asset/ScriptViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Asset/ScriptViewHelperTest.php @@ -26,7 +26,7 @@ class ScriptViewHelperTest extends FunctionalTestCase { protected bool $initializeDatabase = false; - public function sourceDataProvider(): array + public static function sourceDataProvider(): array { return [ 'fileadmin reference' => ['fileadmin/JavaScript/foo.js'], diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Be/Menus/ActionMenuItemViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Be/Menus/ActionMenuItemViewHelperTest.php index beafadb13f6259763f1fe797e1e7fcef5ba309ae..c094baaa20c326fc8e693a25bee6e9c9220e6554 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Be/Menus/ActionMenuItemViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Be/Menus/ActionMenuItemViewHelperTest.php @@ -27,7 +27,7 @@ use TYPO3Fluid\Fluid\View\TemplateView; class ActionMenuItemViewHelperTest extends FunctionalTestCase { - public function isRenderedDataProvider(): array + public static function isRenderedDataProvider(): array { return [ 'tag syntax' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/CheckboxViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/CheckboxViewHelperTest.php index ebbf2954568467f4554793c75ea79c29782cb68b..dc9791f59bff1c96c721042391002c8f276a02fd 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/CheckboxViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/CheckboxViewHelperTest.php @@ -29,7 +29,7 @@ use TYPO3Fluid\Fluid\View\TemplateView; class CheckboxViewHelperTest extends FunctionalTestCase { - public function renderDataProvider(): array + public static function renderDataProvider(): array { return [ 'renderCorrectlySetsTagNameAndDefaultAttributes' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/RadioViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/RadioViewHelperTest.php index b318d0d37ab988f28ae27865d836c698a7e10d95..be452ff2225de3971266626ab2985ee517bdcc53 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/RadioViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/RadioViewHelperTest.php @@ -29,7 +29,7 @@ use TYPO3Fluid\Fluid\View\TemplateView; class RadioViewHelperTest extends FunctionalTestCase { - public function renderDataProvider(): array + public static function renderDataProvider(): array { return [ 'renderSetsTagNameAndDefaultAttributes' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/Select/OptionViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/Select/OptionViewHelperTest.php index 054c5f109a8d6cd56c0595bb438d5ab9ffbca0f9..5f256a4a795d73fe9256b0a29d07de862f4a7b25 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/Select/OptionViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/Select/OptionViewHelperTest.php @@ -76,7 +76,7 @@ class OptionViewHelperTest extends FunctionalTestCase self::assertSame('<select name=""><option selected="selected" value="Option Label">Option Label</option></select>', (new TemplateView($context))->render()); } - public function selectedIsAddedToSelectedOptionForProvidedValueDataProvider(): array + public static function selectedIsAddedToSelectedOptionForProvidedValueDataProvider(): array { return [ 'string value, string selection' => [ @@ -134,7 +134,7 @@ class OptionViewHelperTest extends FunctionalTestCase self::assertSame('<select name=""><option value="Option Label">Option Label</option></select>', (new TemplateView($context))->render()); } - public function selectedIsNotAddedToSelectedOptionForProvidedValueDataProvider(): array + public static function selectedIsNotAddedToSelectedOptionForProvidedValueDataProvider(): array { return [ 'string value, string selection' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/TextareaViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/TextareaViewHelperTest.php index 821d03bdc0be1c4bfb0b081f3016230e234fc874..351649185cf50d40d7331b761f179f8e8c3ecfac 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/TextareaViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/TextareaViewHelperTest.php @@ -29,7 +29,7 @@ use TYPO3Fluid\Fluid\View\TemplateView; class TextareaViewHelperTest extends FunctionalTestCase { - public function renderDataProvider(): array + public static function renderDataProvider(): array { return [ 'renderCorrectlySetsTagName' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/TextfieldViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/TextfieldViewHelperTest.php index 974aab7bae3a7c03ea682e6f8d68012b63d7deb1..f159189406410cb54500bccc1c294f611117bb4e 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/TextfieldViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Form/TextfieldViewHelperTest.php @@ -29,7 +29,7 @@ use TYPO3Fluid\Fluid\View\TemplateView; class TextfieldViewHelperTest extends FunctionalTestCase { - public function renderDataProvider(): array + public static function renderDataProvider(): array { return [ 'renderCorrectlySetsTagName' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/FormViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/FormViewHelperTest.php index 5e5c38d5c1c94c44189f62e2372379957866c567..ce25d23ea353e4bfec9d96d68f290af70b9aa8f5 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/FormViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/FormViewHelperTest.php @@ -31,7 +31,7 @@ use TYPO3Fluid\Fluid\View\TemplateView; class FormViewHelperTest extends FunctionalTestCase { - public function isRenderedDataProvider(): array + public static function isRenderedDataProvider(): array { return [ '#1' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/BytesViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/BytesViewHelperTest.php index 856820c9a22d1355a6a4768a33f111ad6f7ae6c0..1dd1dac67c948793efba3930749bc7c26afeb6c0 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/BytesViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/BytesViewHelperTest.php @@ -25,7 +25,7 @@ class BytesViewHelperTest extends FunctionalTestCase { protected bool $initializeDatabase = false; - public function renderConvertsAValueDataProvider(): array + public static function renderConvertsAValueDataProvider(): array { return [ // invalid values diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CaseViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CaseViewHelperTest.php index 528384223c6f2e959a904a6b78a55d118a2a481a..b736bdf36b5e1773d77603cd943afcbdc502dbfc 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CaseViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CaseViewHelperTest.php @@ -26,7 +26,7 @@ class CaseViewHelperTest extends FunctionalTestCase { protected bool $initializeDatabase = false; - public function renderConvertsAValueDataProvider(): array + public static function renderConvertsAValueDataProvider(): array { return [ 'empty value' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CropViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CropViewHelperTest.php index 07de3a269aadf71c715d29b1fad2818949eba017..7a99c074b930e3f2092df1156954073b3285b0e5 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CropViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CropViewHelperTest.php @@ -25,7 +25,7 @@ class CropViewHelperTest extends FunctionalTestCase { protected bool $initializeDatabase = false; - public function renderConvertsAValueDataProvider(): array + public static function renderConvertsAValueDataProvider(): array { return [ 'simple html crop' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CurrencyViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CurrencyViewHelperTest.php index 2d2cae156424153a750413403483d7ea6450a379..ec41f7fee72f4e8df79c96a22a77b15cd07a974e 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CurrencyViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CurrencyViewHelperTest.php @@ -25,7 +25,7 @@ class CurrencyViewHelperTest extends FunctionalTestCase { protected bool $initializeDatabase = false; - public function renderConvertsAValueDataProvider(): array + public static function renderConvertsAValueDataProvider(): array { return [ 'rounds float correctly' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/DateViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/DateViewHelperTest.php index b991553f35f1ff8c237659643f1fd7854e9251a0..9b5a96920e0a4a03e62d374d691a490e81c7c2ce 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/DateViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/DateViewHelperTest.php @@ -180,7 +180,7 @@ class DateViewHelperTest extends FunctionalTestCase self::assertEquals('2015', (new TemplateView($context))->render()); } - public function viewHelperRespectsDefaultTimezoneForIntegerTimestampDataProvider(): array + public static function viewHelperRespectsDefaultTimezoneForIntegerTimestampDataProvider(): array { return [ 'Europe/Berlin' => [ @@ -207,7 +207,7 @@ class DateViewHelperTest extends FunctionalTestCase self::assertEquals($expected, (new TemplateView($context))->render()); } - public function viewHelperRespectsDefaultTimezoneForStringTimestampDataProvider(): array + public static function viewHelperRespectsDefaultTimezoneForStringTimestampDataProvider(): array { return [ 'Europe/Berlin UTC' => [ @@ -245,7 +245,7 @@ class DateViewHelperTest extends FunctionalTestCase self::assertEquals($expected, (new TemplateView($context))->render()); } - public function viewHelperUsesIcuBasedPatternDataProvider(): \Generator + public static function viewHelperUsesIcuBasedPatternDataProvider(): \Generator { yield 'default value in english' => [ '10:55:36 on a Tuesday', diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/HtmlViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/HtmlViewHelperTest.php index b3119b0cb095a69243cccd9df6dd488c27ff97e2..0be71b6c6aaef0e5badff0af72bba4db682ac2f8 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/HtmlViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/HtmlViewHelperTest.php @@ -33,7 +33,7 @@ class HtmlViewHelperTest extends FunctionalTestCase 'EN' => ['id' => 0, 'title' => 'English', 'locale' => 'en_US.UTF8'], ]; - public function contentIsRenderedDataProvider(): array + public static function contentIsRenderedDataProvider(): array { return [ 'format.html: process lib.parseFunc_RTE by default' => [ @@ -91,7 +91,7 @@ class HtmlViewHelperTest extends FunctionalTestCase self::assertStringContainsString($expected, (string)$response->getBody()); } - public function invalidInvocationIsDeterminedDataProvider(): array + public static function invalidInvocationIsDeterminedDataProvider(): array { return [ 'explicitly empty parseFunc path' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/Nl2brViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/Nl2brViewHelperTest.php index e0d3fc5ece3fbf097d47ef750357d95f30acb182..a82284487390c83bffb87e912f5ef29775ac5acd 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/Nl2brViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/Nl2brViewHelperTest.php @@ -25,7 +25,7 @@ class Nl2brViewHelperTest extends FunctionalTestCase { protected bool $initializeDatabase = false; - public function renderDataProvider(): array + public static function renderDataProvider(): array { return [ 'viewHelperDoesNotModifyTextWithoutLineBreaks' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/NumberViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/NumberViewHelperTest.php index bb9360c3aed6bf59d08676facd7cf7ddea133370..56067ddf5d4e3bffd86e157401743e76ae8263bb 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/NumberViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/NumberViewHelperTest.php @@ -25,7 +25,7 @@ class NumberViewHelperTest extends FunctionalTestCase { protected bool $initializeDatabase = false; - public function renderDataProvider(): array + public static function renderDataProvider(): array { return [ 'formatNumberDefaultsToEnglishNotationWithTwoDecimals' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/PaddingViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/PaddingViewHelperTest.php index 616aacd1ab554d6d66e11b5e99e253225430b47b..ad7ab8a3f56e4a053b95809fcd2a985fd8857125 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/PaddingViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/PaddingViewHelperTest.php @@ -25,7 +25,7 @@ class PaddingViewHelperTest extends FunctionalTestCase { protected bool $initializeDatabase = false; - public function renderDataProvider(): array + public static function renderDataProvider(): array { return [ 'stringsArePaddedWithBlanksByDefault' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/StripTagsViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/StripTagsViewHelperTest.php index f617b9c5e66f3939b4ca09269466705fec2626dc..4f14baa1fc42ab9e35385d8147f4d06cdbb7573f 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/StripTagsViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/StripTagsViewHelperTest.php @@ -25,7 +25,7 @@ class StripTagsViewHelperTest extends FunctionalTestCase { protected bool $initializeDatabase = false; - public function renderDataProvider(): array + public static function renderDataProvider(): array { return [ 'renderUsesValueAsSourceIfSpecified' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/TrimViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/TrimViewHelperTest.php index da7d0259244e58053052eb844b2943ee30c367ae..c5d545dfe54093da2728e7c0f9a6758c0c71603e 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/TrimViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/TrimViewHelperTest.php @@ -26,7 +26,7 @@ class TrimViewHelperTest extends FunctionalTestCase { protected bool $initializeDatabase = false; - public function renderConvertsAValueDataProvider(): array + public static function renderConvertsAValueDataProvider(): array { return [ 'empty value' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/UrlencodeViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/UrlencodeViewHelperTest.php index 2d8b62d256035dbbb1bc2d9590b5bd14aa32e165..6289b8947066411057b32d2aae7e6c16f85f7870 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/UrlencodeViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/UrlencodeViewHelperTest.php @@ -25,7 +25,7 @@ class UrlencodeViewHelperTest extends FunctionalTestCase { protected bool $initializeDatabase = false; - public function renderDataProvider(): array + public static function renderDataProvider(): array { return [ 'renderUsesValueAsSourceIfSpecified' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/ImageViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/ImageViewHelperTest.php index ce2256548e2e4245d5f3089edaaf921858d3c965..0e224e81b09dab136fdfda3176c034f259920760 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/ImageViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/ImageViewHelperTest.php @@ -25,7 +25,7 @@ use TYPO3Fluid\Fluid\View\TemplateView; class ImageViewHelperTest extends FunctionalTestCase { - public function invalidArgumentsDataProvider(): array + public static function invalidArgumentsDataProvider(): array { return [ [['src' => '', 'image' => null], 1382284106], @@ -50,7 +50,7 @@ class ImageViewHelperTest extends FunctionalTestCase $viewHelper->render(); } - public function renderReturnsExpectedMarkupDataProvider(): array + public static function renderReturnsExpectedMarkupDataProvider(): array { return [ 'crop false' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Link/EmailViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Link/EmailViewHelperTest.php index c351f71b19ff9101095df5a5a2a3b30371630c31..f8403544be788290f1e95f583f14054c726e0a90 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Link/EmailViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Link/EmailViewHelperTest.php @@ -50,7 +50,7 @@ class EmailViewHelperTest extends FunctionalTestCase self::assertEquals('<a href="mailto:foo@example.com">foo@example.com</a>', (new TemplateView($context))->render()); } - public function renderEncodesEmailInFrontendDataProvider(): array + public static function renderEncodesEmailInFrontendDataProvider(): array { return [ 'Plain email' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Link/ExternalViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Link/ExternalViewHelperTest.php index ea71039dddd44440d9534d6550993592b4199104..00a28083405e70c5edba2b7e1a8623e3e01d8586 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Link/ExternalViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Link/ExternalViewHelperTest.php @@ -25,7 +25,7 @@ class ExternalViewHelperTest extends FunctionalTestCase { protected bool $initializeDatabase = false; - public function renderDataProvider(): array + public static function renderDataProvider(): array { return [ 'renderAddsHttpsPrefixIfSpecifiedUriDoesNotContainScheme' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Link/PageViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Link/PageViewHelperTest.php index 5b77ae237fde1f665177e8eed1569d961e37dd68..a1444778d4175d2c8eb79f9fa6fbfad283026706 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Link/PageViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Link/PageViewHelperTest.php @@ -173,7 +173,7 @@ class PageViewHelperTest extends FunctionalTestCase self::assertSame('<a href="http://localhost/typo3/module/web/layout?token=dummyToken&id=42">foo</a>', $result); } - public function renderDataProvider(): array + public static function renderDataProvider(): array { return [ 'renderProvidesATagForValidLinkTarget' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Link/TypolinkViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Link/TypolinkViewHelperTest.php index 3c975b8d73afc498e884f596db80de2828ae3bea..a715b7360d43a6692aa638db3564b8b4d5d66f86 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Link/TypolinkViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Link/TypolinkViewHelperTest.php @@ -43,7 +43,7 @@ class TypolinkViewHelperTest extends FunctionalTestCase ], ]; - public function renderDataProvider(): array + public static function renderDataProvider(): array { return [ 'link: default' => [ @@ -153,7 +153,7 @@ EOT self::assertStringContainsString($expected, (string)$response->getBody()); } - public function renderWithAssignedParametersDataProvider(): array + public static function renderWithAssignedParametersDataProvider(): array { return [ 'target _self' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/PageRendererViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/PageRendererViewHelperTest.php index 9737c1703443bcc75c93c02feaba75126fc34547..157ff67ea04fad17ae59142e066a039a40c1ddf4 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/PageRendererViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/PageRendererViewHelperTest.php @@ -29,7 +29,7 @@ use TYPO3Fluid\Fluid\View\TemplateView; class PageRendererViewHelperTest extends FunctionalTestCase { - public function renderDataProvider(): array + public static function renderDataProvider(): array { return [ 'renderSetsPageTitle' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Security/IfHasRoleViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Security/IfHasRoleViewHelperTest.php index 5f49a68e4501540e201dd368695a8365661fdb20..61a4193d2895a92f57162136cb3376b6e3438bb8 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Security/IfHasRoleViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Security/IfHasRoleViewHelperTest.php @@ -43,7 +43,7 @@ class IfHasRoleViewHelperTest extends FunctionalTestCase $context->setAspect('frontend.user', new UserAspect($user, [1, 2])); } - public function renderDataProvider(): array + public static function renderDataProvider(): array { return [ 'viewHelperRendersThenChildIfFeUserWithSpecifiedRoleIsLoggedIn' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/TranslateViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/TranslateViewHelperTest.php index 9b53f4322d7ee3a75c97f3a0bdc48b3dd8818d74..76f652e9f4df8586b46f446c899417391fe59788 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/TranslateViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/TranslateViewHelperTest.php @@ -56,7 +56,7 @@ class TranslateViewHelperTest extends FunctionalTestCase (new TemplateView($context))->render(); } - public function renderReturnsStringInNonExtbaseContextDataProvider(): array + public static function renderReturnsStringInNonExtbaseContextDataProvider(): array { return [ 'fallback to default attribute for not existing label' => [ @@ -128,7 +128,7 @@ class TranslateViewHelperTest extends FunctionalTestCase self::assertSame($expected, (new TemplateView($context))->render()); } - public function renderReturnsStringInExtbaseContextDataProvider(): array + public static function renderReturnsStringInExtbaseContextDataProvider(): array { return [ 'key given for not existing label, fallback to child' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Uri/ExternalViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Uri/ExternalViewHelperTest.php index 0032da53d206816c05e130d7115dc05d20b538d6..ff41b1c1574e51aabe089c4c4ec093f2b7902c30 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Uri/ExternalViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Uri/ExternalViewHelperTest.php @@ -25,7 +25,7 @@ class ExternalViewHelperTest extends FunctionalTestCase { protected bool $initializeDatabase = false; - public function renderDataProvider(): array + public static function renderDataProvider(): array { return [ 'renderReturnsSpecifiedUri' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Uri/PageViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Uri/PageViewHelperTest.php index 211804946b80c4d4f92096421ba3edf40d354b76..0ff49feac0e53270633487d424eaa4c80e655dd8 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Uri/PageViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Uri/PageViewHelperTest.php @@ -173,7 +173,7 @@ class PageViewHelperTest extends FunctionalTestCase self::assertSame('http://localhost/typo3/module/web/layout?token=dummyToken&id=42', $result); } - public function renderDataProvider(): array + public static function renderDataProvider(): array { return [ 'renderProvidesATagForValidLinkTarget' => [ diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Uri/ResourceViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Uri/ResourceViewHelperTest.php index 5c819209c0bb0ea8b3bbe3dc5abf8cd4bdb874f8..532ba3d3b1728d243ec3cdf33962127a56961f12 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Uri/ResourceViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Uri/ResourceViewHelperTest.php @@ -55,7 +55,7 @@ class ResourceViewHelperTest extends FunctionalTestCase (new TemplateView($context))->render(); } - public function renderWithoutRequestDataProvider(): \Generator + public static function renderWithoutRequestDataProvider(): \Generator { yield 'render returns URI using UpperCamelCase extensionName' => [ '<f:uri.resource path="Icons/Extension.svg" extensionName="Core" />', @@ -82,7 +82,7 @@ class ResourceViewHelperTest extends FunctionalTestCase self::assertSame($expected, (new TemplateView($context))->render()); } - public function renderWithExtbaseRequestDataProvider(): \Generator + public static function renderWithExtbaseRequestDataProvider(): \Generator { yield 'render returns URI using extensionName from Extbase Request' => [ '<f:uri.resource path="Icons/Extension.svg" />', diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Uri/TypolinkViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Uri/TypolinkViewHelperTest.php index f9205f79569f714e38147b1bfae569672d42c459..f0f8c354ca45c21ca9343e3f7984e2ff30ff323f 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Uri/TypolinkViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Uri/TypolinkViewHelperTest.php @@ -54,7 +54,7 @@ class TypolinkViewHelperTest extends FunctionalTestCase ); } - public function renderDataProvider(): array + public static function renderDataProvider(): array { return [ 'uri: default' => [ diff --git a/typo3/sysext/fluid_styled_content/Tests/Functional/Rendering/SecureHtmlRenderingTest.php b/typo3/sysext/fluid_styled_content/Tests/Functional/Rendering/SecureHtmlRenderingTest.php index 7e8c49c68de295eef03bd524ff2b651cacf23813..c100282c032253078b82558c9ed36c6f9a2fe8d9 100644 --- a/typo3/sysext/fluid_styled_content/Tests/Functional/Rendering/SecureHtmlRenderingTest.php +++ b/typo3/sysext/fluid_styled_content/Tests/Functional/Rendering/SecureHtmlRenderingTest.php @@ -78,7 +78,7 @@ class SecureHtmlRenderingTest extends FunctionalTestCase ); } - public function defaultParseFuncRteAvoidsCrossSiteScriptingDataProvider(): array + public static function defaultParseFuncRteAvoidsCrossSiteScriptingDataProvider(): array { return [ '#01' => [ @@ -208,7 +208,7 @@ class SecureHtmlRenderingTest extends FunctionalTestCase self::assertSame($expectation, trim((string)$response->getBody(), "\n")); } - public function customParseFuncAvoidsCrossSiteScriptingDataProvider(): array + public static function customParseFuncAvoidsCrossSiteScriptingDataProvider(): array { return [ '#01' => [ diff --git a/typo3/sysext/form/Tests/Functional/Mvc/Validation/MimeTypeValidatorTest.php b/typo3/sysext/form/Tests/Functional/Mvc/Validation/MimeTypeValidatorTest.php index 902a38bc5bd01d03098acf4324ef195b8069538b..5e5fe16a8f0e381ef704ad9426d43d45109b5f1b 100644 --- a/typo3/sysext/form/Tests/Functional/Mvc/Validation/MimeTypeValidatorTest.php +++ b/typo3/sysext/form/Tests/Functional/Mvc/Validation/MimeTypeValidatorTest.php @@ -114,7 +114,7 @@ class MimeTypeValidatorTest extends FunctionalTestCase self::assertTrue($validator->validate('string')->hasErrors()); } - public function fileExtensionMatchesMimeTypesDataProvider(): array + public static function fileExtensionMatchesMimeTypesDataProvider(): array { $allowedMimeTypes = ['application/pdf', 'application/vnd.oasis.opendocument.text']; return [ @@ -145,7 +145,7 @@ class MimeTypeValidatorTest extends FunctionalTestCase self::assertSame($isValid, !$result->hasErrors()); } - public function validateHandlesMimeTypesOfFilesDataProvider(): array + public static function validateHandlesMimeTypesOfFilesDataProvider(): array { // error-codes // + 1471708998: mime-type not allowed diff --git a/typo3/sysext/frontend/Tests/Functional/ContentObject/ContentObjectRendererTest.php b/typo3/sysext/frontend/Tests/Functional/ContentObject/ContentObjectRendererTest.php index a3a0a423509014c97b8961a27b800c1546e7e490..3b078147ff8ee4381ee59487b7daa3c4d15b300d 100644 --- a/typo3/sysext/frontend/Tests/Functional/ContentObject/ContentObjectRendererTest.php +++ b/typo3/sysext/frontend/Tests/Functional/ContentObject/ContentObjectRendererTest.php @@ -87,7 +87,7 @@ class ContentObjectRendererTest extends FunctionalTestCase * @return array multi-dimensional array with the second level like this: * @see getQuery */ - public function getQueryDataProvider(): array + public static function getQueryDataProvider(): array { return [ 'testing empty conf' => [ @@ -439,7 +439,7 @@ And another one'; ]; } - public function checkIfReturnsExpectedValuesDataProvider(): iterable + public static function checkIfReturnsExpectedValuesDataProvider(): iterable { yield 'isNull returns true if stdWrap returns null' => [ 'configuration' => [ @@ -472,7 +472,7 @@ And another one'; self::assertSame($expected, $this->subject->checkIf($configuration)); } - public function imageLinkWrapWrapsTheContentAsConfiguredDataProvider(): iterable + public static function imageLinkWrapWrapsTheContentAsConfiguredDataProvider(): iterable { $width = 900; $height = 600; diff --git a/typo3/sysext/frontend/Tests/Functional/ContentObject/FilesContentObjectTest.php b/typo3/sysext/frontend/Tests/Functional/ContentObject/FilesContentObjectTest.php index 31ad5a60c875b312b95fd9f94436c36943d71f36..9890ba0cd34158de8fad24f2ce3d77e8d16f66b5 100644 --- a/typo3/sysext/frontend/Tests/Functional/ContentObject/FilesContentObjectTest.php +++ b/typo3/sysext/frontend/Tests/Functional/ContentObject/FilesContentObjectTest.php @@ -50,7 +50,7 @@ class FilesContentObjectTest extends FunctionalTestCase $this->subject = $contentObjectRenderer->getContentObject('FILES'); } - public function renderReturnsFilesForFileReferencesDataProvider(): array + public static function renderReturnsFilesForFileReferencesDataProvider(): array { return [ 'One file reference' => [ @@ -195,7 +195,7 @@ class FilesContentObjectTest extends FunctionalTestCase self::assertSame($expected, $this->subject->render($configuration)); } - public function renderReturnsFilesForFilesDataProvider(): array + public static function renderReturnsFilesForFilesDataProvider(): array { return [ 'One file' => [ @@ -340,7 +340,7 @@ class FilesContentObjectTest extends FunctionalTestCase self::assertSame($expected, $this->subject->render($configuration)); } - public function renderReturnsFilesForCollectionsDataProvider(): array + public static function renderReturnsFilesForCollectionsDataProvider(): array { return [ 'One collection' => [ @@ -522,7 +522,7 @@ class FilesContentObjectTest extends FunctionalTestCase self::assertSame($expected, $this->subject->render($configuration)); } - public function renderReturnsFilesForFoldersDataProvider(): array + public static function renderReturnsFilesForFoldersDataProvider(): array { return [ 'One folder' => [ @@ -733,7 +733,7 @@ class FilesContentObjectTest extends FunctionalTestCase self::assertSame($expected, $this->subject->render($configuration)); } - public function renderReturnsFilesForReferencesAsArrayDataProvider(): iterable + public static function renderReturnsFilesForReferencesAsArrayDataProvider(): iterable { yield 'references option as array with nothing provided returns nothing' => [ 'configuration' => [ diff --git a/typo3/sysext/frontend/Tests/Functional/Controller/TypoScriptFrontendControllerTest.php b/typo3/sysext/frontend/Tests/Functional/Controller/TypoScriptFrontendControllerTest.php index 10f137f318147b5a7011a09108bfab64a03d9d8a..364df45690e68ff5977243fa128489bca6172581 100644 --- a/typo3/sysext/frontend/Tests/Functional/Controller/TypoScriptFrontendControllerTest.php +++ b/typo3/sysext/frontend/Tests/Functional/Controller/TypoScriptFrontendControllerTest.php @@ -187,7 +187,7 @@ alert(yes);', $body); return $GLOBALS['TSFE']->sL('LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:mod_tx_cms_webinfo_page'); } - public function mountPointParameterContainsOnlyValidMPValuesDataProvider(): array + public static function mountPointParameterContainsOnlyValidMPValuesDataProvider(): array { return [ 'no MP Parameter given' => [ @@ -242,7 +242,7 @@ alert(yes);', $body); return 'foo' . $GLOBALS['TSFE']->MP . 'bar'; } - public function getFromCacheSetsConfigRootlineToLocalRootlineDataProvider(): array + public static function getFromCacheSetsConfigRootlineToLocalRootlineDataProvider(): array { $page1 = [ 'pid' => 0, diff --git a/typo3/sysext/frontend/Tests/Functional/Rendering/AbsoluteUriPrefixRenderingTest.php b/typo3/sysext/frontend/Tests/Functional/Rendering/AbsoluteUriPrefixRenderingTest.php index 56950ac81b8505eb14539e350e9fcd5f78e266a9..63d398919963ea4facb50125289500211d425522 100644 --- a/typo3/sysext/frontend/Tests/Functional/Rendering/AbsoluteUriPrefixRenderingTest.php +++ b/typo3/sysext/frontend/Tests/Functional/Rendering/AbsoluteUriPrefixRenderingTest.php @@ -92,7 +92,7 @@ class AbsoluteUriPrefixRenderingTest extends FunctionalTestCase ); } - public function urisAreRenderedUsingForceAbsoluteUrlsDataProvider(): \Generator + public static function urisAreRenderedUsingForceAbsoluteUrlsDataProvider(): \Generator { // no compression settings yield 'none - none' => [ diff --git a/typo3/sysext/frontend/Tests/Functional/Rendering/LocalizedSiteContentRenderingTest.php b/typo3/sysext/frontend/Tests/Functional/Rendering/LocalizedSiteContentRenderingTest.php index a204659ac53cb1f29f784a3aa347054308c09480..c2a57621ef5614f33a7082f901a27389478aa3d9 100644 --- a/typo3/sysext/frontend/Tests/Functional/Rendering/LocalizedSiteContentRenderingTest.php +++ b/typo3/sysext/frontend/Tests/Functional/Rendering/LocalizedSiteContentRenderingTest.php @@ -201,7 +201,7 @@ class LocalizedSiteContentRenderingTest extends AbstractDataHandlerActionTestCas /** * Dutch language has page translation record and some content elements are translated */ - public function dutchDataProvider(): array + public static function dutchDataProvider(): array { return [ [ @@ -344,7 +344,7 @@ class LocalizedSiteContentRenderingTest extends AbstractDataHandlerActionTestCas self::assertEquals($overlayType, $responseStructure->getScopePath('languageInfo/overlayType'), 'language overlayType does not match'); } - public function contentOnNonTranslatedPageDataProvider(): array + public static function contentOnNonTranslatedPageDataProvider(): array { //Expected behaviour: //the page is NOT translated so setting sys_language_mode to different values changes the results @@ -678,7 +678,7 @@ class LocalizedSiteContentRenderingTest extends AbstractDataHandlerActionTestCas self::assertEquals($statusCode, $response->getStatusCode()); } - public function contentOnPartiallyTranslatedPageDataProvider(): \Generator + public static function contentOnPartiallyTranslatedPageDataProvider(): \Generator { //Expected behaviour: //Setting sys_language_mode to different values doesn't influence the result as the requested page is translated to Polish, diff --git a/typo3/sysext/frontend/Tests/Functional/Rendering/TitleTagRenderingTest.php b/typo3/sysext/frontend/Tests/Functional/Rendering/TitleTagRenderingTest.php index d3969e58053c430478f9d527004e3ff42054e3ff..ba6a47f9205a2d1bd0a811b5b4102a2d7cc42600 100644 --- a/typo3/sysext/frontend/Tests/Functional/Rendering/TitleTagRenderingTest.php +++ b/typo3/sysext/frontend/Tests/Functional/Rendering/TitleTagRenderingTest.php @@ -76,7 +76,7 @@ class TitleTagRenderingTest extends FunctionalTestCase GeneralUtility::writeFile($fileName, $yamlFileContents); } - public function titleTagDataProvider(): array + public static function titleTagDataProvider(): array { return [ [ diff --git a/typo3/sysext/frontend/Tests/Functional/Rendering/UriPrefixRenderingTest.php b/typo3/sysext/frontend/Tests/Functional/Rendering/UriPrefixRenderingTest.php index 1961ebea78edba7ca4a2b910f3e4dc48a451caac..537881e46d13ea3c302d30b97b44ed3779ffbe73 100644 --- a/typo3/sysext/frontend/Tests/Functional/Rendering/UriPrefixRenderingTest.php +++ b/typo3/sysext/frontend/Tests/Functional/Rendering/UriPrefixRenderingTest.php @@ -91,7 +91,7 @@ class UriPrefixRenderingTest extends FunctionalTestCase ); } - public function urisAreRenderedUsingAbsRefPrefixDataProvider(): array + public static function urisAreRenderedUsingAbsRefPrefixDataProvider(): array { return [ // no compression settings diff --git a/typo3/sysext/frontend/Tests/Functional/Request/InternalRequestDataMappingTest.php b/typo3/sysext/frontend/Tests/Functional/Request/InternalRequestDataMappingTest.php index 78fda4297882f13dbc315ac38b6e2eccde0ecd08..4b789c0ca2937d90be683b8d03998b8060d33f7d 100644 --- a/typo3/sysext/frontend/Tests/Functional/Request/InternalRequestDataMappingTest.php +++ b/typo3/sysext/frontend/Tests/Functional/Request/InternalRequestDataMappingTest.php @@ -27,7 +27,7 @@ class InternalRequestDataMappingTest extends FunctionalTestCase 'typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_request_mirror', ]; - public function ensureRequestMappingWorksDataProvider(): \Generator + public static function ensureRequestMappingWorksDataProvider(): \Generator { yield 'POST parsedBody(_POST) as parsedBody' => [ 'uri' => 'https://acme.com/request-mirror', diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EidRequestTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EidRequestTest.php index af5c4c14201cdb20506f0848a5c8840727e30532..f3a74b965263d96145251281f0d7fa08fc160c87 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EidRequestTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EidRequestTest.php @@ -45,7 +45,7 @@ class EidRequestTest extends AbstractTestCase }); } - public function ensureEidRequestsWorkDataProvider(): array + public static function ensureEidRequestsWorkDataProvider(): array { return [ 'eid without index.php' => [ diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/DefaultExtbaseControllerTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/DefaultExtbaseControllerTest.php index c2c08e770cc65f2e969cee6c702baabdbe1b0b2b..9a8107e5b6653ce6e7cd1b44a14dcfa74c72cf33 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/DefaultExtbaseControllerTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/DefaultExtbaseControllerTest.php @@ -21,7 +21,7 @@ use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\InternalRequest; class DefaultExtbaseControllerTest extends AbstractEnhancerLinkGeneratorTestCase { - public function defaultExtbaseControllerActionNamesAreAppliedWithAdditionalNonMappedQueryArgumentsDataProvider(): array + public static function defaultExtbaseControllerActionNamesAreAppliedWithAdditionalNonMappedQueryArgumentsDataProvider(): array { return [ '*::*' => [ @@ -98,7 +98,7 @@ class DefaultExtbaseControllerTest extends AbstractEnhancerLinkGeneratorTestCase self::assertSame($expectation, (string)$response->getBody()); } - public function defaultExtbaseControllerActionNamesAreAppliedDataProvider(): array + public static function defaultExtbaseControllerActionNamesAreAppliedDataProvider(): array { return [ '*::*' => [ diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/LocaleModifierTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/LocaleModifierTest.php index e26665f52c167c776974e55339c31e5f3ef2b89b..446e7f863f7a2c6f42cd5e59fa6095a17e6f01c9 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/LocaleModifierTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/LocaleModifierTest.php @@ -29,7 +29,7 @@ use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\InternalRequest; class LocaleModifierTest extends AbstractEnhancerLinkGeneratorTestCase { - public function localeModifierDataProvider(string|TestSet|null $parentSet = null): array + public static function localeModifierDataProvider(string|TestSet|null $parentSet = null): array { $builder = Builder::create(); // variables (applied when invoking expectations) diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/PersistedAliasMapperTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/PersistedAliasMapperTest.php index fa63017f6090cda8840f725a6b53019f784f76ce..daa81b3c39e84f997cd3990542c57fc256cd2f15 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/PersistedAliasMapperTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/PersistedAliasMapperTest.php @@ -29,7 +29,7 @@ use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\InternalRequest; class PersistedAliasMapperTest extends AbstractEnhancerLinkGeneratorTestCase { - public function persistedAliasMapperDataProvider(string|TestSet|null $parentSet = null): array + public static function persistedAliasMapperDataProvider(string|TestSet|null $parentSet = null): array { $builder = Builder::create(); // variables (applied when invoking expectations) diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/PersistedPatternMapperTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/PersistedPatternMapperTest.php index 800965c34200667d6685603398737f8d215ad459..13d205fa83d84c0f0c0051272bc2384c8b1f6abb 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/PersistedPatternMapperTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/PersistedPatternMapperTest.php @@ -29,7 +29,7 @@ use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\InternalRequest; class PersistedPatternMapperTest extends AbstractEnhancerLinkGeneratorTestCase { - public function persistedPatternMapperDataProvider(string|TestSet|null $parentSet = null): array + public static function persistedPatternMapperDataProvider(string|TestSet|null $parentSet = null): array { $builder = Builder::create(); // variables (applied when invoking expectations) diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/RouteTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/RouteTest.php index fb46bb04944eed68bc52618257b450ef07355602..6c25931348acbcda75266b7a3fa27f57c8a6422c 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/RouteTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/RouteTest.php @@ -34,7 +34,7 @@ class RouteTest extends AbstractEnhancerLinkGeneratorTestCase { use TestSetDataProviderTrait; - public function routeDefaultsForSingleParameterAreConsideredDataProvider(string|TestSet|null $parentSet = null): array + public static function routeDefaultsForSingleParameterAreConsideredDataProvider(string|TestSet|null $parentSet = null): array { $builder = Builder::create(); $enhancerDeclarations = $builder->declareEnhancers(); @@ -124,7 +124,7 @@ class RouteTest extends AbstractEnhancerLinkGeneratorTestCase $this->assertGeneratedUriEquals($testSet); } - public function routeDefaultsForMultipleParametersAreConsideredDataProvider($parentSet = null): array + public static function routeDefaultsForMultipleParametersAreConsideredDataProvider($parentSet = null): array { $builder = Builder::create(); $routePath = VariableValue::create('/[[routePrefix]]/[[routeParameter]]/{additional}'); @@ -218,7 +218,7 @@ class RouteTest extends AbstractEnhancerLinkGeneratorTestCase $this->assertGeneratedUriEquals($testSet); } - public function routeRequirementsHavingAspectsAreConsideredDataProvider($parentSet = null): array + public static function routeRequirementsHavingAspectsAreConsideredDataProvider($parentSet = null): array { $builder = Builder::create(); // variables (applied when invoking expectations) diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/StaticRangeMapperTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/StaticRangeMapperTest.php index f8b746207e1f8e805c2d6b1e6077ab4e476c8656..940b23772b83ac68b3c479fa3a0be249c07fa58c 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/StaticRangeMapperTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/StaticRangeMapperTest.php @@ -30,7 +30,7 @@ use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\InternalRequest; class StaticRangeMapperTest extends AbstractEnhancerLinkGeneratorTestCase { - public function staticRangeMapperDataProvider(string|TestSet|null $parentSet = null): array + public static function staticRangeMapperDataProvider(string|TestSet|null $parentSet = null): array { $variableContexts = array_map( static function ($value) { diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/StaticValueMapperTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/StaticValueMapperTest.php index 70ef62ce59ee87cd41878d257a8f2d5d71390639..8fab2902f73274df9432712e5079d7222ef18dd8 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/StaticValueMapperTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerLinkGenerator/StaticValueMapperTest.php @@ -29,7 +29,7 @@ use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\InternalRequest; class StaticValueMapperTest extends AbstractEnhancerLinkGeneratorTestCase { - public function staticValueMapperDataProvider(string|TestSet|null $parentSet = null): array + public static function staticValueMapperDataProvider(string|TestSet|null $parentSet = null): array { $builder = Builder::create(); // variables (applied when invoking expectations) diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/LocaleModifierTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/LocaleModifierTest.php index 9f52774e778fca35db7ce20ac244e5be97fb5c45..c33c30c18b86ef8f633beb372b84422521e68820 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/LocaleModifierTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/LocaleModifierTest.php @@ -29,7 +29,7 @@ use TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\VariableV class LocaleModifierTest extends AbstractEnhancerSiteRequestTest { - public function localeModifierDataProvider(string|TestSet|null $parentSet = null): array + public static function localeModifierDataProvider(string|TestSet|null $parentSet = null): array { $builder = Builder::create(); // variables (applied when invoking expectations) diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/PageTypeDecoratorTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/PageTypeDecoratorTest.php index 7b5abee6fc620f2205732d9933ef0b6cc1068b89..0e6132a11c6fc22473398fbded8edfedd964486a 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/PageTypeDecoratorTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/PageTypeDecoratorTest.php @@ -29,7 +29,7 @@ use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\InternalRequest; class PageTypeDecoratorTest extends AbstractEnhancerSiteRequestTest { - public function pageTypeDecoratorIsAppliedDataProvider(): array + public static function pageTypeDecoratorIsAppliedDataProvider(): array { $testSets = []; foreach (Builder::create()->declarePageTypes() as $pageTypeDeclaration) { @@ -65,7 +65,7 @@ class PageTypeDecoratorTest extends AbstractEnhancerSiteRequestTest parent::pageTypeDecoratorIsApplied($testSet); } - public function pageTypeDecoratorIndexCanBePartOfSlugDataProvider(): array + public static function pageTypeDecoratorIndexCanBePartOfSlugDataProvider(): array { $testSets = []; foreach (Builder::create()->declarePageTypes() as $pageTypeDeclaration) { diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/PersistedAliasMapperTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/PersistedAliasMapperTest.php index 1dd9abb79a2a85dae1cf3d9860c4b685f01e5d3b..191b42a37d3fe4537da61c824f26721eca4f6579 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/PersistedAliasMapperTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/PersistedAliasMapperTest.php @@ -30,7 +30,7 @@ use TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\VariableV class PersistedAliasMapperTest extends AbstractEnhancerSiteRequestTest { - public function persistedAliasMapperDataProvider(string|TestSet|null $parentSet = null): array + public static function persistedAliasMapperDataProvider(string|TestSet|null $parentSet = null): array { $builder = Builder::create(); // variables (applied when invoking expectations) diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/PersistedPatternMapperTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/PersistedPatternMapperTest.php index c1988e9b448dc934442159914ac228021b616375..640ff1d12d855cbedce261260af399f34b6e4f5c 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/PersistedPatternMapperTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/PersistedPatternMapperTest.php @@ -28,7 +28,7 @@ use TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\VariableV class PersistedPatternMapperTest extends AbstractEnhancerSiteRequestTest { - public function persistedPatternMapperDataProvider(string|TestSet|null $parentSet = null): array + public static function persistedPatternMapperDataProvider(string|TestSet|null $parentSet = null): array { $builder = Builder::create(); // variables (applied when invoking expectations) diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/RouteTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/RouteTest.php index c134d993cce6a27166939074664296b162175a7a..758ee8607d02063aef0037a74bf65e8bd9e3efaa 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/RouteTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/RouteTest.php @@ -38,7 +38,7 @@ class RouteTest extends AbstractEnhancerSiteRequestTest { use TestSetDataProviderTrait; - public function routeDefaultsAreConsideredDataProvider(string|TestSet|null $parentSet = null): array + public static function routeDefaultsAreConsideredDataProvider(string|TestSet|null $parentSet = null): array { $builder = Builder::create(); // variables (applied when invoking expectations) @@ -130,7 +130,7 @@ class RouteTest extends AbstractEnhancerSiteRequestTest $this->assertPageArgumentsEquals($testSet); } - public function routeRequirementsHavingAspectsAreConsideredDataProvider($parentSet = null): array + public static function routeRequirementsHavingAspectsAreConsideredDataProvider($parentSet = null): array { $builder = Builder::create(); // variables (applied when invoking expectations) @@ -208,7 +208,7 @@ class RouteTest extends AbstractEnhancerSiteRequestTest $this->assertPageArgumentsEquals($testSet); } - public function routeRequirementsAreConsideredDataProvider($parentSet = null): array + public static function routeRequirementsAreConsideredDataProvider($parentSet = null): array { $builder = Builder::create(); // variables (applied when invoking expectations) @@ -312,7 +312,7 @@ class RouteTest extends AbstractEnhancerSiteRequestTest $this->assertPageArgumentsEquals($testSet); } - public function routeIdentifiersAreResolvedDataProvider(): array + public static function routeIdentifiersAreResolvedDataProvider(): array { return [ // namespace[value] diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/StaticRangeMapperTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/StaticRangeMapperTest.php index 951bcf34c79bd161908c6ef893a7d6f102a7e8c0..3479cafe775dd7320736f93e447e31653757d26a 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/StaticRangeMapperTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/StaticRangeMapperTest.php @@ -29,7 +29,7 @@ use TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\VariableV class StaticRangeMapperTest extends AbstractEnhancerSiteRequestTest { - public function staticRangeMapperDataProvider(string|TestSet|null $parentSet = null): array + public static function staticRangeMapperDataProvider(string|TestSet|null $parentSet = null): array { $variableContexts = array_map( static function ($value) { diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/StaticValueMapperTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/StaticValueMapperTest.php index b72fd644ecc08b90d10ed4a88554616d4bfbcb76..33138ee2400ea1043f85d8431d82a87fc6e93499 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/StaticValueMapperTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/EnhancerSiteRequest/StaticValueMapperTest.php @@ -28,7 +28,7 @@ use TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder\VariableV class StaticValueMapperTest extends AbstractEnhancerSiteRequestTest { - public function staticValueMapperDataProvider(string|TestSet|null $parentSet = null): array + public static function staticValueMapperDataProvider(string|TestSet|null $parentSet = null): array { $builder = Builder::create(); // variables (applied when invoking expectations) diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioATest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioATest.php index 9ab1648fd593a8653253d5a15fca7bbca9337da7..f40fa7692577690bdbfa4b4071ddd40941c397e6 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioATest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioATest.php @@ -57,7 +57,7 @@ class ScenarioATest extends AbstractLocalizedPagesTestCase $this->setUpDatabaseWithYamlPayload(__DIR__ . '/Fixtures/ScenarioA.yaml'); } - public function resolvablePagesDataProvider(): array + public static function resolvablePagesDataProvider(): array { return [ 'home page in EN' => [ @@ -90,7 +90,7 @@ class ScenarioATest extends AbstractLocalizedPagesTestCase $this->assertScopes($url, $scopes); } - public function menuDataProvider(): array + public static function menuDataProvider(): array { return [ [ diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioBTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioBTest.php index 41ec4b0ec257676c429f10cfad1c791f657b2f8d..1db9c001c2410e8bec3070f1cddfdc40dcadd2c5 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioBTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioBTest.php @@ -56,7 +56,7 @@ class ScenarioBTest extends AbstractLocalizedPagesTestCase $this->setUpDatabaseWithYamlPayload(__DIR__ . '/Fixtures/ScenarioB.yaml'); } - public function resolvablePagesDataProvider(): array + public static function resolvablePagesDataProvider(): array { return [ 'home page in EN' => [ @@ -95,7 +95,7 @@ class ScenarioBTest extends AbstractLocalizedPagesTestCase $this->assertScopes($url, $scopes); } - public function pageNotFoundDataProvider(): array + public static function pageNotFoundDataProvider(): array { return [ 'home page in DE where page translation does not exist and has no fallback configured' => [ @@ -113,7 +113,7 @@ class ScenarioBTest extends AbstractLocalizedPagesTestCase $this->assertResponseStatusCode($url); } - public function menuDataProvider(): array + public static function menuDataProvider(): array { return [ [ diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioCTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioCTest.php index edcc0a22318fd9a1524865aadaa8044847295635..d249886085f40f0c6f7e5ae54d5ced006af24b4a 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioCTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioCTest.php @@ -57,7 +57,7 @@ class ScenarioCTest extends AbstractLocalizedPagesTestCase $this->setUpDatabaseWithYamlPayload(__DIR__ . '/Fixtures/ScenarioC.yaml'); } - public function resolvablePagesDataProvider(): array + public static function resolvablePagesDataProvider(): array { return [ 'home page in EN' => [ @@ -96,7 +96,7 @@ class ScenarioCTest extends AbstractLocalizedPagesTestCase $this->assertScopes($url, $scopes); } - public function pageNotFoundDataProvider(): array + public static function pageNotFoundDataProvider(): array { return [ 'home page in DE-CH where page translation does not exist and is trapped by l18n_cfg' => [ @@ -117,7 +117,7 @@ class ScenarioCTest extends AbstractLocalizedPagesTestCase $this->assertResponseStatusCode($url); } - public function menuDataProvider(): array + public static function menuDataProvider(): array { return [ [ diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioDTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioDTest.php index d772983e1603fbc34fc6801809d1a799dfd541f7..d8e9f6c808c560c95d2ee1060833c3b14387c382 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioDTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioDTest.php @@ -62,7 +62,7 @@ class ScenarioDTest extends AbstractLocalizedPagesTestCase $this->setUpDatabaseWithYamlPayload(__DIR__ . '/Fixtures/ScenarioD.yaml'); } - public function resolvablePagesDataProvider(): array + public static function resolvablePagesDataProvider(): array { return [ 'home page in EN' => [ @@ -101,7 +101,7 @@ class ScenarioDTest extends AbstractLocalizedPagesTestCase $this->assertScopes($url, $scopes); } - public function pageNotFoundDataProvider(): array + public static function pageNotFoundDataProvider(): array { return [ 'home page in DE where page translation does not exist' => [ @@ -125,7 +125,7 @@ class ScenarioDTest extends AbstractLocalizedPagesTestCase $this->assertResponseStatusCode($url); } - public function menuDataProvider(): array + public static function menuDataProvider(): array { return [ [ diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioETest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioETest.php index 5657c5576640c65014ef4ce286ce76be9f62da50..a9002bb008c7ab6a908555d527ffbf88a3d6374e 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioETest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioETest.php @@ -60,7 +60,7 @@ class ScenarioETest extends AbstractLocalizedPagesTestCase $this->setUpDatabaseWithYamlPayload(__DIR__ . '/Fixtures/ScenarioE.yaml'); } - public function resolvablePagesDataProvider(): array + public static function resolvablePagesDataProvider(): array { return [ 'about page in DE where page translation exists' => [ @@ -93,7 +93,7 @@ class ScenarioETest extends AbstractLocalizedPagesTestCase $this->assertScopes($url, $scopes); } - public function pageNotFoundDataProvider(): array + public static function pageNotFoundDataProvider(): array { return [ 'home page in EN' => [ @@ -123,7 +123,7 @@ class ScenarioETest extends AbstractLocalizedPagesTestCase $this->assertResponseStatusCode($url); } - public function menuDataProvider(): array + public static function menuDataProvider(): array { return [ [ diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioFTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioFTest.php index ab113a1629a8936d4c40691f844c6f23d6659cdb..91be406776a75011ac2d702e0972e745fd330262 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioFTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioFTest.php @@ -62,7 +62,7 @@ class ScenarioFTest extends AbstractLocalizedPagesTestCase $this->setUpDatabaseWithYamlPayload(__DIR__ . '/Fixtures/ScenarioF.yaml'); } - public function resolvablePagesDataProvider(): array + public static function resolvablePagesDataProvider(): array { return [ 'about page in DE where page translation exists' => [ @@ -95,7 +95,7 @@ class ScenarioFTest extends AbstractLocalizedPagesTestCase $this->assertScopes($url, $scopes); } - public function pageNotFoundDataProvider(): array + public static function pageNotFoundDataProvider(): array { return [ 'home page in EN' => [ @@ -128,7 +128,7 @@ class ScenarioFTest extends AbstractLocalizedPagesTestCase $this->assertResponseStatusCode($url); } - public function menuDataProvider(): array + public static function menuDataProvider(): array { return [ [ diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioGTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioGTest.php index 6862d0acc2c516301e68095c11805e2e825f0611..baf5d3c226b196062aa04c28b19bc1bf90d52378 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioGTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/LocalizedPageRendering/ScenarioGTest.php @@ -53,7 +53,7 @@ class ScenarioGTest extends AbstractLocalizedPagesTestCase $this->setUpDatabaseWithYamlPayload(__DIR__ . '/Fixtures/ScenarioG.yaml'); } - public function menuDataProvider(): array + public static function menuDataProvider(): array { return [ [ diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/MountPointTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/MountPointTest.php index 858acdb9d5bc9324570050015e259825a3ac4762..a19d1a73039c36035ede3be08e52941a2d91ee8b 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/MountPointTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/MountPointTest.php @@ -116,7 +116,7 @@ class MountPointTest extends AbstractTestCase }); } - public function hierarchicalMenuIsGeneratedDataProvider(): array + public static function hierarchicalMenuIsGeneratedDataProvider(): array { $siteMapOfMainPage = [ ['title' => 'EN: Welcome', 'link' => '/welcome'], @@ -371,7 +371,7 @@ class MountPointTest extends AbstractTestCase self::assertSame($expectation, $json); } - public function requestsResolvePageIdAndMountPointParameterDataProvider(): array + public static function requestsResolvePageIdAndMountPointParameterDataProvider(): array { return [ 'regular page on global site' => [ @@ -423,7 +423,7 @@ class MountPointTest extends AbstractTestCase self::assertSame($expectedMountPointParameter, $responseData['dynamicArguments']['MP'] ?? null); } - public function mountPointPagesShowContentAsConfiguredDataProvider(): array + public static function mountPointPagesShowContentAsConfiguredDataProvider(): array { return [ 'Show content of MountPoint Page' => [ diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/SiteRequestTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/SiteRequestTest.php index 7edde3b0db17e222a7c1bb6f3d2881c378f27004..8fcf32b13f15a31ed579d1890b8b6cf1e3cbcb5f 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/SiteRequestTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/SiteRequestTest.php @@ -266,7 +266,7 @@ class SiteRequestTest extends AbstractTestCase ); } - public function pageIsRenderedWithPathsAndChineseBaseDataProvider(): array + public static function pageIsRenderedWithPathsAndChineseBaseDataProvider(): array { return [ ['https://website.local/简/简/?id=1110', 'ZH-CN: Welcome Default'], @@ -941,7 +941,7 @@ class SiteRequestTest extends AbstractTestCase self::assertSame($expectedHeaders, $response->getHeaders()); } - public function crossSiteShortcutsAreRedirectedDataProvider(): array + public static function crossSiteShortcutsAreRedirectedDataProvider(): array { return [ 'shortcut is redirected #1' => [ @@ -1025,7 +1025,7 @@ class SiteRequestTest extends AbstractTestCase self::assertSame($expectedHeaders, $response->getHeaders()); } - public function crossSiteShortcutsWithWrongSiteHostSendsPageNotFoundWithoutHavingErrorHandlingDataProvider(): array + public static function crossSiteShortcutsWithWrongSiteHostSendsPageNotFoundWithoutHavingErrorHandlingDataProvider(): array { return [ 'shortcut requested by id on wrong site #1' => [ diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/SlugLinkGeneratorTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/SlugLinkGeneratorTest.php index 064075335b84a91b0317ee71a72cb45e1d0ff417..669b33f6692f556e00c9e210d1f2e20c6ac6cbb9 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/SlugLinkGeneratorTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/SlugLinkGeneratorTest.php @@ -573,7 +573,7 @@ class SlugLinkGeneratorTest extends AbstractTestCase self::assertSame($expectation, (string)$response->getBody()); } - public function hierarchicalMenuIsGeneratedDataProvider(): array + public static function hierarchicalMenuIsGeneratedDataProvider(): array { return [ 'ACME Inc' => [ @@ -805,7 +805,7 @@ class SlugLinkGeneratorTest extends AbstractTestCase self::assertSame($expectation, $json); } - public function hierarchicalMenuSetsActiveStateProperlyDataProvider(): array + public static function hierarchicalMenuSetsActiveStateProperlyDataProvider(): array { return [ 'regular page' => [ @@ -885,7 +885,7 @@ class SlugLinkGeneratorTest extends AbstractTestCase self::assertSame($expectation, $json); } - public function hierarchicalMenuAlwaysResolvesToDefaultLanguageDataProvider(): array + public static function hierarchicalMenuAlwaysResolvesToDefaultLanguageDataProvider(): array { return [ 'no banned IDs in default language' => [ @@ -949,7 +949,7 @@ class SlugLinkGeneratorTest extends AbstractTestCase self::assertSame($expectedMenuItems, count($json)); } - public function directoryMenuIsGeneratedDataProvider(): array + public static function directoryMenuIsGeneratedDataProvider(): array { return [ 'ACME Inc First Level - Live' => [ @@ -1104,7 +1104,7 @@ class SlugLinkGeneratorTest extends AbstractTestCase self::assertSame($expectation, $json); } - public function directoryMenuToAccessRestrictedPagesIsGeneratedDataProvider(): array + public static function directoryMenuToAccessRestrictedPagesIsGeneratedDataProvider(): array { return [ 'All restricted pages are linked to welcome page' => [ @@ -1194,7 +1194,7 @@ class SlugLinkGeneratorTest extends AbstractTestCase self::assertSame($expectation, $json); } - public function listMenuIsGeneratedDataProvider(): array + public static function listMenuIsGeneratedDataProvider(): array { return [ 'Live' => [ @@ -1325,7 +1325,7 @@ class SlugLinkGeneratorTest extends AbstractTestCase self::assertSame($expectation, $json); } - public function languageMenuIsGeneratedDataProvider(): array + public static function languageMenuIsGeneratedDataProvider(): array { return [ 'ACME Inc (EN)' => [ diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/SlugSiteRequestTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/SlugSiteRequestTest.php index 47e18ef2044a54f14d32f79ff1c4fc39de8260f2..b4c90b24e6e0ca47ba03aab410ae8c8af3b596d9 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/SlugSiteRequestTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/SlugSiteRequestTest.php @@ -1145,7 +1145,7 @@ class SlugSiteRequestTest extends AbstractTestCase ); } - public function crossSiteShortcutsAreRedirectedDataProvider(): array + public static function crossSiteShortcutsAreRedirectedDataProvider(): array { return [ 'shortcut is redirected' => [ @@ -1189,7 +1189,7 @@ class SlugSiteRequestTest extends AbstractTestCase self::assertSame($expectedHeaders, $response->getHeaders()); } - public function pageIsRenderedForVersionedPageDataProvider(): \Generator + public static function pageIsRenderedForVersionedPageDataProvider(): \Generator { yield 'Live page with logged-in user' => [ 'url' => 'https://website.local/en-en/welcome', @@ -1255,7 +1255,7 @@ class SlugSiteRequestTest extends AbstractTestCase self::assertSame($expectedPageTitle, $responseStructure->getScopePath('page/title')); } - public function defaultLanguagePageNotResolvedForSiteLanguageBaseIfLanguagePageExistsDataProvider(): \Generator + public static function defaultLanguagePageNotResolvedForSiteLanguageBaseIfLanguagePageExistsDataProvider(): \Generator { yield 'Default slug with default base resolves' => [ 'uri' => 'https://website.local/welcome/', @@ -1362,7 +1362,7 @@ class SlugSiteRequestTest extends AbstractTestCase } } - public function defaultLanguagePageNotResolvedForSiteLanguageBaseWithNonDefaultLanguageShorterUriIfLanguagePageExistsDataProvider(): \Generator + public static function defaultLanguagePageNotResolvedForSiteLanguageBaseWithNonDefaultLanguageShorterUriIfLanguagePageExistsDataProvider(): \Generator { yield 'Default slug with default base resolves' => [ 'uri' => 'https://website.local/en-en/welcome/', diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/TypoLinkGeneratorTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/TypoLinkGeneratorTest.php index da770287d5a3a5f3d3c16fcc15b8e0c9e7a1e1bd..9a5fc891f7ba98b2ec9f6113e33bcb1e5e1a8dd6 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/TypoLinkGeneratorTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/TypoLinkGeneratorTest.php @@ -219,7 +219,7 @@ class TypoLinkGeneratorTest extends AbstractTestCase self::assertSame($expectation, (string)$response->getBody()); } - public function ATagParamsAreAddedInOrderDataProvider(): array + public static function ATagParamsAreAddedInOrderDataProvider(): array { return [ 'No ATag Params' => [ @@ -492,7 +492,7 @@ class TypoLinkGeneratorTest extends AbstractTestCase self::assertSame($expectation, (string)$response->getBody()); } - public function linkToPageIsProcessedDataProvider(): array + public static function linkToPageIsProcessedDataProvider(): array { return [ [ @@ -578,7 +578,7 @@ class TypoLinkGeneratorTest extends AbstractTestCase self::assertSame($expectation, (string)$response->getBody()); } - public function linkWithoutAnchorIsGeneratedDataProvider(): array + public static function linkWithoutAnchorIsGeneratedDataProvider(): array { return [ 'empty parameter does not create a link' => [ diff --git a/typo3/sysext/frontend/Tests/Functional/Tca/PagesLanguageOverlayVisibleFieldsTest.php b/typo3/sysext/frontend/Tests/Functional/Tca/PagesLanguageOverlayVisibleFieldsTest.php index ed8807874954bc9724434400619a09bfcc5d5766..156942eb3e5c5f639b23e1cdd27bfc26dc5eb33e 100644 --- a/typo3/sysext/frontend/Tests/Functional/Tca/PagesLanguageOverlayVisibleFieldsTest.php +++ b/typo3/sysext/frontend/Tests/Functional/Tca/PagesLanguageOverlayVisibleFieldsTest.php @@ -127,7 +127,7 @@ class PagesLanguageOverlayVisibleFieldsTest extends FunctionalTestCase ], ]; - public function pagesLanguageOverlayFormContainsExpectedFieldsDataProvider(): array + public static function pagesLanguageOverlayFormContainsExpectedFieldsDataProvider(): array { $pageTypes = []; diff --git a/typo3/sysext/impexp/Tests/Functional/Command/ImportCommandTest.php b/typo3/sysext/impexp/Tests/Functional/Command/ImportCommandTest.php index ccc45c928612aeac4fa0bfb5cfb56b587c142f1f..34668d4fbd68fc9181cb15949514b746254df013 100644 --- a/typo3/sysext/impexp/Tests/Functional/Command/ImportCommandTest.php +++ b/typo3/sysext/impexp/Tests/Functional/Command/ImportCommandTest.php @@ -85,7 +85,7 @@ class ImportCommandTest extends AbstractImportExportTestCase $tester->execute($input); } - public function importCommandFailsDataProvider(): array + public static function importCommandFailsDataProvider(): array { return [ 'path to not existing file' => [ diff --git a/typo3/sysext/impexp/Tests/Functional/Export/ExportPageTreeViewTest.php b/typo3/sysext/impexp/Tests/Functional/Export/ExportPageTreeViewTest.php index d249724e56d0b58f5f9cf45d7b71348858a51ffc..a64d841b6be8053f7d26d370b81d68cd967d0bec 100644 --- a/typo3/sysext/impexp/Tests/Functional/Export/ExportPageTreeViewTest.php +++ b/typo3/sysext/impexp/Tests/Functional/Export/ExportPageTreeViewTest.php @@ -28,7 +28,7 @@ class ExportPageTreeViewTest extends AbstractImportExportTestCase 'typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial', ]; - public function printTreeSucceedsDataProvider(): array + public static function printTreeSucceedsDataProvider(): array { return [ ['pid' => 0, 'levels' => Export::LEVELS_EXPANDED_TREE, 'expectedTreeItemsCount' => 2], diff --git a/typo3/sysext/impexp/Tests/Functional/ExportTest.php b/typo3/sysext/impexp/Tests/Functional/ExportTest.php index c87ee0e98b3d3d6fa320b3ba19a18fe53adefcbb..8c84425eca30e44fc7711040308129bc42d7fea8 100644 --- a/typo3/sysext/impexp/Tests/Functional/ExportTest.php +++ b/typo3/sysext/impexp/Tests/Functional/ExportTest.php @@ -227,7 +227,7 @@ class ExportTest extends AbstractImportExportTestCase self::assertEquals($renderPreviewExport, $previewData); } - public function addFilesSucceedsDataProvider(): array + public static function addFilesSucceedsDataProvider(): array { return [ ['dat' => [ diff --git a/typo3/sysext/impexp/Tests/Functional/ImportTest.php b/typo3/sysext/impexp/Tests/Functional/ImportTest.php index 91786338f437e837946d551cf377d3529e9c115e..10d15ef1512759b5fa751a796c80db09a4f5f7e2 100644 --- a/typo3/sysext/impexp/Tests/Functional/ImportTest.php +++ b/typo3/sysext/impexp/Tests/Functional/ImportTest.php @@ -25,7 +25,7 @@ class ImportTest extends AbstractImportExportTestCase 'typo3/sysext/impexp/Tests/Functional/Fixtures/XmlImports' => 'fileadmin/xml_imports', ]; - public function loadingFileFromWithinTypo3BaseFolderSucceedsProvider(): array + public static function loadingFileFromWithinTypo3BaseFolderSucceedsProvider(): array { return [ 'relative path to fileadmin' => ['fileadmin/xml_imports/sys_news.xml'], @@ -49,7 +49,7 @@ class ImportTest extends AbstractImportExportTestCase self::assertTrue(true); } - public function loadingFileFailsProvider(): array + public static function loadingFileFailsProvider(): array { return [ 'storage path' => ['1:/xml_imports/sys_news.xml'], @@ -188,7 +188,7 @@ class ImportTest extends AbstractImportExportTestCase self::assertEquals($renderPreviewImport, $previewData); } - public function addFilesSucceedsDataProvider(): array + public static function addFilesSucceedsDataProvider(): array { return [ ['dat' => [ diff --git a/typo3/sysext/impexp/Tests/Functional/Utility/ImportExportUtilityTest.php b/typo3/sysext/impexp/Tests/Functional/Utility/ImportExportUtilityTest.php index b82ca7a477210eb2f803002cfbb51b2f638beb4f..fcce1eff5d6c6c1fada25a0f1a40f21cb4a71527 100644 --- a/typo3/sysext/impexp/Tests/Functional/Utility/ImportExportUtilityTest.php +++ b/typo3/sysext/impexp/Tests/Functional/Utility/ImportExportUtilityTest.php @@ -23,7 +23,7 @@ use TYPO3\CMS\Impexp\Utility\ImportExportUtility; class ImportExportUtilityTest extends AbstractImportExportTestCase { - public function importFailsDataProvider(): array + public static function importFailsDataProvider(): array { return [ 'path to not existing file' => [ diff --git a/typo3/sysext/indexed_search/Tests/Functional/Utility/LikeWildcardTest.php b/typo3/sysext/indexed_search/Tests/Functional/Utility/LikeWildcardTest.php index 15f1b9ac03f124c06f9b589b55659d0d192d82b0..fd80ec704f72b2b3fa07c40d0bfdc485128fcaea 100644 --- a/typo3/sysext/indexed_search/Tests/Functional/Utility/LikeWildcardTest.php +++ b/typo3/sysext/indexed_search/Tests/Functional/Utility/LikeWildcardTest.php @@ -54,7 +54,7 @@ class LikeWildcardTest extends FunctionalTestCase * - the wildcard mode * - the expected result */ - public function getLikeQueryPartDataProvider(): array + public static function getLikeQueryPartDataProvider(): array { return [ 'no placeholders and no wildcard mode' => [ diff --git a/typo3/sysext/install/Tests/Functional/Controller/BackendModuleControllerTest.php b/typo3/sysext/install/Tests/Functional/Controller/BackendModuleControllerTest.php index 00d6c2e6ffc6a59bb655ef5e0f6b6214d7960fd3..6ab405e30d7e118de96de96e7eebc805142f0e6d 100644 --- a/typo3/sysext/install/Tests/Functional/Controller/BackendModuleControllerTest.php +++ b/typo3/sysext/install/Tests/Functional/Controller/BackendModuleControllerTest.php @@ -107,7 +107,7 @@ class BackendModuleControllerTest extends FunctionalTestCase ); } - public function environmentContextIsRespectedTestDataProvider(): \Generator + public static function environmentContextIsRespectedTestDataProvider(): \Generator { yield 'maintenance module' => ['maintenance']; yield 'settings module' => ['settings']; diff --git a/typo3/sysext/install/Tests/Functional/Service/WebServerConfigurationFileServiceTest.php b/typo3/sysext/install/Tests/Functional/Service/WebServerConfigurationFileServiceTest.php index 0621d6a6ad86394d88ae426202936e16d0f5e49e..eb3a6de286bc465a50d40bdf71d1a6eaabb701d8 100644 --- a/typo3/sysext/install/Tests/Functional/Service/WebServerConfigurationFileServiceTest.php +++ b/typo3/sysext/install/Tests/Functional/Service/WebServerConfigurationFileServiceTest.php @@ -66,7 +66,7 @@ class WebServerConfigurationFileServiceTest extends FunctionalTestCase unlink($filename); } - public function webServerConfigurationIsChangedDataProvider(): \Generator + public static function webServerConfigurationIsChangedDataProvider(): \Generator { yield '.htaccess with custom configuration - will not be changed' => [ 'Apache', diff --git a/typo3/sysext/install/Tests/Functional/Updates/FeLoginModeExtractionUpdateTest.php b/typo3/sysext/install/Tests/Functional/Updates/FeLoginModeExtractionUpdateTest.php index 25f9493de7fba7fa84130461c3e7f644e05428b3..81adf958e18c4a1bd4e8be5914e47b2efbc0f3b5 100644 --- a/typo3/sysext/install/Tests/Functional/Updates/FeLoginModeExtractionUpdateTest.php +++ b/typo3/sysext/install/Tests/Functional/Updates/FeLoginModeExtractionUpdateTest.php @@ -61,7 +61,7 @@ class FeLoginModeExtractionUpdateTest extends FunctionalTestCase self::assertEquals($updateNecessary, (new FeLoginModeExtractionUpdate())->updateNecessary()); } - public function functionalityUsedTestDataProvider(): \Generator + public static function functionalityUsedTestDataProvider(): \Generator { yield 'Column exist but functionality not used' => [ 'FeLoginModeNotUsed', diff --git a/typo3/sysext/install/Tests/Functional/UpgradeAnalysis/DocumentationFileTest.php b/typo3/sysext/install/Tests/Functional/UpgradeAnalysis/DocumentationFileTest.php index 67489d59311cbf276c1b81b1511a6aa0271c0c69..917d34164b3a98e1648bf623d10966ddddf53186 100644 --- a/typo3/sysext/install/Tests/Functional/UpgradeAnalysis/DocumentationFileTest.php +++ b/typo3/sysext/install/Tests/Functional/UpgradeAnalysis/DocumentationFileTest.php @@ -82,7 +82,7 @@ class DocumentationFileTest extends FunctionalTestCase /** * Data provider with invalid dir path. They should raise an exception and don't process. */ - public function invalidDirProvider(): array + public static function invalidDirProvider(): array { return [ ['root' => '/'], @@ -106,7 +106,7 @@ class DocumentationFileTest extends FunctionalTestCase /** * Data provider with invalid file paths. They should raise an exception and don't process. */ - public function invalidFilesProvider(): array + public static function invalidFilesProvider(): array { return [ ['/etc/passwd' => '/etc/passwd'], diff --git a/typo3/sysext/install/Tests/Functional/ViewHelpers/Format/PhpErrorCodeViewHelperTest.php b/typo3/sysext/install/Tests/Functional/ViewHelpers/Format/PhpErrorCodeViewHelperTest.php index cd99a68b2e113cd83d4c2c664098a34412b461bc..80096e0a320fad342247534f12443d6f8c2c5ad6 100644 --- a/typo3/sysext/install/Tests/Functional/ViewHelpers/Format/PhpErrorCodeViewHelperTest.php +++ b/typo3/sysext/install/Tests/Functional/ViewHelpers/Format/PhpErrorCodeViewHelperTest.php @@ -26,7 +26,7 @@ class PhpErrorCodeViewHelperTest extends FunctionalTestCase { protected bool $initializeDatabase = false; - public function errorCodesDataProvider(): array + public static function errorCodesDataProvider(): array { return [ [ diff --git a/typo3/sysext/linkvalidator/Tests/Functional/EventListener/CheckBrokenRteLinkEventListenerTest.php b/typo3/sysext/linkvalidator/Tests/Functional/EventListener/CheckBrokenRteLinkEventListenerTest.php index f44c8191a8e6a3b6f0c332fc8697c8dc5a386214..40341e0a17a15a651a47a331ec36fa1c0c69c428 100644 --- a/typo3/sysext/linkvalidator/Tests/Functional/EventListener/CheckBrokenRteLinkEventListenerTest.php +++ b/typo3/sysext/linkvalidator/Tests/Functional/EventListener/CheckBrokenRteLinkEventListenerTest.php @@ -51,7 +51,7 @@ class CheckBrokenRteLinkEventListenerTest extends FunctionalTestCase self::assertEquals($isMarkedAsBroken, $event->isBrokenLink()); } - public function checkPageLinkTestDataProvider(): \Generator + public static function checkPageLinkTestDataProvider(): \Generator { yield 'No uid parameter given' => [ 'page', diff --git a/typo3/sysext/linkvalidator/Tests/Functional/LinkAnalyzerTest.php b/typo3/sysext/linkvalidator/Tests/Functional/LinkAnalyzerTest.php index 4c0fdab4aca0f695d3f72dc0681578d330dee4c5..13ca5595bd64f2e65fa9519355f746f95dd86d72 100644 --- a/typo3/sysext/linkvalidator/Tests/Functional/LinkAnalyzerTest.php +++ b/typo3/sysext/linkvalidator/Tests/Functional/LinkAnalyzerTest.php @@ -39,7 +39,7 @@ class LinkAnalyzerTest extends FunctionalTestCase $GLOBALS['LANG'] = $this->get(LanguageServiceFactory::class)->create('default'); } - public function findAllBrokenLinksDataProvider(): array + public static function findAllBrokenLinksDataProvider(): array { return [ 'Test with one broken external link (not existing domain)' => @@ -108,7 +108,7 @@ class LinkAnalyzerTest extends FunctionalTestCase $this->assertCSVDataSet($expectedOutputFile); } - public function findFindOnlyFileBrokenLinksDataProvider(): array + public static function findFindOnlyFileBrokenLinksDataProvider(): array { return [ // Tests with one broken link @@ -160,7 +160,7 @@ class LinkAnalyzerTest extends FunctionalTestCase $this->assertCSVDataSet($expectedOutputFile); } - public function findFindOnlyPageBrokenLinksDataProvider(): array + public static function findFindOnlyPageBrokenLinksDataProvider(): array { return [ // Tests with one broken link @@ -212,7 +212,7 @@ class LinkAnalyzerTest extends FunctionalTestCase $this->assertCSVDataSet($expectedOutputFile); } - public function findFindOnlyExternalBrokenLinksDataProvider(): array + public static function findFindOnlyExternalBrokenLinksDataProvider(): array { return [ // Tests with one broken link @@ -263,7 +263,7 @@ class LinkAnalyzerTest extends FunctionalTestCase $this->assertCSVDataSet($expectedOutputFile); } - public function getLinkStatisticsFindOnlyExternalBrokenLinksInBodytextWithHugeListOfPageIdsDataProvider(): array + public static function getLinkStatisticsFindOnlyExternalBrokenLinksInBodytextWithHugeListOfPageIdsDataProvider(): array { $lagePageUidList = range(1, 200000, 1); return [ diff --git a/typo3/sysext/lowlevel/Tests/Functional/Controller/DatabaseIntegrityControllerTest.php b/typo3/sysext/lowlevel/Tests/Functional/Controller/DatabaseIntegrityControllerTest.php index bc7e5119ee14a010bd1484b3ec26436761083051..260cabf8a99de98493b39e370c4cf036ae40bd8d 100644 --- a/typo3/sysext/lowlevel/Tests/Functional/Controller/DatabaseIntegrityControllerTest.php +++ b/typo3/sysext/lowlevel/Tests/Functional/Controller/DatabaseIntegrityControllerTest.php @@ -123,7 +123,7 @@ class DatabaseIntegrityControllerTest extends FunctionalTestCase self::assertSame($expectation, $treeList); } - public function dataForGetTreeListReturnsListOfIdsWithBeginSetToZero(): array + public static function dataForGetTreeListReturnsListOfIdsWithBeginSetToZero(): array { return [ // [$id, $depth, $expectation] @@ -162,7 +162,7 @@ class DatabaseIntegrityControllerTest extends FunctionalTestCase self::assertSame($expectation, $treeList); } - public function dataForGetTreeListReturnsListOfIdsWithBeginSetToMinusOne(): array + public static function dataForGetTreeListReturnsListOfIdsWithBeginSetToMinusOne(): array { return [ // [$id, $depth, $expectation] @@ -230,7 +230,7 @@ class DatabaseIntegrityControllerTest extends FunctionalTestCase self::assertSame('3,5', $treeList); } - public function getQueryWithIdOrDateDataProvider(): array + public static function getQueryWithIdOrDateDataProvider(): array { return [ 'pid 5134' => [ diff --git a/typo3/sysext/reactions/Tests/Functional/Reaction/CreateRecordReactionTest.php b/typo3/sysext/reactions/Tests/Functional/Reaction/CreateRecordReactionTest.php index 5968953ad5420c3c3c9c3611a71c5377350c0352..d1f12305573712e840cf9ed3a0acdf7e426651a8 100644 --- a/typo3/sysext/reactions/Tests/Functional/Reaction/CreateRecordReactionTest.php +++ b/typo3/sysext/reactions/Tests/Functional/Reaction/CreateRecordReactionTest.php @@ -126,7 +126,7 @@ class CreateRecordReactionTest extends FunctionalTestCase return $this->authenticateBackendUser($backendUser, $request); } - public function replacePlaceHolderDataProvider(): array + public static function replacePlaceHolderDataProvider(): array { return [ 'no placeholders' => [ diff --git a/typo3/sysext/redirects/Tests/Functional/Service/RedirectServiceTest.php b/typo3/sysext/redirects/Tests/Functional/Service/RedirectServiceTest.php index a5c4f6284c8fbd864cbeb66e9c1eb128b0456d8f..816921fdbe74d965f113afa98d40d5e7bbd189ed 100644 --- a/typo3/sysext/redirects/Tests/Functional/Service/RedirectServiceTest.php +++ b/typo3/sysext/redirects/Tests/Functional/Service/RedirectServiceTest.php @@ -132,7 +132,7 @@ class RedirectServiceTest extends FunctionalTestCase self::assertEquals(new Uri('https://acme.com/access-restricted'), $targetUrl); } - public function redirectsDataProvider(): array + public static function redirectsDataProvider(): array { return [ [ @@ -184,7 +184,7 @@ class RedirectServiceTest extends FunctionalTestCase self::assertEquals($targetUrl, $response->getHeader('location')[0]); } - public function checkRegExpRedirectsDataProvider(): array + public static function checkRegExpRedirectsDataProvider(): array { return [ 'regexp redirect respecting query parameter but not keeping them' => [ @@ -335,7 +335,7 @@ class RedirectServiceTest extends FunctionalTestCase self::assertEquals($expectedRedirectUri, $response->getHeader('location')[0]); } - public function samePathWithSameDomainT3TargetDataProvider(): array + public static function samePathWithSameDomainT3TargetDataProvider(): array { return [ 'flat' => [ @@ -495,7 +495,7 @@ class RedirectServiceTest extends FunctionalTestCase } } - public function samePathWithSameDomainAndRelativeTargetDataProvider(): array + public static function samePathWithSameDomainAndRelativeTargetDataProvider(): array { return [ 'flat' => [ @@ -640,7 +640,7 @@ class RedirectServiceTest extends FunctionalTestCase } } - public function samePathRedirectsWithExternalTargetDataProvider(): array + public static function samePathRedirectsWithExternalTargetDataProvider(): array { return [ 'flat' => [ diff --git a/typo3/sysext/seo/Tests/Functional/Canonical/CanonicalGeneratorTest.php b/typo3/sysext/seo/Tests/Functional/Canonical/CanonicalGeneratorTest.php index 3330920aeb57da6d63bc90728492f357c7076587..a37054ab2deb32cd9ac0acd025d11ad87c3391d8 100644 --- a/typo3/sysext/seo/Tests/Functional/Canonical/CanonicalGeneratorTest.php +++ b/typo3/sysext/seo/Tests/Functional/Canonical/CanonicalGeneratorTest.php @@ -67,7 +67,7 @@ class CanonicalGeneratorTest extends FunctionalTestCase ); } - public function generateDataProvider(): array + public static function generateDataProvider(): array { return [ 'uid: 1 with canonical_link' => [ diff --git a/typo3/sysext/seo/Tests/Functional/HrefLang/HrefLangGeneratorTest.php b/typo3/sysext/seo/Tests/Functional/HrefLang/HrefLangGeneratorTest.php index 848db859f08830236326cfda76cbd0a3ee2c8105..dd9ba5afe2516463342857ad53368140ba025f4b 100644 --- a/typo3/sysext/seo/Tests/Functional/HrefLang/HrefLangGeneratorTest.php +++ b/typo3/sysext/seo/Tests/Functional/HrefLang/HrefLangGeneratorTest.php @@ -97,7 +97,7 @@ class HrefLangGeneratorTest extends FunctionalTestCase } } - public function checkHrefLangOutputDataProvider(): array + public static function checkHrefLangOutputDataProvider(): array { return [ 'No translation available, so only hreflang tags expected for default language and fallback languages' => [ diff --git a/typo3/sysext/seo/Tests/Functional/MetaTag/MetaTagTest.php b/typo3/sysext/seo/Tests/Functional/MetaTag/MetaTagTest.php index efbea8f9ab6067c60470a3e67f37a90f1f14c4f6..d5d0077afec2079d2b0e1fe0145d92f44d8d3edb 100644 --- a/typo3/sysext/seo/Tests/Functional/MetaTag/MetaTagTest.php +++ b/typo3/sysext/seo/Tests/Functional/MetaTag/MetaTagTest.php @@ -41,7 +41,7 @@ class MetaTagTest extends AbstractTestCase ); } - public function ensureMetaDataAreCorrectDataProvider(): array + public static function ensureMetaDataAreCorrectDataProvider(): array { return [ 'page with twitter_card in page properties' => [ diff --git a/typo3/sysext/seo/Tests/Functional/XmlSitemap/XmlSitemapPagesTest.php b/typo3/sysext/seo/Tests/Functional/XmlSitemap/XmlSitemapPagesTest.php index 5dbdfd2e583ae968868f5e7775a419d8094db7a0..0c9dcda1673150a12bd411de0eedc847712cda33 100644 --- a/typo3/sysext/seo/Tests/Functional/XmlSitemap/XmlSitemapPagesTest.php +++ b/typo3/sysext/seo/Tests/Functional/XmlSitemap/XmlSitemapPagesTest.php @@ -97,7 +97,7 @@ class XmlSitemapPagesTest extends AbstractXmlSitemapPagesTest ); } - public function pagesToCheckDataProvider(): array //18-03-2019 21:24:07 + public static function pagesToCheckDataProvider(): array //18-03-2019 21:24:07 { return [ 'complete-entry' => ['#<url>\s+<loc>http://localhost/complete\-entry</loc>\s+<lastmod>\d+-\d+-\d+T\d+:\d+:\d+\+\d+:\d+</lastmod>\s+<changefreq>daily</changefreq>\s+<priority>0\.7</priority>\s+</url>#'], diff --git a/typo3/sysext/seo/Tests/Functional/XmlSitemap/XmlSitemapRecordsTest.php b/typo3/sysext/seo/Tests/Functional/XmlSitemap/XmlSitemapRecordsTest.php index 104db56603f3095f2067bce53aa9b268718bc422..d2e3fadf40a36a76c7eb31653355857f0fa24847 100644 --- a/typo3/sysext/seo/Tests/Functional/XmlSitemap/XmlSitemapRecordsTest.php +++ b/typo3/sysext/seo/Tests/Functional/XmlSitemap/XmlSitemapRecordsTest.php @@ -103,7 +103,7 @@ class XmlSitemapRecordsTest extends AbstractTestCase /** * @return array[] */ - public function sitemapEntriesToCheck(): array + public static function sitemapEntriesToCheck(): array { return [ 'default-language' => [ @@ -219,7 +219,7 @@ class XmlSitemapRecordsTest extends AbstractTestCase /** * @return array[] */ - public function additionalWhereTypoScriptConfigurationsToCheck(): array + public static function additionalWhereTypoScriptConfigurationsToCheck(): array { return [ [ diff --git a/typo3/sysext/seo/Tests/Functional/XmlSitemap/XmlSitemapXslTest.php b/typo3/sysext/seo/Tests/Functional/XmlSitemap/XmlSitemapXslTest.php index b3cf9645e9b9a74203d8deaf75505953145c39eb..d0cb01b1e8c959d821faef4c84f30f376488fe52 100644 --- a/typo3/sysext/seo/Tests/Functional/XmlSitemap/XmlSitemapXslTest.php +++ b/typo3/sysext/seo/Tests/Functional/XmlSitemap/XmlSitemapXslTest.php @@ -82,7 +82,7 @@ class XmlSitemapXslTest extends AbstractTestCase self::assertMatchesRegularExpression('/<\?xml-stylesheet type="text\/xsl" href="' . $xslFilePath . '"\?>/', (string)$response->getBody()); } - public function getXslFilePathsDataProvider(): array + public static function getXslFilePathsDataProvider(): array { return [ [