From 654b1f2074ea90b75a8750f2bc1ad0b398708206 Mon Sep 17 00:00:00 2001 From: Dave Long Date: Wed, 14 Feb 2024 13:38:28 +0000 Subject: [PATCH] Issue #3353210 by mondrake, PrabuEla, Spokje: [PHPUnit 10] @dataProvider methods must be declared static and public --- .../tests/src/Kernel/AnnounceFetcherTest.php | 2 +- .../src/Unit/AnnounceFetcherUnitTest.php | 2 +- .../migrate/source/d7/BlockedIpsTest.php | 2 +- .../Placeholder/BigPipeStrategyTest.php | 2 +- .../StackMiddleware/ContentLengthTest.php | 2 +- .../Plugin/migrate/source/BlockTest.php | 2 +- .../source/d6/BlockTranslationTest.php | 2 +- .../source/d7/BlockTranslationTest.php | 2 +- .../tests/src/Unit/BlockRepositoryTest.php | 2 +- .../src/Unit/CategoryAutocompleteTest.php | 2 +- .../src/Unit/Menu/BlockLocalTasksTest.php | 2 +- .../DisplayVariant/BlockPageVariantTest.php | 2 +- .../migrate/process/BlockSettingsTest.php | 2 +- .../Kernel/BlockContentAccessHandlerTest.php | 2 +- ...ockContentEntityReferenceSelectionTest.php | 2 +- .../Plugin/migrate/source/d6/BoxTest.php | 2 +- .../migrate/source/d6/BoxTranslationTest.php | 2 +- .../migrate/source/d7/BlockCustomTest.php | 2 +- .../source/d7/BlockCustomTranslationTest.php | 2 +- .../src/Unit/Access/DependentAccessTest.php | 2 +- .../Unit/Menu/BlockContentLocalTasksTest.php | 2 +- .../tests/src/Kernel/BookMultilingualTest.php | 2 +- .../Migrate/d6/MigrateBookConfigsTest.php | 2 +- .../Kernel/Plugin/migrate/source/BookTest.php | 2 +- .../book/tests/src/Unit/BookManagerTest.php | 2 +- .../src/Unit/Menu/BookLocalTasksTest.php | 4 ++-- .../CKEditor5UpdateImageToolbarItemTest.php | 2 +- .../FunctionalJavascript/ImageTestBase.php | 10 ++++---- .../src/FunctionalJavascript/LanguageTest.php | 2 +- .../MediaLinkabilityTest.php | 2 +- .../FunctionalJavascript/MediaPreviewTest.php | 2 +- .../src/FunctionalJavascript/MediaTest.php | 2 +- .../SourceEditingTest.php | 2 +- .../src/Kernel/CKEditor5PluginManagerTest.php | 6 ++--- .../src/Kernel/CKEditor5StylesheetsTest.php | 2 +- .../src/Kernel/SmartDefaultSettingsTest.php | 2 +- .../tests/src/Kernel/ValidatorsTest.php | 4 ++-- .../src/Kernel/WildcardHtmlSupportTest.php | 2 +- .../tests/src/Unit/AlignmentPluginTest.php | 2 +- .../tests/src/Unit/CKEditor5Test.php | 2 +- .../tests/src/Unit/HTMLRestrictionsTest.php | 12 +++++----- .../tests/src/Unit/HeadingPluginTest.php | 2 +- .../tests/src/Unit/ListPluginTest.php | 2 +- .../src/Unit/SmartDefaultSettingsTest.php | 4 ++-- .../src/Unit/SourceEditingPluginTest.php | 2 +- .../tests/src/Unit/StylePluginTest.php | 2 +- .../tests/src/Kernel/CommentOrphanTest.php | 2 +- .../Migrate/d6/MigrateCommentTypeTest.php | 2 +- ...EntityTranslationCheckRequirementsTest.php | 2 +- .../Migrate/d7/MigrateCommentTypeTest.php | 2 +- .../source/CommentTypeRequirementsTest.php | 2 +- .../Plugin/migrate/source/CommentTypeTest.php | 2 +- .../d6/CommentSourceWithHighWaterTest.php | 2 +- .../Plugin/migrate/source/d6/CommentTest.php | 2 +- .../d7/CommentEntityTranslationTest.php | 2 +- .../Plugin/migrate/source/d7/CommentTest.php | 2 +- .../src/Unit/Menu/ConfigLocalTasksTest.php | 2 +- .../source/d6/ProfileFieldTranslationTest.php | 2 +- .../tests/src/Unit/ConfigNamesMapperTest.php | 6 ++--- .../migrate/source/ContactCategoryTest.php | 2 +- .../migrate/source/d6/ContactSettingsTest.php | 2 +- .../src/Functional/ModerationActionsTest.php | 2 +- .../ViewsModerationStateFilterTest.php | 2 +- .../ContentModerationPermissionsTest.php | 2 +- .../src/Kernel/ContentModerationStateTest.php | 4 ++-- .../EntityStateChangeValidationTest.php | 2 +- .../tests/src/Kernel/EntityTypeInfoTest.php | 2 +- .../src/Kernel/ModerationInformationTest.php | 2 +- .../ModerationStateFieldItemListTest.php | 6 ++--- .../tests/src/Kernel/StateFormatterTest.php | 2 +- .../WorkspacesContentModerationStateTest.php | 2 +- .../ContentModerationRouteSubscriberTest.php | 2 +- .../tests/src/Unit/ContentPreprocessTest.php | 2 +- .../src/Unit/LatestRevisionCheckTest.php | 2 +- .../src/Unit/ModerationInformationTest.php | 2 +- .../Unit/StateTransitionValidationTest.php | 2 +- .../Kernel/ContentTranslationHandlerTest.php | 2 +- .../d7/EntityTranslationSettingsTest.php | 2 +- .../Menu/ContentTranslationLocalTasksTest.php | 2 +- .../tests/src/Kernel/ContextualUnitTest.php | 2 +- .../tests/src/Kernel/DateTimeItemTest.php | 4 ++-- .../Plugin/migrate/field/DateFieldTest.php | 2 +- .../src/Unit/EditorXssFilter/StandardTest.php | 4 ++-- .../src/Kernel/Number/NumberItemTest.php | 4 ++-- ...nstanceLabelDescriptionTranslationTest.php | 2 +- .../d6/FieldInstanceOptionTranslationTest.php | 2 +- .../d6/FieldInstancePerFormDisplayTest.php | 2 +- .../d6/FieldInstancePerViewModeTest.php | 2 +- .../migrate/source/d6/FieldInstanceTest.php | 2 +- .../source/d6/FieldOptionTranslationTest.php | 2 +- .../Plugin/migrate/source/d6/FieldTest.php | 2 +- ...nstanceLabelDescriptionTranslationTest.php | 2 +- .../d7/FieldInstancePerFormDisplayTest.php | 2 +- .../d7/FieldInstancePerViewModeTest.php | 2 +- .../migrate/source/d7/FieldInstanceTest.php | 2 +- .../source/d7/FieldOptionTranslationTest.php | 2 +- .../Plugin/migrate/source/d7/FieldTest.php | 2 +- .../Plugin/migrate/source/d7/ViewModeTest.php | 2 +- .../Unit/FieldStorageConfigEntityUnitTest.php | 2 +- .../migrate/process/ProcessFieldTest.php | 2 +- .../process/d6/FieldInstanceSettingsTest.php | 2 +- .../migrate/process/d6/FieldSettingsTest.php | 2 +- .../ManageFieldsMultipleTypesTest.php | 2 +- .../DisplayModeBundleSelectionTest.php | 2 +- .../src/Unit/FieldConfigEditFormTest.php | 2 +- .../tests/src/Unit/FieldUiTableTest.php | 2 +- .../src/Kernel/FileItemValidationTest.php | 2 +- .../tests/src/Kernel/LegacyValidatorTest.php | 2 +- .../FileExtensionConstraintValidatorTest.php | 2 +- .../Plugin/migrate/source/d6/FileTest.php | 2 +- .../migrate/source/d6/UploadInstanceTest.php | 2 +- .../Plugin/migrate/source/d6/UploadTest.php | 2 +- .../Plugin/migrate/source/d7/FileTest.php | 2 +- .../Validation/UploadedFileValidatorTest.php | 2 +- .../Plugin/migrate/field/d6/FileFieldTest.php | 2 +- .../Plugin/migrate/field/d7/FileFieldTest.php | 2 +- .../file/tests/src/Unit/SanitizeNameTest.php | 2 +- .../ContentDispositionFilenameParserTest.php | 2 +- .../Plugin/migrate/process/FilterIdTest.php | 2 +- .../migrate/process/FilterSettingsTest.php | 2 +- .../migrate/source/d6/FilterFormatTest.php | 2 +- .../migrate/source/d7/FilterFormatTest.php | 2 +- .../filter/tests/src/Unit/FilterHtmlTest.php | 2 +- .../src/Unit/FilterImageLazyLoadTest.php | 2 +- .../src/Functional/ImageFieldValidateTest.php | 2 +- .../ImageStyleCustomStreamWrappersTest.php | 2 +- .../source/d6/ImageCachePresetTest.php | 2 +- .../migrate/source/d7/ImageStylesTest.php | 2 +- .../DenyPrivateImageStyleDownloadTest.php | 2 +- .../Functional/ExternalNormalizersTest.php | 2 +- .../jsonapi/tests/src/Functional/TermTest.php | 2 +- .../src/Kernel/Context/FieldResolverTest.php | 8 +++---- .../JsonApiDocumentTopLevelNormalizerTest.php | 2 +- .../LinkCollectionNormalizerTest.php | 2 +- .../Normalizer/RelationshipNormalizerTest.php | 2 +- .../tests/src/Kernel/Query/FilterTest.php | 2 +- .../ResourceType/RelatedResourceTypesTest.php | 4 ++-- .../ResourceTypeRepositoryTest.php | 4 ++-- .../ResourceResponseValidatorTest.php | 2 +- .../JsonApiDocumentTopLevelNormalizerTest.php | 4 ++-- .../ResourceIdentifierNormalizerTest.php | 4 ++-- .../Unit/Query/EntityConditionGroupTest.php | 2 +- .../src/Unit/Query/EntityConditionTest.php | 4 ++-- .../tests/src/Unit/Query/OffsetPageTest.php | 2 +- .../jsonapi/tests/src/Unit/Query/SortTest.php | 4 ++-- .../tests/src/Unit/Routing/RoutesTest.php | 4 ++-- .../Plugin/migrate/source/LanguageTest.php | 2 +- .../source/d6/LanguageContentSettingsTest.php | 2 +- ...eContentTaxonomyVocabularySettingsTest.php | 2 +- .../source/d7/LanguageContentSettingsTest.php | 2 +- ...eContentTaxonomyVocabularySettingsTest.php | 2 +- .../Unit/ContentLanguageSettingsUnitTest.php | 2 +- .../src/Unit/LanguageNegotiationUrlTest.php | 6 ++--- .../src/Unit/Menu/LanguageLocalTasksTest.php | 2 +- .../Functional/LayoutBuilderAccessTest.php | 4 ++-- .../src/Functional/LayoutSectionTest.php | 2 +- .../FunctionalJavascript/InlineBlockTest.php | 2 +- .../src/Kernel/DefaultsSectionStorageTest.php | 2 +- .../tests/src/Kernel/FieldBlockTest.php | 6 ++--- .../LayoutBuilderEntityViewDisplayTest.php | 2 +- .../Kernel/LayoutEntityHelperTraitTest.php | 4 ++-- .../Kernel/OverridesSectionStorageTest.php | 2 +- .../tests/src/Kernel/SectionListTestBase.php | 2 +- .../Unit/BlockComponentRenderArrayTest.php | 2 +- .../src/Unit/DefaultsSectionStorageTest.php | 2 +- .../LayoutBuilderIsActiveCacheContextTest.php | 2 +- .../src/Unit/OverridesSectionStorageTest.php | 2 +- .../src/Unit/SectionStorageManagerTest.php | 2 +- .../tests/src/Unit/SectionTest.php | 8 +++---- .../tests/src/Kernel/LayoutTest.php | 2 +- .../LinkFieldFormStatesTest.php | 2 +- ...ternalProtocolsConstraintValidatorTest.php | 2 +- .../Plugin/migrate/process/FieldLinkTest.php | 2 +- .../src/Functional/LocaleLocaleLookupTest.php | 2 +- .../tests/src/Unit/LocaleLookupTest.php | 6 ++--- .../src/Unit/Menu/LocaleLocalTasksTest.php | 2 +- .../FieldFormatter/OEmbedFormatterTest.php | 2 +- .../Functional/MediaUiReferenceWidgetTest.php | 2 +- .../src/Functional/ProviderRepositoryTest.php | 4 ++-- .../src/Functional/ResourceFetcherTest.php | 2 +- .../tests/src/Functional/UrlResolverTest.php | 4 ++-- .../Kernel/MediaAccessControlHandlerTest.php | 4 ++-- .../tests/src/Kernel/MediaEmbedFilterTest.php | 10 ++++---- .../MediaEmbedFilterTranslationTest.php | 2 +- .../Kernel/MediaThumbnailFormatterTest.php | 2 +- .../tests/src/Kernel/OEmbedSourceTest.php | 2 +- .../tests/src/Unit/IFrameUrlHelperTest.php | 2 +- .../tests/src/Unit/ProviderRepositoryTest.php | 2 +- .../media/tests/src/Unit/ResourceTest.php | 2 +- .../EmbeddedFormWidgetTest.php | 2 +- .../WidgetOverflowTest.php | 2 +- .../src/Kernel/MediaLibraryAccessTest.php | 4 ++-- .../src/Kernel/MediaLibraryStateTest.php | 4 ++-- .../Plugin/migrate/process/LinkUriTest.php | 6 ++--- .../Plugin/migrate/source/MenuLinkTest.php | 2 +- .../source/d6/MenuLinkTranslationTest.php | 2 +- .../source/d7/MenuLinkLocalizedTest.php | 2 +- .../source/d7/MenuLinkTranslationTest.php | 2 +- .../MenuUiContentTranslationTest.php | 2 +- .../src/Kernel/HighWaterNotJoinableTest.php | 2 +- .../src/Kernel/MigrateSourceTestBase.php | 2 +- .../src/Kernel/MigrationPluginManagerTest.php | 2 +- .../MigrationPluginConfigurationTest.php | 2 +- .../Plugin/MigrationProvidersExistTest.php | 2 +- .../tests/src/Kernel/Plugin/MigrationTest.php | 2 +- .../src/Kernel/Plugin/id_map/SqlTest.php | 4 ++-- .../source/MigrateSqlSourceCountCacheTest.php | 2 +- .../migrate/tests/src/Kernel/SqlBaseTest.php | 2 +- .../tests/src/Kernel/process/ExtractTest.php | 2 +- .../tests/src/Kernel/process/FileCopyTest.php | 2 +- .../Kernel/process/HandleMultiplesTest.php | 2 +- .../tests/src/Kernel/process/RouteTest.php | 4 ++-- .../tests/src/Unit/MigrateExecutableTest.php | 2 +- .../tests/src/Unit/MigrateLookupTest.php | 4 ++-- .../tests/src/Unit/MigrateSqlIdMapTest.php | 12 +++++----- .../src/Unit/MigrationPluginManagerTest.php | 2 +- .../migrate/tests/src/Unit/MigrationTest.php | 4 ++-- .../migrate/tests/src/Unit/RowTest.php | 4 ++-- .../migrate/tests/src/Unit/SqlBaseTest.php | 2 +- .../tests/src/Unit/process/CallbackTest.php | 6 ++--- .../src/Unit/process/DefaultValueTest.php | 2 +- .../tests/src/Unit/process/ExplodeTest.php | 2 +- .../tests/src/Unit/process/ExtractTest.php | 4 ++-- .../tests/src/Unit/process/FileCopyTest.php | 2 +- .../tests/src/Unit/process/FlattenTest.php | 4 ++-- .../tests/src/Unit/process/FormatDateTest.php | 2 +- .../tests/src/Unit/process/GetTest.php | 2 +- .../tests/src/Unit/process/LogTest.php | 2 +- .../src/Unit/process/MachineNameTest.php | 2 +- .../process/MakeUniqueEntityFieldTest.php | 2 +- .../src/Unit/process/MenuLinkParentTest.php | 4 ++-- .../src/Unit/process/MigrationLookupTest.php | 6 ++--- .../src/Unit/process/NullCoalesceTest.php | 4 ++-- .../tests/src/Unit/process/SubProcessTest.php | 6 ++--- .../tests/src/Unit/process/SubstrTest.php | 2 +- .../tests/src/Unit/process/UrlEncodeTest.php | 2 +- .../Kernel/MigrateFieldPluginManagerTest.php | 2 +- .../NodeMigrationTypePluginAlterTest.php | 2 +- .../source/ContentEntityConstructorTest.php | 2 +- .../migrate/source/ContentEntityTest.php | 2 +- .../migrate/source/VariableMultiRowTest.php | 2 +- .../Plugin/migrate/source/VariableTest.php | 2 +- .../source/d6/VariableTranslationTest.php | 2 +- .../source/d7/VariableTranslationTest.php | 2 +- .../Plugin/migrate/source/d8/ConfigTest.php | 2 +- .../src/Kernel/d6/FieldDiscoveryTest.php | 2 +- .../src/Kernel/d7/FieldDiscoveryTest.php | 2 +- .../src/Kernel/d7/FollowUpMigrationsTest.php | 2 +- .../tests/src/Unit/FieldDiscoveryTest.php | 8 +++---- .../Unit/MigrateFieldPluginManagerTest.php | 2 +- .../Unit/MigrationConfigurationTraitTest.php | 2 +- .../tests/src/Unit/MigrationStateUnitTest.php | 2 +- .../src/Unit/source/DrupalSqlBaseTest.php | 2 +- .../src/Functional/CredentialFormTest.php | 2 +- .../src/Functional/SourceProviderTest.php | 2 +- .../tests/src/Functional/d7/FilePathTest.php | 2 +- .../src/FunctionalJavascript/SettingsTest.php | 2 +- .../mysql/tests/src/Unit/ConnectionTest.php | 2 +- .../mysql/tests/src/Unit/InstallTasksTest.php | 2 +- .../migrate/source/d6/NodeByNodeTypeTest.php | 2 +- .../source/d6/NodeRevisionByNodeTypeTest.php | 2 +- .../migrate/source/d6/NodeRevisionTest.php | 2 +- .../Plugin/migrate/source/d6/NodeTest.php | 2 +- .../migrate/source/d6/NodeTranslationTest.php | 2 +- .../Plugin/migrate/source/d6/NodeTypeTest.php | 2 +- .../Plugin/migrate/source/d6/ViewModeTest.php | 2 +- .../source/d7/NodeEntityTranslationTest.php | 2 +- .../Plugin/migrate/source/d7/NodeTest.php | 2 +- .../migrate/source/d7/NodeTranslationTest.php | 2 +- .../Plugin/migrate/source/d7/NodeTypeTest.php | 2 +- .../src/Unit/NodeOperationAccessTest.php | 2 +- .../Unit/PageCache/DenyNodePreviewTest.php | 2 +- .../OptionsFieldUITest.php | 2 +- .../Plugin/migrate/source/d6/UrlAliasTest.php | 2 +- .../Plugin/migrate/source/d7/UrlAliasTest.php | 2 +- .../migrate/process/PathSetTranslatedTest.php | 2 +- .../PathProcessor/AliasPathProcessorTest.php | 2 +- .../pgsql/tests/src/Unit/SchemaTest.php | 2 +- .../tests/src/Unit/PasswordVerifyTest.php | 2 +- .../source/d7/ResponsiveImageStylesTest.php | 2 +- .../Kernel/Entity/ConfigDependenciesTest.php | 4 ++-- .../ResourceResponseSubscriberTest.php | 4 ++-- .../tests/src/Unit/ComponentMetadataTest.php | 2 +- .../Unit/SchemaCompatibilityCheckerTest.php | 2 +- .../sdc/tests/src/Unit/UtilitiesTest.php | 2 +- .../src/Kernel/Migrate/d6/SearchPageTest.php | 2 +- .../src/Kernel/Migrate/d7/SearchPageTest.php | 2 +- .../src/Kernel/FieldItemSerializationTest.php | 2 +- .../DateTimeIso8601NormalizerTest.php | 4 ++-- .../Normalizer/DateTimeNormalizerTest.php | 4 ++-- .../Unit/Normalizer/NormalizerBaseTest.php | 2 +- .../PrimitiveDataNormalizerTest.php | 2 +- .../Normalizer/TimestampNormalizerTest.php | 2 +- .../migrate/source/d7/ShortcutSetTest.php | 2 +- .../source/d7/ShortcutSetUsersTest.php | 2 +- .../Plugin/migrate/source/d7/ShortcutTest.php | 2 +- .../src/Unit/Menu/ShortcutLocalTasksTest.php | 2 +- .../sqlite/tests/src/Unit/ConnectionTest.php | 2 +- .../Plugin/migrate/source/NodeCounterTest.php | 2 +- .../src/Unit/StatisticsViewsResultTest.php | 2 +- .../Rest/EntityTestTextItemNormalizerTest.php | 2 +- .../TimeZoneAbbreviationRouteTest.php | 2 +- .../src/Functional/Theme/ThemeUiTest.php | 2 +- .../UpdateSystem/UpdateScriptTest.php | 4 ++-- .../ThemeSettingsFormTest.php | 2 +- .../src/Kernel/Block/SystemMenuBlockTest.php | 2 +- .../DateFormatAccessControlHandlerTest.php | 2 +- ...ityReferenceSelectionReferenceableTest.php | 2 +- .../InstallTranslationFilePatternTest.php | 4 ++-- .../Plugin/migrate/source/ActionTest.php | 2 +- .../Plugin/migrate/source/ExtensionTest.php | 2 +- .../Kernel/Plugin/migrate/source/MenuTest.php | 2 +- .../migrate/source/d7/MenuTranslationTest.php | 2 +- .../migrate/source/d7/ThemeSettingsTest.php | 2 +- .../SecurityAdvisoriesFetcherTest.php | 4 ++-- .../PathBasedBreadcrumbBuilderTest.php | 2 +- .../SecurityFileUploadEventSubscriberTest.php | 4 ++-- .../tests/src/Unit/Menu/MenuLinkTreeTest.php | 2 +- .../src/Unit/Menu/SystemLocalTasksTest.php | 2 +- .../Unit/Routing/AdminRouteSubscriberTest.php | 2 +- .../SecurityAdvisoryTest.php | 6 ++--- .../MachineNameControllerTest.php | 2 +- .../Functional/Rest/TermResourceTestBase.php | 2 +- .../d6/TermLocalizedTranslationTest.php | 2 +- .../Plugin/migrate/source/d6/TermNodeTest.php | 2 +- .../d6/TermSourceWithVocabularyFilterTest.php | 2 +- .../Plugin/migrate/source/d6/TermTest.php | 2 +- .../migrate/source/d6/TermTranslationTest.php | 2 +- .../source/d6/VocabularyPerTypeTest.php | 2 +- .../migrate/source/d6/VocabularyTest.php | 2 +- .../source/d6/VocabularyTranslationTest.php | 2 +- .../source/d7/TermEntityTranslationTest.php | 2 +- .../d7/TermLocalizedTranslationTest.php | 2 +- .../d7/TermSourceWithVocabularyFilterTest.php | 2 +- .../Plugin/migrate/source/d7/TermTest.php | 2 +- .../migrate/source/d7/TermTranslationTest.php | 2 +- .../migrate/source/d7/VocabularyTest.php | 2 +- .../source/d7/VocabularyTranslationTest.php | 2 +- .../src/Unit/Menu/TaxonomyLocalTasksTest.php | 2 +- .../src/Functional/TelephoneFieldTest.php | 2 +- .../tests/src/Kernel/TextItemBaseTest.php | 2 +- .../Plugin/migrate/field/d6/TextFieldTest.php | 2 +- .../Plugin/migrate/field/d7/TextFieldTest.php | 2 +- .../Unit/PageCache/AllowToolbarPathTest.php | 2 +- .../tour/tests/src/Unit/Entity/TourTest.php | 2 +- .../migrate/source/d7/TrackerNodeTest.php | 2 +- .../migrate/source/d7/TrackerUserTest.php | 2 +- .../FileTransferAuthorizeFormTest.php | 2 +- .../src/Functional/UpdateContribTest.php | 2 +- .../Functional/UpdateManagerUpdateTest.php | 2 +- .../UpdateSemverCoreSecurityCoverageTest.php | 2 +- .../tests/src/Kernel/UpdateReportTest.php | 2 +- .../src/Unit/Menu/UpdateLocalTasksTest.php | 6 ++--- .../src/Unit/ProjectCoreCompatibilityTest.php | 2 +- .../tests/src/Unit/ProjectReleaseTest.php | 6 ++--- .../tests/src/Unit/UpdateFetcherTest.php | 2 +- .../update/tests/src/Unit/UpdateMailTest.php | 2 +- .../src/Functional/UserPasswordResetTest.php | 2 +- .../Kernel/Migrate/d6/MigrateUserRoleTest.php | 2 +- .../migrate/source/ProfileFieldTest.php | 2 +- .../source/UserPictureInstanceTest.php | 2 +- .../d6/ProfileFieldOptionTranslationTest.php | 2 +- .../source/d6/ProfileFieldValuesTest.php | 2 +- .../Plugin/migrate/source/d6/RoleTest.php | 2 +- .../migrate/source/d6/UserPictureFileTest.php | 2 +- .../migrate/source/d6/UserPictureTest.php | 2 +- .../Plugin/migrate/source/d6/UserTest.php | 2 +- .../Plugin/migrate/source/d7/RoleTest.php | 2 +- .../source/d7/UserEntityTranslationTest.php | 2 +- .../Plugin/migrate/source/d7/UserTest.php | 2 +- .../tests/src/Kernel/UserMailDefaultsTest.php | 2 +- .../tests/src/Kernel/UserMailNotifyTest.php | 2 +- .../Unit/Form/EntityPermissionsFormTest.php | 2 +- .../src/Unit/Menu/UserLocalTasksTest.php | 6 ++--- .../src/Unit/PermissionAccessCheckTest.php | 2 +- .../src/Unit/Theme/AdminNegotiatorTest.php | 2 +- .../src/Unit/UserAccessControlHandlerTest.php | 12 +++++----- .../user/tests/src/Unit/UserAuthTest.php | 2 +- .../user/tests/src/Unit/UserNameItemTest.php | 2 +- .../src/Functional/Plugin/ExposedFormTest.php | 2 +- .../src/Kernel/Handler/FieldNumericTest.php | 2 +- .../src/Kernel/Handler/FilterNumericTest.php | 2 +- .../Kernel/Plugin/StyleGridResponsiveTest.php | 2 +- .../tests/src/Unit/Plugin/area/EntityTest.php | 2 +- .../tests/src/Unit/Plugin/area/ResultTest.php | 2 +- .../argument_default/QueryParameterTest.php | 2 +- .../src/Unit/Plugin/field/CounterTest.php | 2 +- .../Unit/Plugin/field/FieldPluginBaseTest.php | 8 +++---- .../tests/src/Unit/Plugin/field/FieldTest.php | 4 ++-- .../Plugin/filter/FilterPluginBaseTest.php | 2 +- .../Unit/Plugin/pager/PagerPluginBaseTest.php | 2 +- .../Plugin/views/query/MysqlDateSqlTest.php | 2 +- .../views/query/PostgresqlDateSqlTest.php | 2 +- .../Plugin/views/query/SqliteDateSqlTest.php | 2 +- .../views/tests/src/Unit/PluginBaseTest.php | 6 ++--- .../tests/src/Unit/ViewExecutableTest.php | 6 ++--- .../views/tests/src/Unit/ViewsDataTest.php | 2 +- .../views/tests/src/Unit/ViewsTest.php | 2 +- .../tests/src/Unit/WizardPluginBaseTest.php | 2 +- .../views_ui/tests/src/Kernel/TagTest.php | 2 +- .../WorkflowAccessControlHandlerTest.php | 2 +- ...ateTransitionOperationsAccessCheckTest.php | 4 ++-- .../tests/src/Kernel/WorkspaceAccessTest.php | 2 +- .../src/Kernel/WorkspaceIntegrationTest.php | 2 +- .../src/Unit/ActiveWorkspaceCheckTest.php | 2 +- .../Component/ComponentsTaggedReleaseTest.php | 2 +- .../Template/ComposerProjectTemplatesTest.php | 2 +- .../Ajax/FormValuesTest.php | 2 +- .../MachineNameTransliterationTest.php | 2 +- .../Entity/RevisionDeleteFormTest.php | 4 ++-- .../Entity/RevisionRevertFormTest.php | 4 ++-- .../Entity/RevisionViewTest.php | 2 +- .../Libraries/JqueryUiLibraryAssetsTest.php | 2 +- .../Routing/RouteCachingLanguageTest.php | 2 +- .../Render/FormattableMarkupKernelTest.php | 4 ++-- .../KernelTests/Config/DefaultConfigTest.php | 2 +- .../KernelTests/Config/Schema/MappingTest.php | 2 +- .../Core/Asset/DeprecatedAssetsTest.php | 2 +- .../Core/Config/ConfigDependencyTest.php | 2 +- .../Config/ConfigEntityValidationTestBase.php | 2 +- .../Core/Config/SchemaCheckTraitTest.php | 2 +- .../Config/SimpleConfigValidationTest.php | 2 +- .../Storage/StorageReplaceDataWrapperTest.php | 2 +- .../Database/DriverSpecificSchemaTestBase.php | 2 +- .../KernelTests/Core/Database/LoggingTest.php | 2 +- .../Core/Database/SelectExtenderTest.php | 2 +- .../Core/Database/SelectLeastTest.php | 2 +- .../KernelTests/Core/Database/SelectTest.php | 4 ++-- .../Core/Datetime/DatetimeElementFormTest.php | 2 +- .../Core/DrupalKernel/DrupalKernelTest.php | 2 +- .../Entity/ContentEntityStorageBaseTest.php | 2 +- .../Entity/EntityAccessControlHandlerTest.php | 2 +- ...ntityDecoupledTranslationRevisionsTest.php | 4 ++-- .../Entity/EntityDefinitionUpdateTest.php | 4 ++-- .../Core/Entity/EntityDeriverTest.php | 2 +- .../Core/Entity/EntityKeysTest.php | 2 +- .../Core/Entity/EntitySchemaTest.php | 2 +- .../Entity/EntityTypedDataDefinitionTest.php | 2 +- .../FieldableEntityDefinitionUpdateTest.php | 2 +- .../Core/Entity/RevisionRouteProviderTest.php | 2 +- .../Core/Extension/ModuleInstallerTest.php | 2 +- .../Field/Entity/BaseFieldOverrideTest.php | 2 +- .../Core/File/FileUrlGeneratorTest.php | 2 +- .../Core/File/UrlTransformRelativeTest.php | 2 +- .../KernelTests/Core/Image/ToolkitGdTest.php | 4 ++-- .../Installer/InstallerRedirectTraitTest.php | 2 +- .../Core/Layout/IconBuilderTest.php | 2 +- .../Core/Pager/PagerManagerTest.php | 2 +- .../Plugin/Condition/ResponseStatusTest.php | 2 +- .../Core/Plugin/ContextTypedDataTest.php | 2 +- .../Core/Routing/RouteProviderTest.php | 4 ++-- .../StreamWrapperManagerTest.php | 2 +- .../MarkupInterfaceComparatorTest.php | 4 ++-- .../KernelTests/Core/Theme/RegistryTest.php | 2 +- .../Core/Theme/ThemeInstallerTest.php | 2 +- .../Theme/ThemeRenderAndAutoescapeTest.php | 2 +- .../Core/Theme/TwigMarkupInterfaceTest.php | 2 +- .../Annotation/Doctrine/DocParserTest.php | 8 +++---- .../Component/Assertion/InspectorTest.php | 2 +- .../Component/Datetime/DateTimePlusTest.php | 24 +++++++++---------- .../Dumper/OptimizedPhpArrayDumperTest.php | 8 +++---- .../Component/Diff/DiffFormatterTest.php | 2 +- .../Diff/DiffOpOutputBuilderTest.php | 2 +- .../Component/Diff/Engine/DiffEngineTest.php | 2 +- .../Diff/Engine/HWLDFWordAccumulatorTest.php | 2 +- .../Tests/Component/DrupalComponentTest.php | 2 +- .../FileSystem/RegexDirectoryIteratorTest.php | 2 +- .../Tests/Component/Gettext/PoHeaderTest.php | 2 +- .../Component/Gettext/PoStreamWriterTest.php | 2 +- .../Component/Plugin/Context/ContextTest.php | 4 ++-- .../Discovery/AnnotatedClassDiscoveryTest.php | 2 +- .../Discovery/DiscoveryCachedTraitTest.php | 2 +- .../Plugin/Discovery/DiscoveryTraitTest.php | 6 ++--- .../StaticDiscoveryDecoratorTest.php | 6 ++--- .../Plugin/Factory/ReflectionFactoryTest.php | 2 +- .../Tests/Component/Plugin/PluginBaseTest.php | 6 ++--- .../Render/FormattableMarkupTest.php | 4 ++-- .../Component/Serialization/YamlTest.php | 2 +- .../PhpTransliterationTest.php | 2 +- .../Utility/ArgumentsResolverTest.php | 4 ++-- .../Tests/Component/Utility/BytesTest.php | 4 ++-- .../Tests/Component/Utility/ColorTest.php | 8 +++---- .../Tests/Component/Utility/CryptTest.php | 6 ++--- .../Component/Utility/EnvironmentTest.php | 2 +- .../Tests/Component/Utility/HtmlTest.php | 16 ++++++------- .../Tests/Component/Utility/ImageTest.php | 2 +- .../Component/Utility/NestedArrayTest.php | 2 +- .../Tests/Component/Utility/NumberTest.php | 2 +- .../Tests/Component/Utility/RectangleTest.php | 2 +- .../Component/Utility/ReflectionTest.php | 2 +- .../Tests/Component/Utility/SortArrayTest.php | 8 +++---- .../Tests/Component/Utility/UnicodeTest.php | 14 +++++------ .../Tests/Component/Utility/UrlHelperTest.php | 6 ++--- .../Tests/Component/Utility/UserAgentTest.php | 2 +- .../Tests/Component/Utility/VariableTest.php | 4 ++-- .../Tests/Component/Utility/XssTest.php | 10 ++++---- .../Drupal/Tests/Component/Uuid/UuidTest.php | 4 ++-- .../Tests/Composer/Generator/BuilderTest.php | 2 +- .../Generator/MetapackageUpdateTest.php | 2 +- .../OverlapWithTopLevelDependenciesTest.php | 2 +- .../Plugin/ProjectMessage/ConfigTest.php | 2 +- .../Scaffold/Functional/ScaffoldTest.php | 4 ++-- .../VendorHardeningPluginTest.php | 2 +- .../Drupal/Tests/ComposerIntegrationTest.php | 2 +- .../Tests/Core/Access/AccessManagerTest.php | 4 ++-- .../Tests/Core/Access/AccessResultTest.php | 4 ++-- .../Core/Access/CsrfTokenGeneratorTest.php | 4 ++-- .../Tests/Core/Ajax/AjaxCommandsTest.php | 4 ++-- .../Core/Annotation/PluralTranslationTest.php | 2 +- .../Tests/Core/Asset/AssetResolverTest.php | 2 +- .../Asset/CssCollectionRendererUnitTest.php | 2 +- .../Tests/Core/Asset/CssOptimizerUnitTest.php | 2 +- .../Tests/Core/Asset/JsOptimizerUnitTest.php | 4 ++-- .../Asset/LibraryDependencyResolverTest.php | 4 ++-- .../Core/Asset/LibraryDiscoveryParserTest.php | 2 +- .../AuthenticationManagerTest.php | 2 +- .../Tests/Core/Batch/PercentagesTest.php | 2 +- .../Drupal/Tests/Core/Block/BlockBaseTest.php | 2 +- .../Drupal/Tests/Core/Cache/CacheTest.php | 8 +++---- .../Core/Cache/CacheableMetadataTest.php | 8 +++---- .../Context/CacheContextsManagerTest.php | 6 ++--- .../Cache/Context/CookieCacheContextTest.php | 2 +- .../Cache/Context/HeadersCacheContextTest.php | 2 +- .../Context/PathParentCacheContextTest.php | 2 +- .../ProtocolVersionCacheContextTest.php | 2 +- .../Context/QueryArgsCacheContextTest.php | 2 +- .../Core/Cache/DatabaseBackendFactoryTest.php | 2 +- .../Tests/Core/Common/AttributesTest.php | 2 +- .../Config/ConfigDependencyManagerTest.php | 2 +- .../Config/ConfigFactoryOverrideBaseTest.php | 2 +- .../Drupal/Tests/Core/Config/ConfigTest.php | 12 +++++----- .../Config/Entity/ConfigEntityTypeTest.php | 4 ++-- .../Tests/Core/Config/ReadOnlyStorageTest.php | 2 +- .../Core/Config/StorageCopyTraitTest.php | 2 +- .../Controller/ControllerResolverTest.php | 6 ++--- .../Core/Cron/CronSuspendQueueDelayTest.php | 2 +- core/tests/Drupal/Tests/Core/CronTest.php | 2 +- .../Tests/Core/Database/ConditionTest.php | 6 ++--- .../Tests/Core/Database/ConnectionTest.php | 24 +++++++++---------- .../Tests/Core/Database/DatabaseTest.php | 4 ++-- .../Core/Database/InstallerObjectTest.php | 2 +- .../Core/Database/RowCountExceptionTest.php | 2 +- .../Tests/Core/Database/UrlConversionTest.php | 8 +++---- .../Tests/Core/Datetime/DateHelperTest.php | 2 +- .../Drupal/Tests/Core/Datetime/DateTest.php | 2 +- .../Core/Datetime/DrupalDateTimeTest.php | 4 ++-- .../YamlFileLoaderTest.php | 2 +- .../Tests/Core/Display/DisplayVariantTest.php | 2 +- .../Core/DrupalKernel/DrupalKernelTest.php | 2 +- .../DrupalKernel/ValidateHostnameTest.php | 2 +- .../Core/Entity/ContentEntityBaseUnitTest.php | 6 ++--- .../Entity/EntityCreateAccessCheckTest.php | 2 +- .../Core/Entity/EntityFieldManagerTest.php | 4 ++-- .../Tests/Core/Entity/EntityFormTest.php | 2 +- .../Tests/Core/Entity/EntityLinkTest.php | 2 +- .../Core/Entity/EntityResolverManagerTest.php | 10 ++++---- .../Core/Entity/EntityTypeBundleInfoTest.php | 2 +- .../Core/Entity/EntityTypeManagerTest.php | 6 ++--- .../Tests/Core/Entity/EntityTypeTest.php | 8 +++---- .../Tests/Core/Entity/EntityUrlTest.php | 6 ++--- .../Tests/Core/Entity/FieldDefinitionTest.php | 2 +- .../Entity/Sql/DefaultTableMappingTest.php | 6 ++--- .../Sql/SqlContentEntityStorageSchemaTest.php | 2 +- .../Sql/SqlContentEntityStorageTest.php | 8 +++---- .../ActiveLinkResponseFilterTest.php | 2 +- .../ExceptionJsonSubscriberTest.php | 2 +- .../ModuleRouteSubscriberTest.php | 2 +- .../OptionsRequestSubscriberTest.php | 2 +- .../RedirectResponseSubscriberTest.php | 4 ++-- .../RssResponseRelativeUrlFilterTest.php | 2 +- .../SpecialAttributesRouteSubscriberTest.php | 4 ++-- .../Core/Extension/DatabaseDriverListTest.php | 2 +- .../Tests/Core/Extension/DependencyTest.php | 2 +- .../Core/Extension/ExtensionListTest.php | 2 +- .../Core/Extension/ExtensionVersionTest.php | 12 +++++----- .../Core/Extension/InfoParserUnitTest.php | 8 +++---- .../Core/Extension/ThemeExtensionListTest.php | 2 +- .../FieldInputValueNormalizerTraitTest.php | 2 +- .../Tests/Core/Field/StringItemTest.php | 2 +- .../Drupal/Tests/Core/Field/UriItemTest.php | 2 +- .../Drupal/Tests/Core/File/FileSystemTest.php | 2 +- .../File/FileUploadSanitizeNameEventTest.php | 2 +- .../Tests/Core/Form/ConfigTargetTest.php | 6 ++--- .../Tests/Core/Form/ConfirmFormHelperTest.php | 2 +- .../Tests/Core/Form/FormBuilderTest.php | 12 +++++----- .../Tests/Core/Form/FormElementHelperTest.php | 4 ++-- .../Drupal/Tests/Core/Form/FormHelperTest.php | 2 +- .../Core/Form/FormStateDecoratorBaseTest.php | 18 +++++++------- .../Drupal/Tests/Core/Form/FormStateTest.php | 10 ++++---- .../Core/Form/FormStateValuesTraitTest.php | 8 +++---- .../Tests/Core/Form/FormSubmitterTest.php | 4 ++-- .../Tests/Core/Form/FormValidatorTest.php | 4 ++-- .../Drupal/Tests/Core/Form/OptGroupTest.php | 2 +- .../Tests/Core/Form/SubformStateTest.php | 6 ++--- .../Core/Http/CacheableExceptionTest.php | 2 +- .../Tests/Core/Http/ClientFactoryTest.php | 2 +- .../Http/TrustedHostsRequestFactoryTest.php | 2 +- .../Tests/Core/Language/LanguageUnitTest.php | 2 +- .../Tests/Core/Layout/LayoutDefaultTest.php | 2 +- .../Core/Logger/LogMessageParserTest.php | 2 +- .../Tests/Core/Menu/LocalTaskDefaultTest.php | 2 +- .../Core/Menu/MenuTreeParametersTest.php | 2 +- .../Core/Menu/StaticMenuLinkOverridesTest.php | 4 ++-- .../Core/PageCache/ChainRequestPolicyTest.php | 4 ++-- .../PageCache/ChainResponsePolicyTest.php | 2 +- .../CommandLineOrUnsafeMethodTest.php | 2 +- .../ParamConverter/EntityConverterTest.php | 4 ++-- .../EntityRevisionParamConverterTest.php | 2 +- .../ParamConverterManagerTest.php | 4 ++-- .../Tests/Core/Password/PhpPasswordTest.php | 2 +- .../Tests/Core/Path/PathMatcherTest.php | 2 +- .../PathProcessor/PathProcessorFrontTest.php | 2 +- .../ContextDefinitionIsSatisfiedTest.php | 2 +- .../Plugin/Context/ContextDefinitionTest.php | 4 ++-- ...EntityContextDefinitionIsSatisfiedTest.php | 4 ++-- .../Tests/Core/Plugin/ContextHandlerTest.php | 2 +- .../DefaultLazyPluginCollectionTest.php | 2 +- .../Core/Plugin/DefaultPluginManagerTest.php | 2 +- .../Plugin/FilteredPluginManagerTraitTest.php | 2 +- .../Core/Plugin/PluginWithFormsTraitTest.php | 2 +- .../Core/Render/BubbleableMetadataTest.php | 14 +++++------ .../Tests/Core/Render/Element/HtmlTagTest.php | 2 +- .../Core/Render/Element/MachineNameTest.php | 2 +- .../Render/Element/PasswordConfirmTest.php | 2 +- .../Core/Render/Element/PasswordTest.php | 2 +- .../Core/Render/Element/TextareaTest.php | 2 +- .../Core/Render/Element/TextfieldTest.php | 2 +- .../Tests/Core/Render/Element/TokenTest.php | 2 +- .../Core/Render/ElementInfoManagerTest.php | 2 +- .../Drupal/Tests/Core/Render/ElementTest.php | 6 ++--- .../MetadataBubblingUrlGeneratorTest.php | 2 +- .../Core/Render/PlaceholderGeneratorTest.php | 2 +- .../Core/Render/RendererBubblingTest.php | 4 ++-- .../Drupal/Tests/Core/Render/RendererTest.php | 12 +++++----- .../Tests/Core/Route/RoleAccessCheckTest.php | 2 +- .../Core/Routing/AcceptHeaderMatcherTest.php | 2 +- .../Routing/ContentTypeHeaderMatcherTest.php | 2 +- .../Core/Routing/RedirectDestinationTest.php | 2 +- .../Routing/RequestFormatRouteFilterTest.php | 2 +- .../Tests/Core/Routing/RouteCompilerTest.php | 2 +- .../Routing/TrustedRedirectResponseTest.php | 2 +- .../Tests/Core/Routing/UrlGeneratorTest.php | 4 ++-- .../Security/DoTrustedCallbackTraitTest.php | 6 ++--- .../Core/Security/RequestSanitizerTest.php | 6 ++--- .../Session/AccessPolicyProcessorTest.php | 4 ++-- .../Core/Session/SessionConfigurationTest.php | 12 +++++----- .../Tests/Core/Session/UserSessionTest.php | 2 +- .../Session/WriteSafeSessionHandlerTest.php | 2 +- .../Drupal/Tests/Core/Site/SettingsTest.php | 8 +++---- .../StackMiddleware/ContentLengthTest.php | 2 +- .../ReverseProxyMiddlewareTest.php | 2 +- .../StringTranslation/ByteSizeMarkupTest.php | 2 +- .../PluralTranslatableMarkupTest.php | 2 +- .../TranslationManagerTest.php | 4 ++-- .../Core/Template/AttributeHelperTest.php | 4 ++-- .../Tests/Core/Template/AttributeTest.php | 8 +++---- .../Tests/Core/Template/TwigExtensionTest.php | 10 ++++---- .../Tests/Core/Template/TwigSandboxTest.php | 2 +- .../Core/Test/PhpUnitBridgeRequiresTest.php | 2 +- .../Tests/Core/Test/PhpUnitTestRunnerTest.php | 2 +- .../Core/Test/RunTests/TestFileParserTest.php | 2 +- .../Tests/Core/Test/TestDatabaseTest.php | 2 +- .../Tests/Core/Test/TestDiscoveryTest.php | 4 ++-- .../Core/Test/XdebugRequestTraitTest.php | 2 +- .../Core/Theme/AjaxBasePageNegotiatorTest.php | 2 +- .../Drupal/Tests/Core/Theme/RegistryTest.php | 2 +- .../PhpTransliterationTest.php | 2 +- .../Drupal/Tests/Core/UnroutedUrlTest.php | 4 ++-- core/tests/Drupal/Tests/Core/UrlTest.php | 14 +++++------ .../Core/Utility/CallableResolverTest.php | 2 +- .../Tests/Core/Utility/LinkGeneratorTest.php | 2 +- .../Core/Utility/PhpRequirementsTest.php | 2 +- .../Drupal/Tests/Core/Utility/TokenTest.php | 2 +- .../Core/Utility/UnroutedUrlAssemblerTest.php | 4 ++-- 674 files changed, 995 insertions(+), 995 deletions(-) diff --git a/core/modules/announcements_feed/tests/src/Kernel/AnnounceFetcherTest.php b/core/modules/announcements_feed/tests/src/Kernel/AnnounceFetcherTest.php index 012ba4bf5e4a..7161ece790e6 100644 --- a/core/modules/announcements_feed/tests/src/Kernel/AnnounceFetcherTest.php +++ b/core/modules/announcements_feed/tests/src/Kernel/AnnounceFetcherTest.php @@ -68,7 +68,7 @@ class AnnounceFetcherTest extends AnnounceTestBase { /** * Data provider for testShowAnnouncements(). */ - public function providerShowAnnouncements(): array { + public static function providerShowAnnouncements(): array { return [ '1' => [ 'feed_item' => [ diff --git a/core/modules/announcements_feed/tests/src/Unit/AnnounceFetcherUnitTest.php b/core/modules/announcements_feed/tests/src/Unit/AnnounceFetcherUnitTest.php index 6e8f9097fb29..f919d86c1cfa 100644 --- a/core/modules/announcements_feed/tests/src/Unit/AnnounceFetcherUnitTest.php +++ b/core/modules/announcements_feed/tests/src/Unit/AnnounceFetcherUnitTest.php @@ -57,7 +57,7 @@ class AnnounceFetcherUnitTest extends UnitTestCase { /** * Data for the testValidateUrl. */ - public function urlProvider(): array { + public static function urlProvider(): array { return [ ['https://www.drupal.org', TRUE], ['https://drupal.org', TRUE], diff --git a/core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php b/core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php index 80adf4ec548d..e2121ca8a837 100644 --- a/core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php +++ b/core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php @@ -20,7 +20,7 @@ class BlockedIpsTest extends MigrateSqlSourceTestBase { /** * {@inheritdoc} */ - public function providerSource() { + public static function providerSource() { $tests = []; $tests[0]['source_data']['blocked_ips'] = [ diff --git a/core/modules/big_pipe/tests/src/Unit/Render/Placeholder/BigPipeStrategyTest.php b/core/modules/big_pipe/tests/src/Unit/Render/Placeholder/BigPipeStrategyTest.php index cedb65d997d4..864449845b79 100644 --- a/core/modules/big_pipe/tests/src/Unit/Render/Placeholder/BigPipeStrategyTest.php +++ b/core/modules/big_pipe/tests/src/Unit/Render/Placeholder/BigPipeStrategyTest.php @@ -63,7 +63,7 @@ class BigPipeStrategyTest extends UnitTestCase { /** * @see \Drupal\big_pipe_test\BigPipePlaceholderTestCases */ - public function placeholdersProvider() { + public static function placeholdersProvider() { $cases = BigPipePlaceholderTestCases::cases(); // Generate $placeholders variable as expected by diff --git a/core/modules/big_pipe/tests/src/Unit/StackMiddleware/ContentLengthTest.php b/core/modules/big_pipe/tests/src/Unit/StackMiddleware/ContentLengthTest.php index 08682e400c78..34388d32eadf 100644 --- a/core/modules/big_pipe/tests/src/Unit/StackMiddleware/ContentLengthTest.php +++ b/core/modules/big_pipe/tests/src/Unit/StackMiddleware/ContentLengthTest.php @@ -37,7 +37,7 @@ final class ContentLengthTest extends UnitTestCase { $this->assertSame((string) $expected_header, $response->headers->get('Content-Length')); } - public function providerTestSetContentLengthHeader() { + public static function providerTestSetContentLengthHeader() { $response = new Response('Test content', 200); $response->headers->set('Content-Length', (string) strlen('Test content')); return [ diff --git a/core/modules/block/tests/src/Kernel/Plugin/migrate/source/BlockTest.php b/core/modules/block/tests/src/Kernel/Plugin/migrate/source/BlockTest.php index b0f507e126ec..a6621f972f0c 100644 --- a/core/modules/block/tests/src/Kernel/Plugin/migrate/source/BlockTest.php +++ b/core/modules/block/tests/src/Kernel/Plugin/migrate/source/BlockTest.php @@ -20,7 +20,7 @@ class BlockTest extends MigrateSqlSourceTestBase { /** * {@inheritdoc} */ - public function providerSource() { + public static function providerSource() { $tests = []; // The source data. diff --git a/core/modules/block/tests/src/Kernel/Plugin/migrate/source/d6/BlockTranslationTest.php b/core/modules/block/tests/src/Kernel/Plugin/migrate/source/d6/BlockTranslationTest.php index 18dd8041350b..479318646b43 100644 --- a/core/modules/block/tests/src/Kernel/Plugin/migrate/source/d6/BlockTranslationTest.php +++ b/core/modules/block/tests/src/Kernel/Plugin/migrate/source/d6/BlockTranslationTest.php @@ -21,7 +21,7 @@ class BlockTranslationTest extends BlockTest { /** * {@inheritdoc} */ - public function providerSource() { + public static function providerSource() { // Test data is the same as BlockTest, but with the addition of i18n_blocks. $tests = parent::providerSource(); diff --git a/core/modules/block/tests/src/Kernel/Plugin/migrate/source/d7/BlockTranslationTest.php b/core/modules/block/tests/src/Kernel/Plugin/migrate/source/d7/BlockTranslationTest.php index b186fc95f7e4..49b60c767e2c 100644 --- a/core/modules/block/tests/src/Kernel/Plugin/migrate/source/d7/BlockTranslationTest.php +++ b/core/modules/block/tests/src/Kernel/Plugin/migrate/source/d7/BlockTranslationTest.php @@ -23,7 +23,7 @@ class BlockTranslationTest extends MigrateSqlSourceTestBase { /** * {@inheritdoc} */ - public function providerSource() { + public static function providerSource() { // The source data. $tests[0]['source_data']['block'] = [ diff --git a/core/modules/block/tests/src/Unit/BlockRepositoryTest.php b/core/modules/block/tests/src/Unit/BlockRepositoryTest.php index a5abcdf59624..15ac1c718fb1 100644 --- a/core/modules/block/tests/src/Unit/BlockRepositoryTest.php +++ b/core/modules/block/tests/src/Unit/BlockRepositoryTest.php @@ -112,7 +112,7 @@ class BlockRepositoryTest extends UnitTestCase { $this->assertEquals($expected_blocks, $result); } - public function providerBlocksConfig() { + public static function providerBlocksConfig() { $blocks_config = [ 'block1' => [ AccessResult::allowed(), 'top', 0, diff --git a/core/modules/block/tests/src/Unit/CategoryAutocompleteTest.php b/core/modules/block/tests/src/Unit/CategoryAutocompleteTest.php index 589d1c3f4b21..f54c2a90775b 100644 --- a/core/modules/block/tests/src/Unit/CategoryAutocompleteTest.php +++ b/core/modules/block/tests/src/Unit/CategoryAutocompleteTest.php @@ -61,7 +61,7 @@ class CategoryAutocompleteTest extends UnitTestCase { * * @return array */ - public function providerTestAutocompleteSuggestions() { + public static function providerTestAutocompleteSuggestions() { $test_parameters = []; $test_parameters[] = [ 'string' => 'Com', diff --git a/core/modules/block/tests/src/Unit/Menu/BlockLocalTasksTest.php b/core/modules/block/tests/src/Unit/Menu/BlockLocalTasksTest.php index 06093da237d0..52e28bc45b9b 100644 --- a/core/modules/block/tests/src/Unit/Menu/BlockLocalTasksTest.php +++ b/core/modules/block/tests/src/Unit/Menu/BlockLocalTasksTest.php @@ -83,7 +83,7 @@ class BlockLocalTasksTest extends LocalTaskIntegrationTestBase { /** * Provides a list of routes to test. */ - public function providerTestBlockAdminDisplay() { + public static function providerTestBlockAdminDisplay() { return [ ['block.admin_display', [['block.admin_display'], ['block.admin_display_theme:test_b', 'block.admin_display_theme:test_c']]], ['block.admin_display_theme', [['block.admin_display'], ['block.admin_display_theme:test_b', 'block.admin_display_theme:test_c']]], diff --git a/core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php b/core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php index 5842e957d6d2..e057917bb5cf 100644 --- a/core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php +++ b/core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php @@ -68,7 +68,7 @@ class BlockPageVariantTest extends UnitTestCase { ->getMock(); } - public function providerBuild() { + public static function providerBuild() { $blocks_config = [ 'block1' => [ // region, is main content block, is messages block, is title block diff --git a/core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockSettingsTest.php b/core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockSettingsTest.php index 1aaaf0c451b0..38a14531fdb8 100644 --- a/core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockSettingsTest.php +++ b/core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockSettingsTest.php @@ -40,7 +40,7 @@ class BlockSettingsTest extends UnitTestCase { /** * Provides data for testTransform. */ - public function providerTestTransform() { + public static function providerTestTransform() { return [ 'title set' => [ [ diff --git a/core/modules/block_content/tests/src/Kernel/BlockContentAccessHandlerTest.php b/core/modules/block_content/tests/src/Kernel/BlockContentAccessHandlerTest.php index 6d676ddb3f3a..97de5d8f204d 100644 --- a/core/modules/block_content/tests/src/Kernel/BlockContentAccessHandlerTest.php +++ b/core/modules/block_content/tests/src/Kernel/BlockContentAccessHandlerTest.php @@ -191,7 +191,7 @@ class BlockContentAccessHandlerTest extends KernelTestBase { /** * Data provider for testAccess(). */ - public function providerTestAccess(): array { + public static function providerTestAccess(): array { $cases = [ 'view:published:reusable' => [ 'view', diff --git a/core/modules/block_content/tests/src/Kernel/BlockContentEntityReferenceSelectionTest.php b/core/modules/block_content/tests/src/Kernel/BlockContentEntityReferenceSelectionTest.php index daeace75e232..db07637d86f1 100644 --- a/core/modules/block_content/tests/src/Kernel/BlockContentEntityReferenceSelectionTest.php +++ b/core/modules/block_content/tests/src/Kernel/BlockContentEntityReferenceSelectionTest.php @@ -177,7 +177,7 @@ class BlockContentEntityReferenceSelectionTest extends KernelTestBase { /** * Provides possible fields and condition types. */ - public function fieldConditionProvider() { + public static function fieldConditionProvider() { $cases = []; foreach (['base', 'group', 'nested_group'] as $condition_type) { foreach ([TRUE, FALSE] as $reusable) { diff --git a/core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d6/BoxTest.php b/core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d6/BoxTest.php index 7f84eb582020..25bbe2fe3f58 100644 --- a/core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d6/BoxTest.php +++ b/core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d6/BoxTest.php @@ -20,7 +20,7 @@ class BoxTest extends MigrateSqlSourceTestBase { /** * {@inheritdoc} */ - public function providerSource() { + public static function providerSource() { $tests = []; $tests[0]['source_data']['boxes'] = [ diff --git a/core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d6/BoxTranslationTest.php b/core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d6/BoxTranslationTest.php index 548c65d1e4d1..baa43d5634ab 100644 --- a/core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d6/BoxTranslationTest.php +++ b/core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d6/BoxTranslationTest.php @@ -23,7 +23,7 @@ class BoxTranslationTest extends MigrateSqlSourceTestBase { /** * {@inheritdoc} */ - public function providerSource() { + public static function providerSource() { $tests = []; // The source data. diff --git a/core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d7/BlockCustomTest.php b/core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d7/BlockCustomTest.php index 3a2e02d534fc..a017a86ec685 100644 --- a/core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d7/BlockCustomTest.php +++ b/core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d7/BlockCustomTest.php @@ -20,7 +20,7 @@ class BlockCustomTest extends MigrateSqlSourceTestBase { /** * {@inheritdoc} */ - public function providerSource() { + public static function providerSource() { $tests = []; $tests[0]['source_data']['block_custom'] = [ diff --git a/core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d7/BlockCustomTranslationTest.php b/core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d7/BlockCustomTranslationTest.php index ef8dccbc17ea..16e967b7e6c6 100644 --- a/core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d7/BlockCustomTranslationTest.php +++ b/core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d7/BlockCustomTranslationTest.php @@ -23,7 +23,7 @@ class BlockCustomTranslationTest extends MigrateSqlSourceTestBase { /** * {@inheritdoc} */ - public function providerSource() { + public static function providerSource() { $tests = []; // The source data. diff --git a/core/modules/block_content/tests/src/Unit/Access/DependentAccessTest.php b/core/modules/block_content/tests/src/Unit/Access/DependentAccessTest.php index 338240e751c5..5abd871079a7 100644 --- a/core/modules/block_content/tests/src/Unit/Access/DependentAccessTest.php +++ b/core/modules/block_content/tests/src/Unit/Access/DependentAccessTest.php @@ -142,7 +142,7 @@ class DependentAccessTest extends UnitTestCase { * mergeAccessDependency() first. A call to either should behave the same on a * new RefinableDependentAccessInterface object. */ - public function providerTestSetFirst() { + public static function providerTestSetFirst() { return [ [TRUE], [FALSE], diff --git a/core/modules/block_content/tests/src/Unit/Menu/BlockContentLocalTasksTest.php b/core/modules/block_content/tests/src/Unit/Menu/BlockContentLocalTasksTest.php index 1da30a5e54d8..b81ad8905202 100644 --- a/core/modules/block_content/tests/src/Unit/Menu/BlockContentLocalTasksTest.php +++ b/core/modules/block_content/tests/src/Unit/Menu/BlockContentLocalTasksTest.php @@ -80,7 +80,7 @@ class BlockContentLocalTasksTest extends LocalTaskIntegrationTestBase { /** * Provides a list of routes to test. */ - public function getBlockContentListingRoutes() { + public static function getBlockContentListingRoutes() { return [ ['entity.block_content.collection', 'system.admin_content'], ]; diff --git a/core/modules/book/tests/src/Kernel/BookMultilingualTest.php b/core/modules/book/tests/src/Kernel/BookMultilingualTest.php index f82473444c7e..089bbbc53325 100644 --- a/core/modules/book/tests/src/Kernel/BookMultilingualTest.php +++ b/core/modules/book/tests/src/Kernel/BookMultilingualTest.php @@ -256,7 +256,7 @@ class BookMultilingualTest extends KernelTestBase { /** * Data provider for ::testMultilingualBooks(). */ - public function langcodesProvider() { + public static function langcodesProvider() { return [ [self::LANGCODE], ['en'], diff --git a/core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookConfigsTest.php b/core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookConfigsTest.php index f4be91f0772e..28c989bf3554 100644 --- a/core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookConfigsTest.php +++ b/core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookConfigsTest.php @@ -32,7 +32,7 @@ class MigrateBookConfigsTest extends MigrateDrupal6TestBase { * @return array * The data for each test scenario. */ - public function providerBookSettings() { + public static function providerBookSettings() { return [ // d6_book_settings was renamed to book_settings, but use the old alias to // prove that it works. diff --git a/core/modules/book/tests/src/Kernel/Plugin/migrate/source/BookTest.php b/core/modules/book/tests/src/Kernel/Plugin/migrate/source/BookTest.php index a73f180a85c4..d15d673a97c8 100644 --- a/core/modules/book/tests/src/Kernel/Plugin/migrate/source/BookTest.php +++ b/core/modules/book/tests/src/Kernel/Plugin/migrate/source/BookTest.php @@ -18,7 +18,7 @@ class BookTest extends MigrateSqlSourceTestBase { /** * {@inheritdoc} */ - public function providerSource() { + public static function providerSource() { $tests = []; // The source data. diff --git a/core/modules/book/tests/src/Unit/BookManagerTest.php b/core/modules/book/tests/src/Unit/BookManagerTest.php index 945b21f788f8..dd39ef8d1421 100644 --- a/core/modules/book/tests/src/Unit/BookManagerTest.php +++ b/core/modules/book/tests/src/Unit/BookManagerTest.php @@ -104,7 +104,7 @@ class BookManagerTest extends UnitTestCase { * @return array * The test data. */ - public function providerTestGetBookParents() { + public static function providerTestGetBookParents() { $empty = [ 'p1' => 0, 'p2' => 0, diff --git a/core/modules/book/tests/src/Unit/Menu/BookLocalTasksTest.php b/core/modules/book/tests/src/Unit/Menu/BookLocalTasksTest.php index db1732cb7f43..9138f8ff1804 100644 --- a/core/modules/book/tests/src/Unit/Menu/BookLocalTasksTest.php +++ b/core/modules/book/tests/src/Unit/Menu/BookLocalTasksTest.php @@ -39,7 +39,7 @@ class BookLocalTasksTest extends LocalTaskIntegrationTestBase { /** * Provides a list of routes to test. */ - public function getBookAdminRoutes() { + public static function getBookAdminRoutes() { return [ ['book.admin'], ['book.settings'], @@ -60,7 +60,7 @@ class BookLocalTasksTest extends LocalTaskIntegrationTestBase { /** * Provides a list of routes to test. */ - public function getBookNodeRoutes() { + public static function getBookNodeRoutes() { return [ ['entity.node.canonical'], ['entity.node.book_outline_form'], diff --git a/core/modules/ckeditor5/tests/src/Functional/Update/CKEditor5UpdateImageToolbarItemTest.php b/core/modules/ckeditor5/tests/src/Functional/Update/CKEditor5UpdateImageToolbarItemTest.php index f481448e35e3..5c950c0af964 100644 --- a/core/modules/ckeditor5/tests/src/Functional/Update/CKEditor5UpdateImageToolbarItemTest.php +++ b/core/modules/ckeditor5/tests/src/Functional/Update/CKEditor5UpdateImageToolbarItemTest.php @@ -146,7 +146,7 @@ class CKEditor5UpdateImageToolbarItemTest extends UpdatePathTestBase { * @return array * The test cases. */ - public function provider(): array { + public static function provider(): array { // There are 3 aspects that need to be verified, each can be true or false, // making for 8 test cases in total. $test_cases = []; diff --git a/core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php b/core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php index a30b9ce9f655..7eb2894cc95b 100644 --- a/core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php +++ b/core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php @@ -450,14 +450,14 @@ abstract class ImageTestBase extends CKEditor5TestBase { $this->assertVisibleBalloon('.ck-text-alternative-form'); } - public function providerAltTextRequired(): array { + public static function providerAltTextRequired(): array { return [ 'Restricted' => [FALSE], 'Unrestricted' => [TRUE], ]; } - public function providerLinkability(): array { + public static function providerLinkability(): array { return [ 'BLOCK image, restricted' => ['block', FALSE], 'BLOCK image, unrestricted' => ['block', TRUE], @@ -528,7 +528,7 @@ abstract class ImageTestBase extends CKEditor5TestBase { $this->assertFalse($drupal_media_element->hasAttribute('data-align')); } - public function providerAlignment() { + public static function providerAlignment() { return [ 'Block image' => ['block'], 'Inline image' => ['inline'], @@ -620,7 +620,7 @@ abstract class ImageTestBase extends CKEditor5TestBase { * * @return string[][] */ - public function providerWidth(): array { + public static function providerWidth(): array { return [ 'Image resize with percent unit (only allowed in HTML 4)' => [ 'width' => '33%', @@ -674,7 +674,7 @@ abstract class ImageTestBase extends CKEditor5TestBase { * @return array * The test cases. */ - public function providerResize(): array { + public static function providerResize(): array { return [ 'Image resize is enabled' => [ 'is_resize_enabled' => TRUE, diff --git a/core/modules/ckeditor5/tests/src/FunctionalJavascript/LanguageTest.php b/core/modules/ckeditor5/tests/src/FunctionalJavascript/LanguageTest.php index 4a89ab103802..4b3f570cd480 100644 --- a/core/modules/ckeditor5/tests/src/FunctionalJavascript/LanguageTest.php +++ b/core/modules/ckeditor5/tests/src/FunctionalJavascript/LanguageTest.php @@ -82,7 +82,7 @@ JS; * * @return string[][] */ - public function provider(): array { + public static function provider(): array { return [ 'Language code both in Drupal and CKEditor' => [ 'langcode' => 'th', diff --git a/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaLinkabilityTest.php b/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaLinkabilityTest.php index 9d9537237816..209b1de962c1 100644 --- a/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaLinkabilityTest.php +++ b/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaLinkabilityTest.php @@ -221,7 +221,7 @@ class MediaLinkabilityTest extends MediaTestBase { $this->assertEmpty($xpath->query('//a')); } - public function providerLinkability(): array { + public static function providerLinkability(): array { return [ 'restricted' => [FALSE], 'unrestricted' => [TRUE], diff --git a/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaPreviewTest.php b/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaPreviewTest.php index ac88edb64c33..59cbf7f30748 100644 --- a/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaPreviewTest.php +++ b/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaPreviewTest.php @@ -186,7 +186,7 @@ class MediaPreviewTest extends MediaTestBase { /** * Data provider for ::testEmbedPreviewAccess. */ - public function previewAccessProvider() { + public static function previewAccessProvider() { return [ 'media_embed filter enabled' => [ TRUE, diff --git a/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php b/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php index 255c264c6372..ebbf600ed809 100644 --- a/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php +++ b/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php @@ -1007,7 +1007,7 @@ class MediaTest extends MediaTestBase { /** * For testing view modes in different scenarios. */ - public function providerTestViewMode(): array { + public static function providerTestViewMode(): array { return [ 'with alignment' => [TRUE], 'without alignment' => [FALSE], diff --git a/core/modules/ckeditor5/tests/src/FunctionalJavascript/SourceEditingTest.php b/core/modules/ckeditor5/tests/src/FunctionalJavascript/SourceEditingTest.php index a638d5676596..b7c1af2d0514 100644 --- a/core/modules/ckeditor5/tests/src/FunctionalJavascript/SourceEditingTest.php +++ b/core/modules/ckeditor5/tests/src/FunctionalJavascript/SourceEditingTest.php @@ -118,7 +118,7 @@ JS; * @return array * The test cases. */ - public function providerAllowingExtraAttributes(): array { + public static function providerAllowingExtraAttributes(): array { $general_test_case_markup = '

The pirate is irate.

'; return [ 'no extra attributes allowed' => [ diff --git a/core/modules/ckeditor5/tests/src/Kernel/CKEditor5PluginManagerTest.php b/core/modules/ckeditor5/tests/src/Kernel/CKEditor5PluginManagerTest.php index 469e582d2441..1ae537c185b4 100644 --- a/core/modules/ckeditor5/tests/src/Kernel/CKEditor5PluginManagerTest.php +++ b/core/modules/ckeditor5/tests/src/Kernel/CKEditor5PluginManagerTest.php @@ -201,7 +201,7 @@ YAML, * @return \Generator * Test scenarios. */ - public function providerTestInvalidPluginDefinitions(): \Generator { + public static function providerTestInvalidPluginDefinitions(): \Generator { yield 'invalid plugin ID with everything else okay' => [ << TRUE, 'text-align-center' => TRUE, @@ -1507,7 +1507,7 @@ PHP, /** * Provides use cases for findPluginSupportingElement(). */ - public function providerTestPluginSupportingElement() { + public static function providerTestPluginSupportingElement() { return [ 'tag that belongs to a superset' => [ 'tag' => 'h2', diff --git a/core/modules/ckeditor5/tests/src/Kernel/CKEditor5StylesheetsTest.php b/core/modules/ckeditor5/tests/src/Kernel/CKEditor5StylesheetsTest.php index 7883277e9762..248e26719883 100644 --- a/core/modules/ckeditor5/tests/src/Kernel/CKEditor5StylesheetsTest.php +++ b/core/modules/ckeditor5/tests/src/Kernel/CKEditor5StylesheetsTest.php @@ -46,7 +46,7 @@ class CKEditor5StylesheetsTest extends KernelTestBase { * @return array * An array of test cases. */ - public function externalStylesheetsProvider() { + public static function externalStylesheetsProvider() { return [ 'Install theme which has an absolute external CSS URL' => [ 'test_ckeditor_stylesheets_external', diff --git a/core/modules/ckeditor5/tests/src/Kernel/SmartDefaultSettingsTest.php b/core/modules/ckeditor5/tests/src/Kernel/SmartDefaultSettingsTest.php index 99235f7264e9..d5f50e4a98a7 100644 --- a/core/modules/ckeditor5/tests/src/Kernel/SmartDefaultSettingsTest.php +++ b/core/modules/ckeditor5/tests/src/Kernel/SmartDefaultSettingsTest.php @@ -649,7 +649,7 @@ class SmartDefaultSettingsTest extends KernelTestBase { * @return \Generator * Test scenarios. */ - public function provider() { + public static function provider() { $basic_html_test_case = [ 'format_id' => 'basic_html', 'filters_to_drop' => [], diff --git a/core/modules/ckeditor5/tests/src/Kernel/ValidatorsTest.php b/core/modules/ckeditor5/tests/src/Kernel/ValidatorsTest.php index adacf4d2c08b..bb18c3cef653 100644 --- a/core/modules/ckeditor5/tests/src/Kernel/ValidatorsTest.php +++ b/core/modules/ckeditor5/tests/src/Kernel/ValidatorsTest.php @@ -110,7 +110,7 @@ class ValidatorsTest extends KernelTestBase { /** * Provides a list of Text Editor config entities using CKEditor 5 to test. */ - public function provider(): array { + public static function provider(): array { $data = []; $data['CKEditor5::getDefaultSettings()'] = [ // @see ::test() @@ -703,7 +703,7 @@ class ValidatorsTest extends KernelTestBase { /** * Provides a list of Text Editor + Text Format pairs to test. */ - public function providerPair(): array { + public static function providerPair(): array { // cspell:ignore donk $data = []; $data['INVALID: allow_view_mode_override condition not met: filter must be configured to allow 2 or more view modes'] = [ diff --git a/core/modules/ckeditor5/tests/src/Kernel/WildcardHtmlSupportTest.php b/core/modules/ckeditor5/tests/src/Kernel/WildcardHtmlSupportTest.php index 9a3023738a7c..725ed1f66a2e 100644 --- a/core/modules/ckeditor5/tests/src/Kernel/WildcardHtmlSupportTest.php +++ b/core/modules/ckeditor5/tests/src/Kernel/WildcardHtmlSupportTest.php @@ -99,7 +99,7 @@ class WildcardHtmlSupportTest extends KernelTestBase { $this->assertEquals($expected_ghs_configuration, $ghs_configuration); } - public function providerGhsConfiguration(): array { + public static function providerGhsConfiguration(): array { return [ 'empty source editing' => [ '


', diff --git a/core/modules/ckeditor5/tests/src/Unit/AlignmentPluginTest.php b/core/modules/ckeditor5/tests/src/Unit/AlignmentPluginTest.php index 6e3ef192a32c..904fca1bc49d 100644 --- a/core/modules/ckeditor5/tests/src/Unit/AlignmentPluginTest.php +++ b/core/modules/ckeditor5/tests/src/Unit/AlignmentPluginTest.php @@ -19,7 +19,7 @@ class AlignmentPluginTest extends UnitTestCase { /** * Provides a list of configs to test. */ - public function providerGetDynamicPluginConfig(): array { + public static function providerGetDynamicPluginConfig(): array { return [ 'All alignments' => [ Alignment::DEFAULT_CONFIGURATION, diff --git a/core/modules/ckeditor5/tests/src/Unit/CKEditor5Test.php b/core/modules/ckeditor5/tests/src/Unit/CKEditor5Test.php index 7b85d9becf1f..7a202abfc2f7 100644 --- a/core/modules/ckeditor5/tests/src/Unit/CKEditor5Test.php +++ b/core/modules/ckeditor5/tests/src/Unit/CKEditor5Test.php @@ -62,7 +62,7 @@ class CKEditor5Test extends UnitTestCase { * @return array[] * An array with the property path and expected form item name. */ - public function providerPathsToFormNames(): array { + public static function providerPathsToFormNames(): array { return [ 'validation error targeting toolbar items' => [ 'settings.toolbar.items', diff --git a/core/modules/ckeditor5/tests/src/Unit/HTMLRestrictionsTest.php b/core/modules/ckeditor5/tests/src/Unit/HTMLRestrictionsTest.php index a923d34f8905..3452689dfbca 100644 --- a/core/modules/ckeditor5/tests/src/Unit/HTMLRestrictionsTest.php +++ b/core/modules/ckeditor5/tests/src/Unit/HTMLRestrictionsTest.php @@ -27,7 +27,7 @@ class HTMLRestrictionsTest extends UnitTestCase { new HTMLRestrictions($elements); } - public function providerConstruct(): \Generator { + public static function providerConstruct(): \Generator { // Fundamental structure. yield 'INVALID: list instead of key-value pairs' => [ ['', ''], @@ -166,7 +166,7 @@ class HTMLRestrictionsTest extends UnitTestCase { $this->assertCount($expected_concrete_plus_wildcard_count, $r->getAllowedElements(FALSE)); } - public function providerCounting(): \Generator { + public static function providerCounting(): \Generator { yield 'empty' => [ [], TRUE, @@ -256,7 +256,7 @@ class HTMLRestrictionsTest extends UnitTestCase { $this->assertSame($expected_raw + $filter_html_additional_expectations, HTMLRestrictions::fromFilterPluginInstance($filter_plugin_instance->reveal())->getAllowedElements(FALSE)); } - public function providerConvenienceConstructors(): \Generator { + public static function providerConvenienceConstructors(): \Generator { // All empty cases. yield 'empty string' => [ '', @@ -638,7 +638,7 @@ class HTMLRestrictionsTest extends UnitTestCase { $this->assertSame($expected_ghs_config, $restrictions->toGeneralHtmlSupportConfig()); } - public function providerRepresentations(): \Generator { + public static function providerRepresentations(): \Generator { yield 'empty set' => [ HTMLRestrictions::emptySet(), [], @@ -904,7 +904,7 @@ class HTMLRestrictionsTest extends UnitTestCase { $this->assertEquals($expected_union, $a->merge($b)); } - public function providerOperands(): \Generator { + public static function providerOperands(): \Generator { // Empty set operand cases. yield 'any set + empty set' => [ 'a' => new HTMLRestrictions(['a' => ['href' => TRUE]]), @@ -1504,7 +1504,7 @@ class HTMLRestrictionsTest extends UnitTestCase { $this->assertEquals($expected_extracted_plain_tags_subset, $input->extractPlainTagsSubset()); } - public function providerSubsets(): \Generator { + public static function providerSubsets(): \Generator { yield 'empty set' => [ new HTMLRestrictions([]), new HTMLRestrictions([]), diff --git a/core/modules/ckeditor5/tests/src/Unit/HeadingPluginTest.php b/core/modules/ckeditor5/tests/src/Unit/HeadingPluginTest.php index bd20e30d9f1a..f6515c637a19 100644 --- a/core/modules/ckeditor5/tests/src/Unit/HeadingPluginTest.php +++ b/core/modules/ckeditor5/tests/src/Unit/HeadingPluginTest.php @@ -19,7 +19,7 @@ class HeadingPluginTest extends UnitTestCase { /** * Provides a list of configs to test. */ - public function providerGetDynamicPluginConfig(): array { + public static function providerGetDynamicPluginConfig(): array { // Prepare headings matching ckeditor5.ckeditor5.yml to also protect // against unexpected changes to the YAML file given the YAML file is used // to generate the dynamic plugin configuration. diff --git a/core/modules/ckeditor5/tests/src/Unit/ListPluginTest.php b/core/modules/ckeditor5/tests/src/Unit/ListPluginTest.php index 1173e417fb31..1efae1f5b7ff 100644 --- a/core/modules/ckeditor5/tests/src/Unit/ListPluginTest.php +++ b/core/modules/ckeditor5/tests/src/Unit/ListPluginTest.php @@ -19,7 +19,7 @@ class ListPluginTest extends UnitTestCase { /** * Provides a list of configs to test. */ - public function providerGetDynamicPluginConfig(): array { + public static function providerGetDynamicPluginConfig(): array { return [ 'startIndex is false' => [ [ diff --git a/core/modules/ckeditor5/tests/src/Unit/SmartDefaultSettingsTest.php b/core/modules/ckeditor5/tests/src/Unit/SmartDefaultSettingsTest.php index f590ef6311a1..ebeb5a12147c 100644 --- a/core/modules/ckeditor5/tests/src/Unit/SmartDefaultSettingsTest.php +++ b/core/modules/ckeditor5/tests/src/Unit/SmartDefaultSettingsTest.php @@ -34,7 +34,7 @@ class SmartDefaultSettingsTest extends UnitTestCase { * * @return \Generator */ - public function providerSurplusScore(): \Generator { + public static function providerSurplusScore(): \Generator { $needed = new HTMLRestrictions(['code' => FALSE]); yield 'surplus: 1 tag, 1 attribute, 1 attribute with wildcard restriction' => [ @@ -92,7 +92,7 @@ class SmartDefaultSettingsTest extends UnitTestCase { * * @return \Generator */ - public function providerCandidates(): \Generator { + public static function providerCandidates(): \Generator { $generate_definition = function (string $label_and_id, array $overrides): CKEditor5PluginDefinition { $annotation = [ 'provider' => 'test', diff --git a/core/modules/ckeditor5/tests/src/Unit/SourceEditingPluginTest.php b/core/modules/ckeditor5/tests/src/Unit/SourceEditingPluginTest.php index 13060bd98a8d..b32146fba100 100644 --- a/core/modules/ckeditor5/tests/src/Unit/SourceEditingPluginTest.php +++ b/core/modules/ckeditor5/tests/src/Unit/SourceEditingPluginTest.php @@ -18,7 +18,7 @@ class SourceEditingPluginTest extends UnitTestCase { /** * Provides a list of configs to test. */ - public function providerGetDynamicPluginConfig(): array { + public static function providerGetDynamicPluginConfig(): array { return [ 'Empty array of allowed tags' => [ [ diff --git a/core/modules/ckeditor5/tests/src/Unit/StylePluginTest.php b/core/modules/ckeditor5/tests/src/Unit/StylePluginTest.php index 1418467d8dd2..6ca265b51ec6 100644 --- a/core/modules/ckeditor5/tests/src/Unit/StylePluginTest.php +++ b/core/modules/ckeditor5/tests/src/Unit/StylePluginTest.php @@ -18,7 +18,7 @@ class StylePluginTest extends UnitTestCase { /** * Provides a list of configs to test. */ - public function providerGetDynamicPluginConfig(): array { + public static function providerGetDynamicPluginConfig(): array { return [ 'default configuration (empty)' => [ [ diff --git a/core/modules/comment/tests/src/Kernel/CommentOrphanTest.php b/core/modules/comment/tests/src/Kernel/CommentOrphanTest.php index 73fdf4e8039e..492eb6ffc9cc 100644 --- a/core/modules/comment/tests/src/Kernel/CommentOrphanTest.php +++ b/core/modules/comment/tests/src/Kernel/CommentOrphanTest.php @@ -124,7 +124,7 @@ class CommentOrphanTest extends EntityKernelTestBase { /** * Provides test data for testOrphan. */ - public function providerTestOrphan() { + public static function providerTestOrphan() { return [ ['entity_id'], ['uid'], diff --git a/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentTypeTest.php b/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentTypeTest.php index 084a8e1005d1..8d53bee41ba0 100644 --- a/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentTypeTest.php +++ b/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentTypeTest.php @@ -113,7 +113,7 @@ class MigrateCommentTypeTest extends MigrateDrupal6TestBase { /** * Provides test cases for ::testNoCommentTypeMigration(). */ - public function providerTestNoCommentTypeMigration() { + public static function providerTestNoCommentTypeMigration() { return [ 'Node module is disabled in source' => [ 'Disabled source modules' => ['node'], diff --git a/core/modules/comment/tests/src/Kernel/Migrate/d7/CommentEntityTranslationCheckRequirementsTest.php b/core/modules/comment/tests/src/Kernel/Migrate/d7/CommentEntityTranslationCheckRequirementsTest.php index ff780ae89af4..217427c6215c 100644 --- a/core/modules/comment/tests/src/Kernel/Migrate/d7/CommentEntityTranslationCheckRequirementsTest.php +++ b/core/modules/comment/tests/src/Kernel/Migrate/d7/CommentEntityTranslationCheckRequirementsTest.php @@ -46,7 +46,7 @@ class CommentEntityTranslationCheckRequirementsTest extends MigrateDrupal7TestBa * * @return string[][] */ - public function providerTestCheckRequirements() { + public static function providerTestCheckRequirements() { return [ ['comment'], ['node'], diff --git a/core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentTypeTest.php b/core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentTypeTest.php index 770464d971f7..2a82104ed5c6 100644 --- a/core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentTypeTest.php +++ b/core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentTypeTest.php @@ -119,7 +119,7 @@ class MigrateCommentTypeTest extends MigrateDrupal7TestBase { /** * Provides test cases for ::testNoCommentTypeMigration(). */ - public function providerTestNoCommentTypeMigration() { + public static function providerTestNoCommentTypeMigration() { return [ 'Node module is disabled in source' => [ 'Disabled source modules' => ['node'], diff --git a/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/CommentTypeRequirementsTest.php b/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/CommentTypeRequirementsTest.php index 7a09ad3cf8eb..03a9b7ed536b 100644 --- a/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/CommentTypeRequirementsTest.php +++ b/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/CommentTypeRequirementsTest.php @@ -47,7 +47,7 @@ class CommentTypeRequirementsTest extends MigrateDrupal7TestBase { /** * Test cases for ::testCheckCommentTypeRequirements(). */ - public function providerTestCheckCommentTypeRequirements() { + public static function providerTestCheckCommentTypeRequirements() { return [ 'D6 comment is disabled on source' => [ 'Disabled source modules' => ['comment'], diff --git a/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/CommentTypeTest.php b/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/CommentTypeTest.php index 91d1bfb41c06..f838a575a5bf 100644 --- a/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/CommentTypeTest.php +++ b/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/CommentTypeTest.php @@ -21,7 +21,7 @@ class CommentTypeTest extends MigrateSqlSourceTestBase { /** * {@inheritdoc} */ - public function providerSource() { + public static function providerSource() { $node_type_rows = [ [ 'type' => 'page', diff --git a/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/d6/CommentSourceWithHighWaterTest.php b/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/d6/CommentSourceWithHighWaterTest.php index 7370609aa24a..69a932f36110 100644 --- a/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/d6/CommentSourceWithHighWaterTest.php +++ b/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/d6/CommentSourceWithHighWaterTest.php @@ -21,7 +21,7 @@ class CommentSourceWithHighWaterTest extends MigrateSqlSourceTestBase { /** * {@inheritdoc} */ - public function providerSource() { + public static function providerSource() { $tests = []; // The source data. diff --git a/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/d6/CommentTest.php b/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/d6/CommentTest.php index 76f6ac2a341c..38191327f65c 100644 --- a/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/d6/CommentTest.php +++ b/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/d6/CommentTest.php @@ -20,7 +20,7 @@ class CommentTest extends MigrateSqlSourceTestBase { /** * {@inheritdoc} */ - public function providerSource() { + public static function providerSource() { $tests = []; // The source data. diff --git a/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/d7/CommentEntityTranslationTest.php b/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/d7/CommentEntityTranslationTest.php index 800929388fe5..8823e90ff9d9 100644 --- a/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/d7/CommentEntityTranslationTest.php +++ b/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/d7/CommentEntityTranslationTest.php @@ -22,7 +22,7 @@ class CommentEntityTranslationTest extends MigrateSqlSourceTestBase { /** * {@inheritdoc} */ - public function providerSource() { + public static function providerSource() { $tests = []; // The source data. diff --git a/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/d7/CommentTest.php b/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/d7/CommentTest.php index ad8f59029319..cca51f2797f6 100644 --- a/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/d7/CommentTest.php +++ b/core/modules/comment/tests/src/Kernel/Plugin/migrate/source/d7/CommentTest.php @@ -22,7 +22,7 @@ class CommentTest extends MigrateSqlSourceTestBase { /** * {@inheritdoc} */ - public function providerSource() { + public static function providerSource() { $tests = []; // The source data. diff --git a/core/modules/config/tests/src/Unit/Menu/ConfigLocalTasksTest.php b/core/modules/config/tests/src/Unit/Menu/ConfigLocalTasksTest.php index 496b57fbfbc8..753f949776d8 100644 --- a/core/modules/config/tests/src/Unit/Menu/ConfigLocalTasksTest.php +++ b/core/modules/config/tests/src/Unit/Menu/ConfigLocalTasksTest.php @@ -33,7 +33,7 @@ class ConfigLocalTasksTest extends LocalTaskIntegrationTestBase { /** * Provides a list of routes to test. */ - public function getConfigAdminRoutes() { + public static function getConfigAdminRoutes() { return [ ['config.sync', [['config.sync', 'config.import', 'config.export']]], ['config.import_full', [['config.sync', 'config.import', 'config.export'], ['config.import_full', 'config.import_single']]], diff --git a/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/ProfileFieldTranslationTest.php b/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/ProfileFieldTranslationTest.php index 22dd4150f33e..233fd4c4c7b9 100644 --- a/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/ProfileFieldTranslationTest.php +++ b/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/ProfileFieldTranslationTest.php @@ -22,7 +22,7 @@ class ProfileFieldTranslationTest extends MigrateSqlSourceTestBase { /** * {@inheritdoc} */ - public function providerSource() { + public static function providerSource() { $test = []; $test[0]['source_data'] = [ 'profile_fields' => [ diff --git a/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php b/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php index 23a13bed5f97..2eaa4a14d72b 100644 --- a/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php +++ b/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php @@ -523,7 +523,7 @@ class ConfigNamesMapperTest extends UnitTestCase { * hasConfigSchema() as the first value and the expected return value of * ConfigNamesMapper::hasSchema() as the second value. */ - public function providerTestHasSchema() { + public static function providerTestHasSchema() { return [ [[TRUE], TRUE], [[FALSE], FALSE], @@ -570,7 +570,7 @@ class ConfigNamesMapperTest extends UnitTestCase { * hasTranslatable() as the first value and the expected return value of * ConfigNamesMapper::hasTranslatable() as the second value. */ - public function providerTestHasTranslatable() { + public static function providerTestHasTranslatable() { return [ [[], FALSE], [[TRUE], TRUE], @@ -621,7 +621,7 @@ class ConfigNamesMapperTest extends UnitTestCase { * hasTranslation() as the first value and the expected return value of * ConfigNamesMapper::hasTranslation() as the second value. */ - public function providerTestHasTranslation() { + public static function providerTestHasTranslation() { return [ [[TRUE], TRUE], [[FALSE], FALSE], diff --git a/core/modules/contact/tests/src/Kernel/Plugin/migrate/source/ContactCategoryTest.php b/core/modules/contact/tests/src/Kernel/Plugin/migrate/source/ContactCategoryTest.php index 1ea9b337f239..c8f6fa86d3a6 100644 --- a/core/modules/contact/tests/src/Kernel/Plugin/migrate/source/ContactCategoryTest.php +++ b/core/modules/contact/tests/src/Kernel/Plugin/migrate/source/ContactCategoryTest.php @@ -20,7 +20,7 @@ class ContactCategoryTest extends MigrateSqlSourceTestBase { /** * {@inheritdoc} */ - public function providerSource() { + public static function providerSource() { $tests = [ [ 'source_data' => [], diff --git a/core/modules/contact/tests/src/Kernel/Plugin/migrate/source/d6/ContactSettingsTest.php b/core/modules/contact/tests/src/Kernel/Plugin/migrate/source/d6/ContactSettingsTest.php index 9c7952f74efb..18bdc577b440 100644 --- a/core/modules/contact/tests/src/Kernel/Plugin/migrate/source/d6/ContactSettingsTest.php +++ b/core/modules/contact/tests/src/Kernel/Plugin/migrate/source/d6/ContactSettingsTest.php @@ -20,7 +20,7 @@ class ContactSettingsTest extends MigrateSqlSourceTestBase { /** * {@inheritdoc} */ - public function providerSource() { + public static function providerSource() { $tests = []; $tests[0]['source_data']['variable'] = [ diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationActionsTest.php b/core/modules/content_moderation/tests/src/Functional/ModerationActionsTest.php index c678595ab694..6efd560f2c88 100644 --- a/core/modules/content_moderation/tests/src/Functional/ModerationActionsTest.php +++ b/core/modules/content_moderation/tests/src/Functional/ModerationActionsTest.php @@ -102,7 +102,7 @@ class ModerationActionsTest extends BrowserTestBase { * @return array * An array of test cases. */ - public function nodeStatusActionsTestCases() { + public static function nodeStatusActionsTestCases() { return [ 'Moderated bundle shows warning (publish action)' => [ 'node_publish_action', diff --git a/core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php b/core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php index cdaae0d2e41f..97554b4427db 100644 --- a/core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php +++ b/core/modules/content_moderation/tests/src/Functional/ViewsModerationStateFilterTest.php @@ -261,7 +261,7 @@ class ViewsModerationStateFilterTest extends ViewTestBase { * @return string[] * An array of view IDs. */ - public function providerTestWorkflowChanges() { + public static function providerTestWorkflowChanges() { return [ 'view on base table, filter on base table' => [ 'test_content_moderation_state_filter_base_table', diff --git a/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php b/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php index 8498d8d97668..e26ddcf5348a 100644 --- a/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php @@ -48,7 +48,7 @@ class ContentModerationPermissionsTest extends KernelTestBase { * @return array * Content moderation permissions based test cases. */ - public function permissionsTestCases() { + public static function permissionsTestCases() { return [ 'Simple Content Moderation Workflow' => [ [ diff --git a/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php b/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php index 6317a1f4ec5d..0a9b692f0239 100644 --- a/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php @@ -169,7 +169,7 @@ class ContentModerationStateTest extends KernelTestBase { /** * Test cases for basic moderation test. */ - public function basicModerationTestCases() { + public static function basicModerationTestCases() { return [ 'Nodes' => [ 'node', @@ -480,7 +480,7 @@ class ContentModerationStateTest extends KernelTestBase { /** * Test cases for ::testModerationWithSpecialLanguages(). */ - public function moderationWithSpecialLanguagesTestCases() { + public static function moderationWithSpecialLanguagesTestCases() { return [ 'Not specified to not specified' => [ LanguageInterface::LANGCODE_NOT_SPECIFIED, diff --git a/core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php b/core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php index f2e74d743079..80ebf288c217 100644 --- a/core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php @@ -364,7 +364,7 @@ class EntityStateChangeValidationTest extends KernelTestBase { /** * Test cases for ::testTransitionAccessValidation. */ - public function transitionAccessValidationTestCases() { + public static function transitionAccessValidationTestCases() { return [ 'Invalid transition, no permissions validated' => [ [], diff --git a/core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php b/core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php index 6090269ac3a1..377908fff29c 100644 --- a/core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php @@ -98,7 +98,7 @@ class EntityTypeInfoTest extends KernelTestBase { * - An entity type ID. * - Whether the entity type is moderatable or not. */ - public function providerTestEntityTypeAlter() { + public static function providerTestEntityTypeAlter() { $tests = []; $tests['non_internal_non_revisionable'] = ['entity_test', FALSE]; $tests['non_internal_revisionable'] = ['entity_test_rev', TRUE]; diff --git a/core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php b/core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php index 786e2b8924dc..b2b708594a2c 100644 --- a/core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/ModerationInformationTest.php @@ -97,7 +97,7 @@ class ModerationInformationTest extends KernelTestBase { /** * Test cases for ::testIsDefaultRevisionPublished. */ - public function isDefaultRevisionPublishedTestCases() { + public static function isDefaultRevisionPublishedTestCases() { return [ 'Draft to draft' => [ 'draft', diff --git a/core/modules/content_moderation/tests/src/Kernel/ModerationStateFieldItemListTest.php b/core/modules/content_moderation/tests/src/Kernel/ModerationStateFieldItemListTest.php index 25a32002e8bc..ac93ad291f97 100644 --- a/core/modules/content_moderation/tests/src/Kernel/ModerationStateFieldItemListTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/ModerationStateFieldItemListTest.php @@ -213,7 +213,7 @@ class ModerationStateFieldItemListTest extends KernelTestBase { /** * Data provider for ::testModerationStateChanges. */ - public function moderationStateChangesTestCases() { + public static function moderationStateChangesTestCases() { return [ 'Draft to draft' => [ 'draft', @@ -298,7 +298,7 @@ class ModerationStateFieldItemListTest extends KernelTestBase { /** * Test cases for ::testEntityUnserialize. */ - public function entityUnserializeTestCases() { + public static function entityUnserializeTestCases() { return [ 'Default draft state' => [ 'draft', @@ -332,7 +332,7 @@ class ModerationStateFieldItemListTest extends KernelTestBase { /** * Tests cases for ::testModeratedEntityWithExistingId. */ - public function moderatedEntityWithExistingIdTestCases() { + public static function moderatedEntityWithExistingIdTestCases() { return [ 'Draft non-default state' => [ 'draft', diff --git a/core/modules/content_moderation/tests/src/Kernel/StateFormatterTest.php b/core/modules/content_moderation/tests/src/Kernel/StateFormatterTest.php index 240af223463d..d8bc629e43f6 100644 --- a/core/modules/content_moderation/tests/src/Kernel/StateFormatterTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/StateFormatterTest.php @@ -64,7 +64,7 @@ class StateFormatterTest extends KernelTestBase { /** * Test cases for testStateFieldFormatter(). */ - public function formatterTestCases() { + public static function formatterTestCases() { return [ 'Draft State' => [ 'draft', diff --git a/core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php b/core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php index 9f9776682e5d..9e4b59a3097b 100644 --- a/core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php @@ -155,7 +155,7 @@ class WorkspacesContentModerationStateTest extends ContentModerationStateTest { /** * Test cases for basic moderation test. */ - public function basicModerationTestCases() { + public static function basicModerationTestCases() { return [ 'Nodes' => [ 'node', diff --git a/core/modules/content_moderation/tests/src/Unit/ContentModerationRouteSubscriberTest.php b/core/modules/content_moderation/tests/src/Unit/ContentModerationRouteSubscriberTest.php index 10970b448479..1c1a942d18aa 100644 --- a/core/modules/content_moderation/tests/src/Unit/ContentModerationRouteSubscriberTest.php +++ b/core/modules/content_moderation/tests/src/Unit/ContentModerationRouteSubscriberTest.php @@ -69,7 +69,7 @@ class ContentModerationRouteSubscriberTest extends UnitTestCase { /** * Data provider for ::testSetLatestRevisionFlag. */ - public function setLatestRevisionFlagTestCases() { + public static function setLatestRevisionFlagTestCases() { return [ 'Entity parameter not on an entity form' => [ [], diff --git a/core/modules/content_moderation/tests/src/Unit/ContentPreprocessTest.php b/core/modules/content_moderation/tests/src/Unit/ContentPreprocessTest.php index 0a12971d0dfc..7c8071b46e06 100644 --- a/core/modules/content_moderation/tests/src/Unit/ContentPreprocessTest.php +++ b/core/modules/content_moderation/tests/src/Unit/ContentPreprocessTest.php @@ -29,7 +29,7 @@ class ContentPreprocessTest extends UnitTestCase { /** * Data provider for self::testIsLatestVersionPage(). */ - public function routeNodeProvider() { + public static function routeNodeProvider() { return [ ['entity.node.canonical', 1, 1, FALSE, 'Not on the latest version tab route.'], ['entity.node.latest_version', 1, 1, TRUE, 'On the latest version tab route, with the route node.'], diff --git a/core/modules/content_moderation/tests/src/Unit/LatestRevisionCheckTest.php b/core/modules/content_moderation/tests/src/Unit/LatestRevisionCheckTest.php index c384425e3e5e..3f094dc07003 100644 --- a/core/modules/content_moderation/tests/src/Unit/LatestRevisionCheckTest.php +++ b/core/modules/content_moderation/tests/src/Unit/LatestRevisionCheckTest.php @@ -105,7 +105,7 @@ class LatestRevisionCheckTest extends UnitTestCase { /** * Data provider for testLastAccessPermissions(). */ - public function accessSituationProvider() { + public static function accessSituationProvider() { return [ // Node with global permissions and latest version. [Node::class, 'node', TRUE, ['view latest version', 'view any unpublished content'], FALSE, AccessResultAllowed::class], diff --git a/core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php b/core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php index 0d92309af9ae..f35b3b7f29ec 100644 --- a/core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php +++ b/core/modules/content_moderation/tests/src/Unit/ModerationInformationTest.php @@ -146,7 +146,7 @@ class ModerationInformationTest extends UnitTestCase { /** * Data provider for several tests. */ - public function providerWorkflow() { + public static function providerWorkflow() { return [ [NULL, FALSE], ['workflow', TRUE], diff --git a/core/modules/content_moderation/tests/src/Unit/StateTransitionValidationTest.php b/core/modules/content_moderation/tests/src/Unit/StateTransitionValidationTest.php index bb3141497593..b2aaaeee7827 100644 --- a/core/modules/content_moderation/tests/src/Unit/StateTransitionValidationTest.php +++ b/core/modules/content_moderation/tests/src/Unit/StateTransitionValidationTest.php @@ -98,7 +98,7 @@ class StateTransitionValidationTest extends UnitTestCase { /** * Data provider for the user transition test. */ - public function userTransitionsProvider() { + public static function userTransitionsProvider() { // The user has the right permission, so let it through. $ret[] = ['draft', 'draft', 'use process transition draft', TRUE, TRUE]; diff --git a/core/modules/content_translation/tests/src/Kernel/ContentTranslationHandlerTest.php b/core/modules/content_translation/tests/src/Kernel/ContentTranslationHandlerTest.php index 7d27abd9585c..000825ebdf57 100644 --- a/core/modules/content_translation/tests/src/Kernel/ContentTranslationHandlerTest.php +++ b/core/modules/content_translation/tests/src/Kernel/ContentTranslationHandlerTest.php @@ -134,7 +134,7 @@ class ContentTranslationHandlerTest extends KernelTestBase { * An array of test cases, each one containing the element to alter, the * form state, and the expected altered element. */ - public function providerTestEntityFormSharedElements() { + public static function providerTestEntityFormSharedElements() { $tests = []; $element = []; diff --git a/core/modules/content_translation/tests/src/Kernel/Plugin/migrate/source/d7/EntityTranslationSettingsTest.php b/core/modules/content_translation/tests/src/Kernel/Plugin/migrate/source/d7/EntityTranslationSettingsTest.php index 7a25bf599da2..50c7e84e5eb7 100644 --- a/core/modules/content_translation/tests/src/Kernel/Plugin/migrate/source/d7/EntityTranslationSettingsTest.php +++ b/core/modules/content_translation/tests/src/Kernel/Plugin/migrate/source/d7/EntityTranslationSettingsTest.php @@ -25,7 +25,7 @@ class EntityTranslationSettingsTest extends MigrateSqlSourceTestBase { /** * {@inheritdoc} */ - public function providerSource() { + public static function providerSource() { $tests = []; // Source data when there's no entity type that uses entity translation. diff --git a/core/modules/content_translation/tests/src/Unit/Menu/ContentTranslationLocalTasksTest.php b/core/modules/content_translation/tests/src/Unit/Menu/ContentTranslationLocalTasksTest.php index a21d03fb5763..be57e9eb4458 100644 --- a/core/modules/content_translation/tests/src/Unit/Menu/ContentTranslationLocalTasksTest.php +++ b/core/modules/content_translation/tests/src/Unit/Menu/ContentTranslationLocalTasksTest.php @@ -55,7 +55,7 @@ class ContentTranslationLocalTasksTest extends LocalTaskIntegrationTestBase { /** * Provides a list of routes to test. */ - public function providerTestBlockAdminDisplay() { + public static function providerTestBlockAdminDisplay() { return [ [ 'entity.node.canonical', diff --git a/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php b/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php index dc6cd8ef0fd2..418219627d2d 100644 --- a/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php +++ b/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php @@ -26,7 +26,7 @@ class ContextualUnitTest extends KernelTestBase { * @return array[] * Test cases. */ - public function contextualLinksDataProvider(): array { + public static function contextualLinksDataProvider(): array { $tests['one group, one dynamic path argument, no metadata'] = [ [ 'node' => [ diff --git a/core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php b/core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php index 5119e78b88b4..159b66797436 100644 --- a/core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php +++ b/core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php @@ -272,7 +272,7 @@ class DateTimeItemTest extends FieldKernelTestBase { /** * Provider for testDatetimeValidation(). */ - public function datetimeValidationProvider() { + public static function datetimeValidationProvider() { return [ // Valid ISO 8601 dates, but unsupported by DateTimeItem. ['2014-01-01T20:00:00Z'], @@ -332,7 +332,7 @@ class DateTimeItemTest extends FieldKernelTestBase { /** * Provider for testDatetimeValidation(). */ - public function dateOnlyValidationProvider() { + public static function dateOnlyValidationProvider() { return [ // Valid date strings, but unsupported by DateTimeItem. ['Thu, 03 Nov 2014'], diff --git a/core/modules/datetime/tests/src/Unit/Plugin/migrate/field/DateFieldTest.php b/core/modules/datetime/tests/src/Unit/Plugin/migrate/field/DateFieldTest.php index b5dc4b4f42b7..54833c375481 100644 --- a/core/modules/datetime/tests/src/Unit/Plugin/migrate/field/DateFieldTest.php +++ b/core/modules/datetime/tests/src/Unit/Plugin/migrate/field/DateFieldTest.php @@ -66,7 +66,7 @@ class DateFieldTest extends UnitTestCase { /** * Provides data for testDefineValueProcessPipeline(). */ - public function providerTestDefineValueProcessPipeline() { + public static function providerTestDefineValueProcessPipeline() { return [ [['type' => 'date'], 'Y-m-d\TH:i:s', 'Y-m-d\TH:i:s'], [['type' => 'datestamp'], 'U', 'U'], diff --git a/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php b/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php index ec4c927676db..c0d1d0f403ea 100644 --- a/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php +++ b/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php @@ -58,7 +58,7 @@ class StandardTest extends UnitTestCase { * * @see \Drupal\Tests\editor\Unit\editor\EditorXssFilter\StandardTest::testFilterXss() */ - public function providerTestFilterXss() { + public static function providerTestFilterXss() { $data = []; $data[] = ['

Hello, world!

Pink Fairy Armadillo', '

Hello, world!

Pink Fairy Armadillo']; $data[] = ['

Hello, world!

Pink Fairy Armadillo', '

Hello, world!

Pink Fairy Armadillo']; @@ -580,7 +580,7 @@ xss:ex/*XSS*//*/*/pression(alert("XSS"))\'>', * - The assertion message. * - (optional) The disallowed HTML tags to be passed to \Drupal\Component\Utility\Xss::filter(). */ - public function providerTestBlackListMode() { + public static function providerTestBlackListMode() { return [ [ 'Pink Fairy Armadillo