summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2017-03-06 11:25:01 (GMT)
committerNathaniel Catchpole2017-03-06 11:25:01 (GMT)
commit01f8bd64ed67a182dcf8cf155929918fbcdbee45 (patch)
treef1474c0e38a610ae5cb1286cec781432152bcc29
parent594fdb7aff79dd7e53ab32ae584bde36e0ce09c7 (diff)
Issue #2854529 by alexpott, xjm, klausi, Chi, Mixologic: Fix Drupal.Scope.MethodScope - all methods should have scopes
-rw-r--r--core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php2
-rw-r--r--core/lib/Drupal/Component/Gettext/PoHeader.php12
-rw-r--r--core/lib/Drupal/Component/Gettext/PoItem.php24
-rw-r--r--core/lib/Drupal/Component/Gettext/PoMemoryWriter.php10
-rw-r--r--core/lib/Drupal/Component/Gettext/PoStreamReader.php2
-rw-r--r--core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php2
-rw-r--r--core/lib/Drupal/Core/Access/RouteProcessorCsrf.php2
-rw-r--r--core/lib/Drupal/Core/Cache/DatabaseBackendFactory.php4
-rw-r--r--core/lib/Drupal/Core/Cache/MemoryBackendFactory.php2
-rw-r--r--core/lib/Drupal/Core/Cache/NullBackendFactory.php2
-rw-r--r--core/lib/Drupal/Core/Cache/PhpBackendFactory.php2
-rw-r--r--core/lib/Drupal/Core/Config/ConfigFactory.php2
-rw-r--r--core/lib/Drupal/Core/Config/ConfigFactoryOverrideBase.php2
-rw-r--r--core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php2
-rw-r--r--core/lib/Drupal/Core/Config/Entity/Query/Query.php2
-rw-r--r--core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php2
-rw-r--r--core/lib/Drupal/Core/Config/FileStorageFactory.php4
-rw-r--r--core/lib/Drupal/Core/Config/Schema/ConfigSchemaDiscovery.php2
-rw-r--r--core/lib/Drupal/Core/Database/Connection.php2
-rw-r--r--core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php2
-rw-r--r--core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php4
-rw-r--r--core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php6
-rw-r--r--core/lib/Drupal/Core/Database/Query/Condition.php2
-rw-r--r--core/lib/Drupal/Core/Database/Query/SelectExtender.php4
-rw-r--r--core/lib/Drupal/Core/Database/Schema.php2
-rw-r--r--core/lib/Drupal/Core/Database/StatementInterface.php2
-rw-r--r--core/lib/Drupal/Core/Entity/Query/QueryBase.php2
-rw-r--r--core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php2
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/AcceptNegotiation406.php2
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php2
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php2
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/KernelDestructionSubscriber.php2
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php2
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/MenuRouterRebuildSubscriber.php2
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/ParamConverterSubscriber.php2
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php2
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/RedirectLeadingSlashesSubscriber.php2
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php2
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/ReplicaDatabaseIgnoreSubscriber.php2
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/RequestCloseSubscriber.php4
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/RouteEnhancerSubscriber.php2
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/RouteFilterSubscriber.php2
-rw-r--r--core/lib/Drupal/Core/EventSubscriber/RouteMethodSubscriber.php2
-rw-r--r--core/lib/Drupal/Core/FileTransfer/FTP.php2
-rw-r--r--core/lib/Drupal/Core/FileTransfer/FTPExtension.php2
-rw-r--r--core/lib/Drupal/Core/FileTransfer/FileTransfer.php12
-rw-r--r--core/lib/Drupal/Core/FileTransfer/FileTransferException.php2
-rw-r--r--core/lib/Drupal/Core/FileTransfer/Local.php2
-rw-r--r--core/lib/Drupal/Core/FileTransfer/SSH.php6
-rw-r--r--core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php6
-rw-r--r--core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php2
-rw-r--r--core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseFactory.php2
-rw-r--r--core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php2
-rw-r--r--core/lib/Drupal/Core/Password/PhpassHashedPassword.php2
-rw-r--r--core/lib/Drupal/Core/PhpStorage/PhpStorageFactory.php2
-rw-r--r--core/lib/Drupal/Core/Plugin/Discovery/AnnotatedClassDiscovery.php2
-rw-r--r--core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php2
-rw-r--r--core/lib/Drupal/Core/Plugin/Discovery/YamlDiscovery.php2
-rw-r--r--core/lib/Drupal/Core/PrivateKey.php2
-rw-r--r--core/lib/Drupal/Core/Queue/DatabaseQueue.php2
-rw-r--r--core/lib/Drupal/Core/Queue/QueueDatabaseFactory.php2
-rw-r--r--core/lib/Drupal/Core/Queue/QueueFactory.php2
-rw-r--r--core/lib/Drupal/Core/Routing/RouteProvider.php2
-rw-r--r--core/lib/Drupal/Core/Session/UserSession.php4
-rw-r--r--core/lib/Drupal/Core/StreamWrapper/LocalStream.php8
-rw-r--r--core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php4
-rw-r--r--core/lib/Drupal/Core/Template/AttributeValueBase.php2
-rw-r--r--core/lib/Drupal/Core/Updater/Theme.php2
-rw-r--r--core/lib/Drupal/Core/Utility/ProjectInfo.php6
-rw-r--r--core/lib/Drupal/Core/Utility/ThemeRegistry.php4
-rw-r--r--core/modules/action/tests/src/Functional/ConfigurationTest.php2
-rw-r--r--core/modules/aggregator/src/Tests/AggregatorAdminTest.php2
-rw-r--r--core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php2
-rw-r--r--core/modules/basic_auth/src/Tests/Authentication/BasicAuthTest.php8
-rw-r--r--core/modules/big_pipe/src/EventSubscriber/NoBigPipeRouteAlterSubscriber.php2
-rw-r--r--core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php2
-rw-r--r--core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php2
-rw-r--r--core/modules/block/src/Tests/BlockAdminThemeTest.php4
-rw-r--r--core/modules/block/src/Tests/BlockFormInBlockTest.php2
-rw-r--r--core/modules/block/src/Tests/BlockRenderOrderTest.php2
-rw-r--r--core/modules/block/src/Tests/BlockTest.php12
-rw-r--r--core/modules/block/src/Tests/BlockUiTest.php2
-rw-r--r--core/modules/block/src/Tests/NonDefaultBlockAdminTest.php2
-rw-r--r--core/modules/block/tests/src/Functional/BlockCacheTest.php10
-rw-r--r--core/modules/block/tests/src/Functional/BlockHtmlTest.php2
-rw-r--r--core/modules/block/tests/src/Functional/BlockInvalidRegionTest.php2
-rw-r--r--core/modules/block/tests/src/Functional/BlockTemplateSuggestionsTest.php2
-rw-r--r--core/modules/block/tests/src/Functional/NewDefaultThemeBlocksTest.php2
-rw-r--r--core/modules/block_content/src/Tests/Views/BlockContentFieldFilterTest.php2
-rw-r--r--core/modules/book/src/Plugin/Block/BookNavigationBlock.php2
-rw-r--r--core/modules/book/src/Tests/BookTest.php20
-rw-r--r--core/modules/ckeditor/src/CKEditorPluginBase.php6
-rw-r--r--core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php2
-rw-r--r--core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php2
-rw-r--r--core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php2
-rw-r--r--core/modules/ckeditor/src/Tests/CKEditorAdminTest.php4
-rw-r--r--core/modules/ckeditor/src/Tests/CKEditorLoadingTest.php4
-rw-r--r--core/modules/ckeditor/src/Tests/CKEditorStylesComboAdminTest.php2
-rw-r--r--core/modules/ckeditor/tests/modules/src/Kernel/CKEditorPluginManagerTest.php4
-rw-r--r--core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php14
-rw-r--r--core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/Llama.php8
-rw-r--r--core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaButton.php4
-rw-r--r--core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextual.php4
-rw-r--r--core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php8
-rw-r--r--core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php6
-rw-r--r--core/modules/color/tests/src/Functional/ColorConfigSchemaTest.php2
-rw-r--r--core/modules/color/tests/src/Functional/ColorSafePreviewTest.php2
-rw-r--r--core/modules/color/tests/src/Functional/ColorTest.php10
-rw-r--r--core/modules/comment/src/Plugin/views/argument/UserUid.php2
-rw-r--r--core/modules/comment/src/Tests/CommentActionsTest.php4
-rw-r--r--core/modules/comment/src/Tests/CommentAdminTest.php4
-rw-r--r--core/modules/comment/src/Tests/CommentAnonymousTest.php2
-rw-r--r--core/modules/comment/src/Tests/CommentBlockTest.php2
-rw-r--r--core/modules/comment/src/Tests/CommentCSSTest.php2
-rw-r--r--core/modules/comment/src/Tests/CommentFieldsTest.php4
-rw-r--r--core/modules/comment/src/Tests/CommentLanguageTest.php2
-rw-r--r--core/modules/comment/src/Tests/CommentNodeAccessTest.php2
-rw-r--r--core/modules/comment/src/Tests/CommentNodeChangesTest.php2
-rw-r--r--core/modules/comment/src/Tests/CommentNonNodeTest.php12
-rw-r--r--core/modules/comment/src/Tests/CommentPagerTest.php12
-rw-r--r--core/modules/comment/src/Tests/CommentPreviewTest.php4
-rw-r--r--core/modules/comment/src/Tests/CommentRssTest.php2
-rw-r--r--core/modules/comment/src/Tests/CommentStatisticsTest.php2
-rw-r--r--core/modules/comment/src/Tests/CommentTestBase.php12
-rw-r--r--core/modules/comment/src/Tests/CommentThreadingTest.php2
-rw-r--r--core/modules/comment/src/Tests/CommentTokenReplaceTest.php2
-rw-r--r--core/modules/comment/src/Tests/CommentTranslationUITest.php4
-rw-r--r--core/modules/comment/src/Tests/CommentUninstallTest.php4
-rw-r--r--core/modules/comment/src/Tests/Views/ArgumentUserUIDTest.php2
-rw-r--r--core/modules/comment/src/Tests/Views/CommentFieldFilterTest.php2
-rw-r--r--core/modules/comment/src/Tests/Views/FilterUserUIDTest.php2
-rw-r--r--core/modules/config/src/ConfigSubscriber.php2
-rw-r--r--core/modules/config/src/Tests/ConfigEntityListTest.php4
-rw-r--r--core/modules/config/src/Tests/ConfigEntityTest.php4
-rw-r--r--core/modules/config/src/Tests/ConfigExportUITest.php2
-rw-r--r--core/modules/config/src/Tests/ConfigImportUITest.php12
-rw-r--r--core/modules/config/src/Tests/ConfigImportUploadTest.php2
-rw-r--r--core/modules/config/src/Tests/ConfigInstallWebTest.php2
-rw-r--r--core/modules/config/tests/config_collection_install_test/src/EventSubscriber.php2
-rw-r--r--core/modules/config/tests/config_events_test/src/EventSubscriber.php2
-rw-r--r--core/modules/config/tests/config_import_test/src/EventSubscriber.php2
-rw-r--r--core/modules/config/tests/config_test/src/ConfigTestController.php4
-rw-r--r--core/modules/config/tests/src/Functional/ConfigDependencyWebTest.php2
-rw-r--r--core/modules/config/tests/src/Functional/ConfigEntityListMultilingualTest.php2
-rw-r--r--core/modules/config/tests/src/Functional/ConfigEntityStatusUITest.php2
-rw-r--r--core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php2
-rw-r--r--core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php2
-rw-r--r--core/modules/contact/src/Tests/ContactPersonalTest.php8
-rw-r--r--core/modules/contact/src/Tests/ContactSitewideTest.php12
-rw-r--r--core/modules/contact/tests/src/Functional/ContactAuthenticatedUserTest.php2
-rw-r--r--core/modules/content_translation/src/ContentTranslationHandler.php8
-rw-r--r--core/modules/content_translation/src/ContentTranslationManager.php2
-rw-r--r--core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php8
-rw-r--r--core/modules/content_translation/src/Tests/ContentTranslationSyncImageTest.php2
-rw-r--r--core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php2
-rw-r--r--core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php2
-rw-r--r--core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php2
-rw-r--r--core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php2
-rw-r--r--core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php2
-rw-r--r--core/modules/content_translation/tests/src/Kernel/ContentTranslationSettingsApiTest.php2
-rw-r--r--core/modules/contextual/src/Tests/ContextualDynamicContextTest.php2
-rw-r--r--core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php6
-rw-r--r--core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDatelistWidget.php2
-rw-r--r--core/modules/datetime/src/Tests/DateTimeFieldTest.php10
-rw-r--r--core/modules/dblog/src/Tests/DbLogTest.php2
-rw-r--r--core/modules/dblog/tests/src/Functional/ConnectionFailureTest.php2
-rw-r--r--core/modules/editor/src/Element.php2
-rw-r--r--core/modules/editor/src/Plugin/InPlaceEditor/Editor.php2
-rw-r--r--core/modules/editor/src/Tests/EditorSecurityTest.php6
-rw-r--r--core/modules/editor/tests/modules/src/Plugin/Editor/UnicornEditor.php6
-rw-r--r--core/modules/editor/tests/src/Functional/EditorPrivateFileReferenceFilterTest.php2
-rw-r--r--core/modules/editor/tests/src/Kernel/EditorFileReferenceFilterTest.php2
-rw-r--r--core/modules/field/src/Tests/Boolean/BooleanFieldTest.php2
-rw-r--r--core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php2
-rw-r--r--core/modules/field/src/Tests/Email/EmailFieldTest.php2
-rw-r--r--core/modules/field/src/Tests/FieldTestBase.php4
-rw-r--r--core/modules/field/src/Tests/FormTest.php18
-rw-r--r--core/modules/field/src/Tests/NestedFormTest.php2
-rw-r--r--core/modules/field/src/Tests/Number/NumberFieldTest.php14
-rw-r--r--core/modules/field/src/Tests/String/StringFieldTest.php4
-rw-r--r--core/modules/field/src/Tests/Views/FieldTestBase.php4
-rw-r--r--core/modules/field/src/Tests/reEnableModuleFieldTest.php2
-rw-r--r--core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldDefaultValueTest.php4
-rw-r--r--core/modules/field/tests/src/Functional/FieldAccessTest.php2
-rw-r--r--core/modules/field/tests/src/Functional/FieldTestBase.php4
-rw-r--r--core/modules/field/tests/src/Functional/TranslationWebTest.php2
-rw-r--r--core/modules/field/tests/src/Kernel/BulkDeleteTest.php8
-rw-r--r--core/modules/field/tests/src/Kernel/DisplayApiTest.php6
-rw-r--r--core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php10
-rw-r--r--core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php14
-rw-r--r--core/modules/field/tests/src/Kernel/FieldCrudTest.php12
-rw-r--r--core/modules/field/tests/src/Kernel/FieldImportChangeTest.php2
-rw-r--r--core/modules/field/tests/src/Kernel/FieldImportCreateTest.php4
-rw-r--r--core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php16
-rw-r--r--core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php2
-rw-r--r--core/modules/field/tests/src/Kernel/FieldValidationTest.php4
-rw-r--r--core/modules/field/tests/src/Kernel/TranslationTest.php2
-rw-r--r--core/modules/field/tests/src/Kernel/WidgetPluginManagerTest.php2
-rw-r--r--core/modules/field_ui/src/Tests/FieldUIDeleteTest.php2
-rw-r--r--core/modules/field_ui/src/Tests/ManageDisplayTest.php16
-rw-r--r--core/modules/field_ui/src/Tests/ManageFieldsTest.php34
-rw-r--r--core/modules/field_ui/tests/src/Functional/FieldUIIndentationTest.php2
-rw-r--r--core/modules/file/src/Tests/DownloadTest.php4
-rw-r--r--core/modules/file/src/Tests/FileFieldDisplayTest.php6
-rw-r--r--core/modules/file/src/Tests/FileFieldPathTest.php4
-rw-r--r--core/modules/file/src/Tests/FileFieldRSSContentTest.php2
-rw-r--r--core/modules/file/src/Tests/FileFieldRevisionTest.php2
-rw-r--r--core/modules/file/src/Tests/FileFieldTestBase.php28
-rw-r--r--core/modules/file/src/Tests/FileFieldValidateTest.php6
-rw-r--r--core/modules/file/src/Tests/FileFieldWidgetTest.php10
-rw-r--r--core/modules/file/src/Tests/FileListingTest.php4
-rw-r--r--core/modules/file/src/Tests/FileManagedFileElementTest.php2
-rw-r--r--core/modules/file/src/Tests/FileManagedTestBase.php14
-rw-r--r--core/modules/file/src/Tests/FilePrivateTest.php2
-rw-r--r--core/modules/file/src/Tests/FileTokenReplaceTest.php2
-rw-r--r--core/modules/file/src/Tests/SaveUploadTest.php18
-rw-r--r--core/modules/file/tests/file_test/src/StreamWrapper/DummyReadOnlyStreamWrapper.php6
-rw-r--r--core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php2
-rw-r--r--core/modules/file/tests/file_test/src/StreamWrapper/DummyStreamWrapper.php6
-rw-r--r--core/modules/file/tests/src/Functional/FileFieldTestBase.php24
-rw-r--r--core/modules/file/tests/src/Functional/FileManagedAccessTest.php2
-rw-r--r--core/modules/file/tests/src/Functional/FileManagedTestBase.php14
-rw-r--r--core/modules/file/tests/src/Kernel/CopyTest.php8
-rw-r--r--core/modules/file/tests/src/Kernel/DeleteTest.php4
-rw-r--r--core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php14
-rw-r--r--core/modules/file/tests/src/Kernel/LoadTest.php10
-rw-r--r--core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadTest.php2
-rw-r--r--core/modules/file/tests/src/Kernel/MoveTest.php10
-rw-r--r--core/modules/file/tests/src/Kernel/SaveDataTest.php10
-rw-r--r--core/modules/file/tests/src/Kernel/SaveTest.php2
-rw-r--r--core/modules/file/tests/src/Kernel/SpaceUsedTest.php2
-rw-r--r--core/modules/file/tests/src/Kernel/UsageTest.php14
-rw-r--r--core/modules/file/tests/src/Kernel/ValidateTest.php2
-rw-r--r--core/modules/file/tests/src/Kernel/ValidatorTest.php10
-rw-r--r--core/modules/filter/src/Controller/FilterController.php2
-rw-r--r--core/modules/filter/src/Tests/FilterAdminTest.php8
-rw-r--r--core/modules/filter/src/Tests/FilterFormatAccessTest.php6
-rw-r--r--core/modules/filter/src/Tests/FilterHtmlImageSecureTest.php2
-rw-r--r--core/modules/filter/tests/src/Functional/FilterCaptionTwigDebugTest.php2
-rw-r--r--core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php2
-rw-r--r--core/modules/filter/tests/src/Functional/FilterHooksTest.php2
-rw-r--r--core/modules/filter/tests/src/Functional/FilterNoFormatTest.php2
-rw-r--r--core/modules/filter/tests/src/Functional/FilterSecurityTest.php4
-rw-r--r--core/modules/filter/tests/src/Kernel/FilterAPITest.php10
-rw-r--r--core/modules/filter/tests/src/Kernel/FilterCrudTest.php4
-rw-r--r--core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php4
-rw-r--r--core/modules/filter/tests/src/Kernel/FilterKernelTest.php26
-rw-r--r--core/modules/filter/tests/src/Kernel/FilterSettingsTest.php2
-rw-r--r--core/modules/forum/src/ForumIndexStorage.php2
-rw-r--r--core/modules/forum/tests/src/Functional/ForumIndexTest.php2
-rw-r--r--core/modules/forum/tests/src/Functional/ForumNodeAccessTest.php2
-rw-r--r--core/modules/forum/tests/src/Functional/ForumTest.php14
-rw-r--r--core/modules/history/src/Tests/HistoryTest.php2
-rw-r--r--core/modules/image/src/Tests/FileMoveTest.php2
-rw-r--r--core/modules/image/src/Tests/ImageAdminStylesTest.php14
-rw-r--r--core/modules/image/src/Tests/ImageDimensionsTest.php2
-rw-r--r--core/modules/image/src/Tests/ImageFieldDisplayTest.php10
-rw-r--r--core/modules/image/src/Tests/ImageFieldTestBase.php4
-rw-r--r--core/modules/image/src/Tests/ImageFieldValidateTest.php4
-rw-r--r--core/modules/image/src/Tests/ImageStyleFlushTest.php6
-rw-r--r--core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php16
-rw-r--r--core/modules/image/src/Tests/ImageThemeFunctionTest.php6
-rw-r--r--core/modules/image/src/Tests/QuickEditImageControllerTest.php10
-rw-r--r--core/modules/image/tests/src/Functional/ImageEffectsTest.php16
-rw-r--r--core/modules/image/tests/src/Functional/ImageFieldTestBase.php4
-rw-r--r--core/modules/image/tests/src/Kernel/ImageFormatterTest.php2
-rw-r--r--core/modules/language/src/EventSubscriber/ConfigSubscriber.php2
-rw-r--r--core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php2
-rw-r--r--core/modules/language/src/LanguageNegotiator.php6
-rw-r--r--core/modules/language/src/LanguageNegotiatorInterface.php6
-rw-r--r--core/modules/language/src/Tests/LanguageConfigurationTest.php4
-rw-r--r--core/modules/language/src/Tests/LanguageListTest.php4
-rw-r--r--core/modules/language/src/Tests/LanguageLocaleListTest.php2
-rw-r--r--core/modules/language/src/Tests/LanguageSwitchingTest.php8
-rw-r--r--core/modules/language/src/Tests/LanguageUILanguageNegotiationTest.php6
-rw-r--r--core/modules/language/src/Tests/LanguageUrlRewritingTest.php4
-rw-r--r--core/modules/language/tests/src/Functional/LanguageBrowserDetectionTest.php2
-rw-r--r--core/modules/language/tests/src/Functional/LanguageConfigSchemaTest.php2
-rw-r--r--core/modules/language/tests/src/Functional/LanguageListModuleInstallTest.php2
-rw-r--r--core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php2
-rw-r--r--core/modules/language/tests/src/Functional/LanguagePathMonolingualTest.php2
-rw-r--r--core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php4
-rw-r--r--core/modules/link/src/Tests/LinkFieldTest.php8
-rw-r--r--core/modules/link/tests/src/Functional/LinkFieldUITest.php2
-rw-r--r--core/modules/locale/src/LocaleProjectStorage.php2
-rw-r--r--core/modules/locale/src/StreamWrapper/TranslationsStream.php4
-rw-r--r--core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php4
-rw-r--r--core/modules/locale/src/Tests/LocaleFileSystemFormTest.php2
-rw-r--r--core/modules/locale/tests/src/Functional/LocaleTranslatedSchemaDefinitionTest.php4
-rw-r--r--core/modules/menu_link_content/src/Tests/MenuLinkContentTranslationUITest.php2
-rw-r--r--core/modules/menu_link_content/tests/src/Functional/LinksTest.php6
-rw-r--r--core/modules/menu_ui/src/Tests/MenuLanguageTest.php2
-rw-r--r--core/modules/menu_ui/src/Tests/MenuNodeTest.php4
-rw-r--r--core/modules/menu_ui/src/Tests/MenuTest.php38
-rw-r--r--core/modules/menu_ui/src/Tests/MenuWebTestBase.php2
-rw-r--r--core/modules/menu_ui/tests/src/Functional/MenuLinkReorderTest.php2
-rw-r--r--core/modules/node/src/NodeForm.php2
-rw-r--r--core/modules/node/src/Plugin/views/argument/Type.php4
-rw-r--r--core/modules/node/src/Tests/NodeAccessBaseTableTest.php2
-rw-r--r--core/modules/node/src/Tests/NodeAdminTest.php4
-rw-r--r--core/modules/node/src/Tests/NodeEntityViewModeAlterTest.php2
-rw-r--r--core/modules/node/src/Tests/NodeFieldMultilingualTest.php4
-rw-r--r--core/modules/node/src/Tests/NodeFormButtonsTest.php2
-rw-r--r--core/modules/node/src/Tests/NodeQueryAlterTest.php8
-rw-r--r--core/modules/node/src/Tests/NodeRevisionPermissionsTest.php4
-rw-r--r--core/modules/node/src/Tests/NodeRevisionsTest.php4
-rw-r--r--core/modules/node/src/Tests/NodeTestBase.php6
-rw-r--r--core/modules/node/src/Tests/NodeTitleTest.php2
-rw-r--r--core/modules/node/src/Tests/NodeTitleXSSTest.php2
-rw-r--r--core/modules/node/src/Tests/NodeTypeTest.php8
-rw-r--r--core/modules/node/src/Tests/PagePreviewTest.php4
-rw-r--r--core/modules/node/src/Tests/Views/NodeFieldFilterTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/MultiStepNodeFormBasicOptionsTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeAccessFieldTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeAccessLanguageAwareCombinationTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeAccessLanguageAwareTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeAccessLanguageTest.php6
-rw-r--r--core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeAccessRecordsTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeCreationTest.php8
-rw-r--r--core/modules/node/tests/src/Functional/NodeLoadMultipleTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodePostSettingsTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeRSSContentTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeRevisionsUiBypassAccessTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeSaveTest.php8
-rw-r--r--core/modules/node/tests/src/Functional/NodeTemplateSuggestionsTest.php2
-rw-r--r--core/modules/node/tests/src/Functional/NodeTestBase.php6
-rw-r--r--core/modules/node/tests/src/Functional/NodeTypeInitialLanguageTest.php4
-rw-r--r--core/modules/node/tests/src/Functional/PageViewTest.php2
-rw-r--r--core/modules/node/tests/src/Kernel/NodeConditionTest.php2
-rw-r--r--core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php2
-rw-r--r--core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php2
-rw-r--r--core/modules/options/src/Tests/OptionsDynamicValuesValidationTest.php2
-rw-r--r--core/modules/options/src/Tests/OptionsFieldUITest.php12
-rw-r--r--core/modules/options/src/Tests/OptionsSelectDynamicValuesTest.php2
-rw-r--r--core/modules/options/src/Tests/OptionsWidgetsTest.php10
-rw-r--r--core/modules/options/tests/src/Kernel/OptionsFieldTest.php2
-rw-r--r--core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php2
-rw-r--r--core/modules/page_cache/src/Tests/PageCacheTest.php12
-rw-r--r--core/modules/path/src/Tests/PathTaxonomyTermTest.php2
-rw-r--r--core/modules/path/tests/src/Functional/PathAliasTest.php10
-rw-r--r--core/modules/path/tests/src/Functional/PathLanguageTest.php2
-rw-r--r--core/modules/path/tests/src/Functional/PathLanguageUiTest.php6
-rw-r--r--core/modules/quickedit/src/Plugin/InPlaceEditorBase.php2
-rw-r--r--core/modules/rdf/src/SchemaOrgDataConverter.php2
-rw-r--r--core/modules/rdf/src/Tests/CommentAttributesTest.php4
-rw-r--r--core/modules/rdf/src/Tests/Field/TestDataConverter.php2
-rw-r--r--core/modules/rdf/src/Tests/GetNamespacesTest.php2
-rw-r--r--core/modules/rdf/src/Tests/ImageFieldAttributesTest.php2
-rw-r--r--core/modules/rdf/tests/src/Functional/EntityReferenceFieldAttributesTest.php2
-rw-r--r--core/modules/rdf/tests/src/Functional/FileFieldAttributesTest.php2
-rw-r--r--core/modules/rdf/tests/src/Functional/GetRdfNamespacesTest.php2
-rw-r--r--core/modules/rdf/tests/src/Functional/NodeAttributesTest.php2
-rw-r--r--core/modules/rdf/tests/src/Functional/TaxonomyAttributesTest.php2
-rw-r--r--core/modules/rdf/tests/src/Functional/UserAttributesTest.php2
-rw-r--r--core/modules/rdf/tests/src/Kernel/CrudTest.php6
-rw-r--r--core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php10
-rw-r--r--core/modules/responsive_image/src/Tests/ResponsiveImageFieldUiTest.php2
-rw-r--r--core/modules/rest/tests/src/Kernel/RequestHandlerTest.php8
-rw-r--r--core/modules/search/src/Tests/SearchAdvancedSearchFormTest.php4
-rw-r--r--core/modules/search/src/Tests/SearchCommentTest.php10
-rw-r--r--core/modules/search/src/Tests/SearchConfigSettingsFormTest.php6
-rw-r--r--core/modules/search/src/Tests/SearchEmbedFormTest.php2
-rw-r--r--core/modules/search/src/Tests/SearchLanguageTest.php2
-rw-r--r--core/modules/search/src/Tests/SearchNodeUpdateAndDeletionTest.php4
-rw-r--r--core/modules/search/src/Tests/SearchNumberMatchingTest.php2
-rw-r--r--core/modules/search/src/Tests/SearchNumbersTest.php2
-rw-r--r--core/modules/search/src/Tests/SearchPageCacheTagsTest.php2
-rw-r--r--core/modules/search/src/Tests/SearchPageTextTest.php4
-rw-r--r--core/modules/search/src/Tests/SearchPreprocessLangcodeTest.php4
-rw-r--r--core/modules/search/src/Tests/SearchQueryAlterTest.php2
-rw-r--r--core/modules/search/src/ViewsSearchQuery.php2
-rw-r--r--core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php2
-rw-r--r--core/modules/search/tests/src/Functional/SearchExactTest.php2
-rw-r--r--core/modules/search/tests/src/Functional/SearchKeywordsConditionsTest.php2
-rw-r--r--core/modules/search/tests/src/Functional/SearchMultilingualEntityTest.php2
-rw-r--r--core/modules/search/tests/src/Functional/SearchNodeDiacriticsTest.php2
-rw-r--r--core/modules/search/tests/src/Functional/SearchNodePunctuationTest.php2
-rw-r--r--core/modules/search/tests/src/Functional/SearchPageOverrideTest.php2
-rw-r--r--core/modules/search/tests/src/Functional/SearchSimplifyTest.php4
-rw-r--r--core/modules/search/tests/src/Functional/SearchTokenizerTest.php6
-rw-r--r--core/modules/search/tests/src/Kernel/SearchExcerptTest.php4
-rw-r--r--core/modules/search/tests/src/Kernel/SearchMatchTest.php14
-rw-r--r--core/modules/serialization/tests/src/Kernel/EntityResolverTest.php2
-rw-r--r--core/modules/shortcut/src/Tests/ShortcutSetsTest.php22
-rw-r--r--core/modules/shortcut/src/Tests/ShortcutTestBase.php4
-rw-r--r--core/modules/simpletest/src/KernelTestBase.php2
-rw-r--r--core/modules/simpletest/src/NodeCreationTrait.php2
-rw-r--r--core/modules/simpletest/src/TestServiceProvider.php2
-rw-r--r--core/modules/simpletest/src/Tests/BrokenSetUpTest.php2
-rw-r--r--core/modules/simpletest/src/Tests/BrowserTest.php4
-rw-r--r--core/modules/simpletest/src/Tests/InstallationProfileModuleTestsTest.php2
-rw-r--r--core/modules/simpletest/src/Tests/KernelTestBaseTest.php20
-rw-r--r--core/modules/simpletest/src/Tests/SimpleTestTest.php18
-rw-r--r--core/modules/simpletest/src/Tests/TimeZoneTest.php2
-rw-r--r--core/modules/simpletest/src/WebTestBase.php2
-rw-r--r--core/modules/simpletest/tests/src/Functional/FolderTest.php2
-rw-r--r--core/modules/simpletest/tests/src/Functional/MailCaptureTest.php2
-rw-r--r--core/modules/simpletest/tests/src/Functional/MissingDependentModuleUnitTest.php2
-rw-r--r--core/modules/simpletest/tests/src/Functional/OtherInstallationProfileTestsTest.php2
-rw-r--r--core/modules/simpletest/tests/src/Functional/UserHelpersTest.php2
-rw-r--r--core/modules/statistics/src/Tests/StatisticsAdminTest.php6
-rw-r--r--core/modules/statistics/src/Tests/StatisticsLoggingTest.php2
-rw-r--r--core/modules/statistics/src/Tests/StatisticsReportsTest.php2
-rw-r--r--core/modules/statistics/tests/src/Functional/StatisticsTokenReplaceTest.php2
-rw-r--r--core/modules/syslog/src/Tests/SyslogTest.php2
-rw-r--r--core/modules/system/src/Tests/Ajax/AjaxInGroupTest.php2
-rw-r--r--core/modules/system/src/Tests/Ajax/CommandsTest.php2
-rw-r--r--core/modules/system/src/Tests/Ajax/ElementValidationTest.php2
-rw-r--r--core/modules/system/src/Tests/Ajax/FormValuesTest.php2
-rw-r--r--core/modules/system/src/Tests/Ajax/MultiFormTest.php2
-rw-r--r--core/modules/system/src/Tests/Batch/PageTest.php6
-rw-r--r--core/modules/system/src/Tests/Batch/ProcessingTest.php22
-rw-r--r--core/modules/system/src/Tests/Cache/CacheTestBase.php2
-rw-r--r--core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php4
-rw-r--r--core/modules/system/src/Tests/Cache/SessionExistsCacheContextTest.php2
-rw-r--r--core/modules/system/src/Tests/Common/AddFeedTest.php6
-rw-r--r--core/modules/system/src/Tests/Common/AlterTest.php2
-rw-r--r--core/modules/system/src/Tests/Common/EarlyRenderingControllerTest.php2
-rw-r--r--core/modules/system/src/Tests/Common/FormatDateTest.php2
-rw-r--r--core/modules/system/src/Tests/Common/RenderWebTest.php4
-rw-r--r--core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php4
-rw-r--r--core/modules/system/src/Tests/Common/UrlTest.php14
-rw-r--r--core/modules/system/src/Tests/Condition/ConditionFormTest.php2
-rw-r--r--core/modules/system/src/Tests/Database/SelectPagerDefaultTest.php10
-rw-r--r--core/modules/system/src/Tests/Database/SelectTableSortDefaultTest.php6
-rw-r--r--core/modules/system/src/Tests/Database/TemporaryQueryTest.php4
-rw-r--r--core/modules/system/src/Tests/Entity/EntityFormTest.php4
-rw-r--r--core/modules/system/src/Tests/Entity/EntityTranslationFormTest.php2
-rw-r--r--core/modules/system/src/Tests/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php2
-rw-r--r--core/modules/system/src/Tests/Form/AlterTest.php2
-rw-r--r--core/modules/system/src/Tests/Form/ArbitraryRebuildTest.php4
-rw-r--r--core/modules/system/src/Tests/Form/CheckboxTest.php2
-rw-r--r--core/modules/system/src/Tests/Form/ConfirmFormTest.php2
-rw-r--r--core/modules/system/src/Tests/Form/ElementTest.php10
-rw-r--r--core/modules/system/src/Tests/Form/ElementsLabelsTest.php6
-rw-r--r--core/modules/system/src/Tests/Form/ElementsTableSelectTest.php20
-rw-r--r--core/modules/system/src/Tests/Form/ElementsVerticalTabsTest.php8
-rw-r--r--core/modules/system/src/Tests/Form/EmailTest.php2
-rw-r--r--core/modules/system/src/Tests/Form/FormTest.php28
-rw-r--r--core/modules/system/src/Tests/Form/LanguageSelectElementTest.php4
-rw-r--r--core/modules/system/src/Tests/Form/ProgrammaticTest.php2
-rw-r--r--core/modules/system/src/Tests/Form/RebuildTest.php4
-rw-r--r--core/modules/system/src/Tests/Form/StateValuesCleanAdvancedTest.php2
-rw-r--r--core/modules/system/src/Tests/Form/StateValuesCleanTest.php2
-rw-r--r--core/modules/system/src/Tests/Form/StorageTest.php8
-rw-r--r--core/modules/system/src/Tests/Form/SystemConfigFormTest.php2
-rw-r--r--core/modules/system/src/Tests/Form/TriggeringElementTest.php4
-rw-r--r--core/modules/system/src/Tests/Form/UrlTest.php2
-rw-r--r--core/modules/system/src/Tests/Form/ValidationTest.php10
-rw-r--r--core/modules/system/src/Tests/Image/ToolkitSetupFormTest.php2
-rw-r--r--core/modules/system/src/Tests/Image/ToolkitTest.php10
-rw-r--r--core/modules/system/src/Tests/Image/ToolkitTestBase.php6
-rw-r--r--core/modules/system/src/Tests/Installer/SiteNameTest.php2
-rw-r--r--core/modules/system/src/Tests/Menu/BreadcrumbTest.php2
-rw-r--r--core/modules/system/src/Tests/Module/DependencyTest.php16
-rw-r--r--core/modules/system/src/Tests/Module/HookRequirementsTest.php2
-rw-r--r--core/modules/system/src/Tests/Module/ModuleTestBase.php14
-rw-r--r--core/modules/system/src/Tests/Module/RequiredTest.php2
-rw-r--r--core/modules/system/src/Tests/Module/VersionTest.php2
-rw-r--r--core/modules/system/src/Tests/Pager/PagerTest.php2
-rw-r--r--core/modules/system/src/Tests/Session/SessionTest.php16
-rw-r--r--core/modules/system/src/Tests/System/AccessDeniedTest.php2
-rw-r--r--core/modules/system/src/Tests/System/AdminTest.php4
-rw-r--r--core/modules/system/src/Tests/System/CronRunTest.php8
-rw-r--r--core/modules/system/src/Tests/System/ErrorHandlerTest.php8
-rw-r--r--core/modules/system/src/Tests/System/PageNotFoundTest.php2
-rw-r--r--core/modules/system/src/Tests/System/PageTitleTest.php4
-rw-r--r--core/modules/system/src/Tests/System/ResponseGeneratorTest.php2
-rw-r--r--core/modules/system/src/Tests/System/ShutdownFunctionsTest.php2
-rw-r--r--core/modules/system/src/Tests/System/ThemeTest.php14
-rw-r--r--core/modules/system/src/Tests/Theme/EngineTwigTest.php2
-rw-r--r--core/modules/system/src/Tests/Theme/EntityFilteringThemeTest.php2
-rw-r--r--core/modules/system/src/Tests/Theme/FunctionsTest.php10
-rw-r--r--core/modules/system/src/Tests/Theme/HtmlAttributesTest.php2
-rw-r--r--core/modules/system/src/Tests/Theme/ThemeSuggestionsAlterTest.php12
-rw-r--r--core/modules/system/src/Tests/Theme/ThemeTest.php24
-rw-r--r--core/modules/system/src/Tests/Theme/TwigDebugMarkupTest.php2
-rw-r--r--core/modules/system/src/Tests/Update/DependencyHookInvocationTest.php2
-rw-r--r--core/modules/system/src/Tests/Update/DependencyMissingTest.php2
-rw-r--r--core/modules/system/src/Tests/Update/DependencyOrderingTest.php4
-rw-r--r--core/modules/system/src/Tests/Update/InvalidUpdateHookTest.php2
-rw-r--r--core/modules/system/src/Tests/Update/UpdatePathTestBase.php2
-rw-r--r--core/modules/system/src/Tests/Update/UpdateScriptTest.php14
-rw-r--r--core/modules/system/src/Tests/Update/UpdatesWith7xTest.php2
-rw-r--r--core/modules/system/tests/modules/ajax_forms_test/src/Callbacks.php6
-rw-r--r--core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php2
-rw-r--r--core/modules/system/tests/modules/display_variant_test/src/EventSubscriber/TestPageDisplayVariantSubscriber.php2
-rw-r--r--core/modules/system/tests/modules/early_rendering_controller_test/src/TestDomainObjectViewSubscriber.php2
-rw-r--r--core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php2
-rw-r--r--core/modules/system/tests/modules/form_test/src/Form/FormTestStoragePageCacheForm.php4
-rw-r--r--core/modules/system/tests/modules/form_test/src/Form/FormTestTableSelectFormBase.php2
-rw-r--r--core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php4
-rw-r--r--core/modules/system/tests/modules/module_autoload_test/src/SomeClass.php2
-rw-r--r--core/modules/system/tests/modules/service_provider_test/src/TestClass.php2
-rw-r--r--core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php2
-rw-r--r--core/modules/system/tests/modules/theme_test/src/ThemeTestController.php12
-rw-r--r--core/modules/system/tests/src/Functional/Bootstrap/DrupalSetMessageTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/Cache/CacheTestBase.php2
-rw-r--r--core/modules/system/tests/src/Functional/Cache/ClearTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/DrupalKernel/ContentNegotiationTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/Entity/EntityViewControllerTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/File/ConfigTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/File/FileSaveHtaccessLoggingTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php8
-rw-r--r--core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php4
-rw-r--r--core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php16
-rw-r--r--core/modules/system/tests/src/Functional/Form/FormObjectTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/Form/RedirectTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/Module/ClassLoaderTest.php6
-rw-r--r--core/modules/system/tests/src/Functional/Module/ModuleTestBase.php14
-rw-r--r--core/modules/system/tests/src/Functional/Module/UninstallTest.php4
-rw-r--r--core/modules/system/tests/src/Functional/Path/UrlAlterFunctionalTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/Render/DisplayVariantTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/System/DateTimeTest.php6
-rw-r--r--core/modules/system/tests/src/Functional/System/IndexPhpTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/System/MainContentFallbackTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/System/RetrieveFileTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/System/SystemAuthorizeTest.php4
-rw-r--r--core/modules/system/tests/src/Functional/System/TokenScanTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/Theme/EngineNyanCatTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/Theme/FastTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/Theme/ThemeEarlyInitializationTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/Theme/ThemeInfoTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/Theme/TwigExtensionTest.php6
-rw-r--r--core/modules/system/tests/src/Functional/Theme/TwigSettingsTest.php6
-rw-r--r--core/modules/system/tests/src/Kernel/Common/PageRenderTest.php6
-rw-r--r--core/modules/system/tests/src/Kernel/Common/SystemListingTest.php2
-rw-r--r--core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php12
-rw-r--r--core/modules/system/tests/src/Kernel/Render/ClassyTest.php2
-rw-r--r--core/modules/system/tests/src/Kernel/System/InfoAlterTest.php2
-rw-r--r--core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php2
-rw-r--r--core/modules/taxonomy/src/Plugin/views/argument/Taxonomy.php2
-rw-r--r--core/modules/taxonomy/src/Plugin/views/argument/VocabularyVid.php2
-rw-r--r--core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php2
-rw-r--r--core/modules/taxonomy/src/TermTranslationHandler.php2
-rw-r--r--core/modules/taxonomy/src/Tests/RssTest.php2
-rw-r--r--core/modules/taxonomy/src/Tests/TaxonomyTermIndentationTest.php2
-rw-r--r--core/modules/taxonomy/src/Tests/TaxonomyTestTrait.php4
-rw-r--r--core/modules/taxonomy/src/Tests/TermTest.php18
-rw-r--r--core/modules/taxonomy/src/Tests/TermTranslationUITest.php2
-rw-r--r--core/modules/taxonomy/src/Tests/ThemeTest.php2
-rw-r--r--core/modules/taxonomy/src/Tests/Views/RelationshipNodeTermDataTest.php2
-rw-r--r--core/modules/taxonomy/src/Tests/Views/TaxonomyFieldFilterTest.php2
-rw-r--r--core/modules/taxonomy/src/Tests/Views/TaxonomyFieldTidTest.php2
-rw-r--r--core/modules/taxonomy/src/Tests/VocabularyUiTest.php8
-rw-r--r--core/modules/taxonomy/tests/src/Functional/EfqTest.php2
-rw-r--r--core/modules/taxonomy/tests/src/Functional/LegacyTest.php2
-rw-r--r--core/modules/taxonomy/tests/src/Functional/LoadMultipleTest.php2
-rw-r--r--core/modules/taxonomy/tests/src/Functional/TermEntityReferenceTest.php2
-rw-r--r--core/modules/taxonomy/tests/src/Functional/TermIndexTest.php4
-rw-r--r--core/modules/taxonomy/tests/src/Functional/TermLanguageTest.php4
-rw-r--r--core/modules/taxonomy/tests/src/Functional/TokenReplaceTest.php2
-rw-r--r--core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php8
-rw-r--r--core/modules/taxonomy/tests/src/Functional/VocabularyLanguageTest.php4
-rw-r--r--core/modules/taxonomy/tests/src/Functional/VocabularyPermissionsTest.php2
-rw-r--r--core/modules/taxonomy/tests/src/Functional/VocabularyTranslationTest.php2
-rw-r--r--core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php2
-rw-r--r--core/modules/text/src/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php2
-rw-r--r--core/modules/text/src/Tests/TextFieldTest.php10
-rw-r--r--core/modules/text/tests/src/Kernel/TextSummaryTest.php8
-rw-r--r--core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php14
-rw-r--r--core/modules/toolbar/src/Tests/ToolbarMenuTranslationTest.php2
-rw-r--r--core/modules/toolbar/tests/src/Functional/ToolbarHookToolbarTest.php2
-rw-r--r--core/modules/tracker/src/Tests/TrackerTest.php14
-rw-r--r--core/modules/tracker/tests/src/Functional/TrackerNodeAccessTest.php2
-rw-r--r--core/modules/update/src/Tests/UpdateContribTest.php16
-rw-r--r--core/modules/update/src/Tests/UpdateCoreTest.php24
-rw-r--r--core/modules/update/src/Tests/UpdateDeleteFileIfStaleTest.php2
-rw-r--r--core/modules/update/src/Tests/UpdateUploadTest.php4
-rw-r--r--core/modules/user/src/Entity/User.php4
-rw-r--r--core/modules/user/src/Form/UserPermissionsForm.php2
-rw-r--r--core/modules/user/src/Plugin/views/field/Permissions.php2
-rw-r--r--core/modules/user/src/Plugin/views/field/Roles.php2
-rw-r--r--core/modules/user/src/Plugin/views/filter/Roles.php2
-rw-r--r--core/modules/user/src/PrivateTempStoreFactory.php4
-rw-r--r--core/modules/user/src/SharedTempStoreFactory.php4
-rw-r--r--core/modules/user/src/Tests/UserAccountLinksTest.php6
-rw-r--r--core/modules/user/src/Tests/UserAdminLanguageTest.php12
-rw-r--r--core/modules/user/src/Tests/UserAdminTest.php4
-rw-r--r--core/modules/user/src/Tests/UserBlocksTest.php6
-rw-r--r--core/modules/user/src/Tests/UserCancelTest.php22
-rw-r--r--core/modules/user/src/Tests/UserEditTest.php4
-rw-r--r--core/modules/user/src/Tests/UserLanguageCreationTest.php2
-rw-r--r--core/modules/user/src/Tests/UserLoginTest.php10
-rw-r--r--core/modules/user/src/Tests/UserPasswordResetTest.php4
-rw-r--r--core/modules/user/src/Tests/UserPermissionsTest.php6
-rw-r--r--core/modules/user/src/Tests/UserPictureTest.php6
-rw-r--r--core/modules/user/src/Tests/UserRegistrationTest.php10
-rw-r--r--core/modules/user/src/Tests/UserRoleAdminTest.php4
-rw-r--r--core/modules/user/src/Tests/UserTimeZoneTest.php2
-rw-r--r--core/modules/user/src/Tests/Views/AccessPermissionTest.php2
-rw-r--r--core/modules/user/src/Tests/Views/AccessRoleTest.php2
-rw-r--r--core/modules/user/src/Tests/Views/ArgumentValidateTest.php2
-rw-r--r--core/modules/user/tests/src/Functional/UserDeleteTest.php2
-rw-r--r--core/modules/user/tests/src/Functional/UserEditedOwnAccountTest.php2
-rw-r--r--core/modules/user/tests/src/Functional/UserEntityCallbacksTest.php2
-rw-r--r--core/modules/user/tests/src/Functional/UserLanguageTest.php2
-rw-r--r--core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php4
-rw-r--r--core/modules/user/tests/src/Functional/UserSaveTest.php4
-rw-r--r--core/modules/user/tests/src/Functional/UserSearchTest.php2
-rw-r--r--core/modules/user/tests/src/Functional/UserTokenReplaceTest.php2
-rw-r--r--core/modules/user/tests/src/Kernel/UserAccountFormFieldsTest.php6
-rw-r--r--core/modules/user/tests/src/Kernel/UserActionConfigSchemaTest.php2
-rw-r--r--core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php2
-rw-r--r--core/modules/user/tests/src/Kernel/UserFieldsTest.php2
-rw-r--r--core/modules/user/tests/src/Kernel/UserSaveStatusTest.php2
-rw-r--r--core/modules/user/tests/src/Kernel/UserValidationTest.php4
-rw-r--r--core/modules/views/src/Analyzer.php2
-rw-r--r--core/modules/views/src/EntityViewsData.php2
-rw-r--r--core/modules/views/src/ManyToOneHelper.php2
-rw-r--r--core/modules/views/src/Plugin/views/area/HTTPStatusCode.php2
-rw-r--r--core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php4
-rw-r--r--core/modules/views/src/Plugin/views/argument/DayDate.php2
-rw-r--r--core/modules/views/src/Plugin/views/argument/FullDate.php2
-rw-r--r--core/modules/views/src/Plugin/views/argument/LanguageArgument.php4
-rw-r--r--core/modules/views/src/Plugin/views/argument/ManyToOne.php2
-rw-r--r--core/modules/views/src/Plugin/views/argument/MonthDate.php2
-rw-r--r--core/modules/views/src/Plugin/views/argument/NumericArgument.php2
-rw-r--r--core/modules/views/src/Plugin/views/argument/StringArgument.php2
-rw-r--r--core/modules/views/src/Plugin/views/argument/YearMonthDate.php2
-rw-r--r--core/modules/views/src/Plugin/views/display/DisplayPluginBase.php2
-rw-r--r--core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php2
-rw-r--r--core/modules/views/src/Plugin/views/field/EntityField.php6
-rw-r--r--core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php2
-rw-r--r--core/modules/views/src/Plugin/views/field/FieldPluginBase.php2
-rw-r--r--core/modules/views/src/Plugin/views/filter/Combine.php2
-rw-r--r--core/modules/views/src/Plugin/views/filter/InOperator.php2
-rw-r--r--core/modules/views/src/Plugin/views/filter/ManyToOne.php2
-rw-r--r--core/modules/views/src/Plugin/views/filter/NumericFilter.php2
-rw-r--r--core/modules/views/src/Plugin/views/filter/StringFilter.php4
-rw-r--r--core/modules/views/src/Plugin/views/query/QueryPluginBase.php2
-rw-r--r--core/modules/views/src/Plugin/views/row/RowPluginBase.php2
-rw-r--r--core/modules/views/src/Plugin/views/style/StylePluginBase.php8
-rw-r--r--core/modules/views/src/Tests/DefaultViewsTest.php2
-rw-r--r--core/modules/views/src/Tests/FieldApiDataTest.php2
-rw-r--r--core/modules/views/src/Tests/Handler/ArgumentStringTest.php2
-rw-r--r--core/modules/views/src/Tests/Handler/FieldEntityOperationsTest.php2
-rw-r--r--core/modules/views/src/Tests/Plugin/AccessTest.php4
-rw-r--r--core/modules/views/src/Tests/Plugin/NumericFormatPluralTest.php2
-rw-r--r--core/modules/views/src/Tests/Plugin/PagerTest.php2
-rw-r--r--core/modules/views/src/Tests/Plugin/StyleTest.php6
-rw-r--r--core/modules/views/src/Tests/Wizard/BasicTest.php2
-rw-r--r--core/modules/views/src/Tests/Wizard/ItemsPerPageTest.php2
-rw-r--r--core/modules/views/src/Tests/Wizard/MenuTest.php2
-rw-r--r--core/modules/views/src/Tests/Wizard/SortingTest.php2
-rw-r--r--core/modules/views/src/Tests/Wizard/TaggedWithTest.php4
-rw-r--r--core/modules/views/tests/src/Kernel/Handler/ArgumentNullTest.php2
-rw-r--r--core/modules/views/tests/src/Kernel/Handler/FieldBooleanTest.php4
-rw-r--r--core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php4
-rw-r--r--core/modules/views/tests/src/Kernel/Handler/FieldCustomTest.php2
-rw-r--r--core/modules/views/tests/src/Kernel/Handler/FieldFileSizeTest.php4
-rw-r--r--core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php8
-rw-r--r--core/modules/views/tests/src/Kernel/Handler/FieldUrlTest.php2
-rw-r--r--core/modules/views/tests/src/Kernel/Handler/FilterEqualityTest.php6
-rw-r--r--core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php2
-rw-r--r--core/modules/views/tests/src/Kernel/Handler/FilterNumericTest.php2
-rw-r--r--core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php50
-rw-r--r--core/modules/views/tests/src/Kernel/ModuleTest.php4
-rw-r--r--core/modules/views/tests/src/Kernel/Plugin/ArgumentValidatorTest.php2
-rw-r--r--core/modules/views/tests/src/Kernel/Plugin/CacheTest.php4
-rw-r--r--core/modules/views/tests/src/Kernel/Plugin/StyleHtmlListTest.php2
-rw-r--r--core/modules/views/tests/src/Kernel/Plugin/StyleTestBase.php2
-rw-r--r--core/modules/views/tests/src/Kernel/Plugin/StyleUnformattedTest.php2
-rw-r--r--core/modules/views/tests/src/Kernel/TokenReplaceTest.php8
-rw-r--r--core/modules/views/tests/src/Kernel/ViewStorageTest.php2
-rw-r--r--core/modules/views_ui/src/Tests/AnalyzeTest.php2
-rw-r--r--core/modules/views_ui/src/Tests/DefaultViewsTest.php6
-rw-r--r--core/modules/views_ui/src/Tests/ExposedFormUITest.php4
-rw-r--r--core/modules/views_ui/src/Tests/GroupByTest.php2
-rw-r--r--core/modules/views_ui/src/Tests/OverrideDisplaysTest.php6
-rw-r--r--core/modules/views_ui/src/Tests/PreviewTest.php2
-rw-r--r--core/modules/views_ui/src/Tests/SettingsTest.php2
-rw-r--r--core/phpcs.xml.dist1
-rw-r--r--core/profiles/minimal/src/Tests/MinimalTest.php2
-rw-r--r--core/profiles/standard/tests/src/Functional/StandardTest.php2
-rw-r--r--core/profiles/testing/modules/drupal_system_listing_compatible_test/src/Tests/SystemListingCompatibleTest.php2
-rw-r--r--core/tests/Drupal/FunctionalTests/GetTestMethodCallerTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php40
-rw-r--r--core/tests/Drupal/KernelTests/Core/Bootstrap/GetFilenameTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Bootstrap/ResettableStaticTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Common/SizeTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigCRUDTest.php6
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigDiffTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigEntityStatusTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigEventsTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigFileContentTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigImporterMissingContentTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php24
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigLanguageOverrideTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigOverrideTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php10
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigSnapshotTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/Storage/ConfigStorageTestBase.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/AlterTest.php14
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/BasicSyntaxTest.php12
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/CaseSensitivityTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php8
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php8
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/DatabaseTestBase.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/DeleteTruncateTest.php8
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/FetchTest.php14
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/InsertDefaultsTest.php6
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/InsertLobTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/InsertTest.php16
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/InvalidDataTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/LargeQueryTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php12
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/MergeTest.php16
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/NextIdTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/PrefixInfoTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/QueryTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/RangeQueryTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/RegressionTest.php8
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php16
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/SelectCloneTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php34
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/SelectOrderedTest.php6
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/SelectSubqueryTest.php18
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/SelectTest.php42
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/SerializeQueryTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/TaggingTest.php14
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/TransactionTest.php14
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/UpdateComplexTest.php16
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/UpdateLobTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/UpdateTest.php20
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php10
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/EntityAutocompleteTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/EntityNonRevisionableTranslatableFieldTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php8
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/EntityUUIDTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php14
-rw-r--r--core/tests/Drupal/KernelTests/Core/EventSubscriber/IgnoreReplicaSubscriberTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Extension/ModuleConfigureRouteTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Extension/ModuleImplementsAlterTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Field/FieldAccessTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php10
-rw-r--r--core/tests/Drupal/KernelTests/Core/File/FileTestBase.php8
-rw-r--r--core/tests/Drupal/KernelTests/Core/File/HtaccessTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/File/NameMungingTest.php10
-rw-r--r--core/tests/Drupal/KernelTests/Core/File/ReadOnlyStreamWrapperTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php12
-rw-r--r--core/tests/Drupal/KernelTests/Core/File/StreamWrapperTest.php12
-rw-r--r--core/tests/Drupal/KernelTests/Core/File/UnmanagedCopyTest.php6
-rw-r--r--core/tests/Drupal/KernelTests/Core/File/UnmanagedDeleteRecursiveTest.php8
-rw-r--r--core/tests/Drupal/KernelTests/Core/File/UnmanagedDeleteTest.php6
-rw-r--r--core/tests/Drupal/KernelTests/Core/File/UnmanagedMoveTest.php6
-rw-r--r--core/tests/Drupal/KernelTests/Core/File/UnmanagedSaveDataTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/File/UrlRewritingTest.php6
-rw-r--r--core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Form/FormDefaultHandlersTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Form/FormValidationMessageOrderTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Form/TriggeringElementProgrammedTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php10
-rw-r--r--core/tests/Drupal/KernelTests/Core/Installer/InstallerLanguageTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Installer/InstallerRedirectTraitTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/KeyValueStore/KeyValueContentEntityStorageTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Path/AliasTest.php6
-rw-r--r--core/tests/Drupal/KernelTests/Core/Plugin/ContextPluginTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Plugin/DerivativeTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Plugin/Discovery/DiscoveryTestBase.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Plugin/FactoryTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Plugin/InspectionTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Render/Element/RenderElementTypesTest.php8
-rw-r--r--core/tests/Drupal/KernelTests/Core/Render/Element/TableSortExtenderTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php12
-rw-r--r--core/tests/Drupal/KernelTests/Core/Render/RenderTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Routing/ContentNegotiationRoutingTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Routing/MatcherDumperTest.php6
-rw-r--r--core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php16
-rw-r--r--core/tests/Drupal/KernelTests/Core/ServiceProvider/ServiceProviderTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Site/SettingsRewriteTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Theme/ImageTest.php8
-rw-r--r--core/tests/Drupal/KernelTests/Core/Theme/MessageTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Theme/RegistryTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php26
-rw-r--r--core/tests/Drupal/KernelTests/Core/Theme/ThemeSettingsTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Update/CompatibilityFixTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Url/LinkGenerationTest.php2
-rw-r--r--core/tests/Drupal/Tests/Component/Render/HtmlEscapedTextTest.php2
-rw-r--r--core/tests/Drupal/Tests/Component/Utility/SafeMarkupTest.php8
-rw-r--r--core/tests/Drupal/Tests/Core/Asset/CssCollectionGrouperUnitTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php6
-rw-r--r--core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php8
-rw-r--r--core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php8
-rw-r--r--core/tests/Drupal/Tests/Core/Cache/NullBackendTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Common/AttributesTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Database/EmptyStatementTest.php6
-rw-r--r--core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Form/FormHelperTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php10
804 files changed, 1943 insertions, 1942 deletions
diff --git a/core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php b/core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php
index b350ac0..000c337 100644
--- a/core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php
+++ b/core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php
@@ -69,7 +69,7 @@ class AnnotatedClassDiscovery implements DiscoveryInterface {
* @param string[] $annotation_namespaces
* (optional) Additional namespaces to be scanned for annotation classes.
*/
- function __construct($plugin_namespaces = [], $plugin_definition_annotation_name = 'Drupal\Component\Annotation\Plugin', array $annotation_namespaces = []) {
+ public function __construct($plugin_namespaces = [], $plugin_definition_annotation_name = 'Drupal\Component\Annotation\Plugin', array $annotation_namespaces = []) {
$this->pluginNamespaces = $plugin_namespaces;
$this->pluginDefinitionAnnotationName = $plugin_definition_annotation_name;
$this->annotationNamespaces = $annotation_namespaces;
diff --git a/core/lib/Drupal/Component/Gettext/PoHeader.php b/core/lib/Drupal/Component/Gettext/PoHeader.php
index 806beba..5dd13a5 100644
--- a/core/lib/Drupal/Component/Gettext/PoHeader.php
+++ b/core/lib/Drupal/Component/Gettext/PoHeader.php
@@ -85,7 +85,7 @@ class PoHeader {
* Plural form component from the header, for example:
* 'nplurals=2; plural=(n > 1);'.
*/
- function getPluralForms() {
+ public function getPluralForms() {
return $this->_pluralForms;
}
@@ -95,7 +95,7 @@ class PoHeader {
* @param string $languageName
* Human readable language name.
*/
- function setLanguageName($languageName) {
+ public function setLanguageName($languageName) {
$this->_languageName = $languageName;
}
@@ -105,7 +105,7 @@ class PoHeader {
* @return string
* The human readable language name.
*/
- function getLanguageName() {
+ public function getLanguageName() {
return $this->_languageName;
}
@@ -115,7 +115,7 @@ class PoHeader {
* @param string $projectName
* Human readable project name.
*/
- function setProjectName($projectName) {
+ public function setProjectName($projectName) {
$this->_projectName = $projectName;
}
@@ -125,7 +125,7 @@ class PoHeader {
* @return string
* The human readable project name.
*/
- function getProjectName() {
+ public function getProjectName() {
return $this->_projectName;
}
@@ -190,7 +190,7 @@ class PoHeader {
*
* @throws Exception
*/
- function parsePluralForms($pluralforms) {
+ public function parsePluralForms($pluralforms) {
$plurals = [];
// First, delete all whitespace.
$pluralforms = strtr($pluralforms, [" " => "", "\t" => ""]);
diff --git a/core/lib/Drupal/Component/Gettext/PoItem.php b/core/lib/Drupal/Component/Gettext/PoItem.php
index 6d76d6c..1f05bbd 100644
--- a/core/lib/Drupal/Component/Gettext/PoItem.php
+++ b/core/lib/Drupal/Component/Gettext/PoItem.php
@@ -59,7 +59,7 @@ class PoItem {
*
* @return string with langcode
*/
- function getLangcode() {
+ public function getLangcode() {
return $this->_langcode;
}
@@ -68,7 +68,7 @@ class PoItem {
*
* @param string $langcode
*/
- function setLangcode($langcode) {
+ public function setLangcode($langcode) {
$this->_langcode = $langcode;
}
@@ -77,7 +77,7 @@ class PoItem {
*
* @return string $context
*/
- function getContext() {
+ public function getContext() {
return $this->_context;
}
@@ -86,7 +86,7 @@ class PoItem {
*
* @param string $context
*/
- function setContext($context) {
+ public function setContext($context) {
$this->_context = $context;
}
@@ -96,7 +96,7 @@ class PoItem {
*
* @return string or array $translation
*/
- function getSource() {
+ public function getSource() {
return $this->_source;
}
@@ -106,7 +106,7 @@ class PoItem {
*
* @param string or array $source
*/
- function setSource($source) {
+ public function setSource($source) {
$this->_source = $source;
}
@@ -116,7 +116,7 @@ class PoItem {
*
* @return string or array $translation
*/
- function getTranslation() {
+ public function getTranslation() {
return $this->_translation;
}
@@ -126,7 +126,7 @@ class PoItem {
*
* @param string or array $translation
*/
- function setTranslation($translation) {
+ public function setTranslation($translation) {
$this->_translation = $translation;
}
@@ -135,7 +135,7 @@ class PoItem {
*
* @param bool $plural
*/
- function setPlural($plural) {
+ public function setPlural($plural) {
$this->_plural = $plural;
}
@@ -144,7 +144,7 @@ class PoItem {
*
* @return bool
*/
- function isPlural() {
+ public function isPlural() {
return $this->_plural;
}
@@ -153,7 +153,7 @@ class PoItem {
*
* @return String $comment
*/
- function getComment() {
+ public function getComment() {
return $this->_comment;
}
@@ -162,7 +162,7 @@ class PoItem {
*
* @param string $comment
*/
- function setComment($comment) {
+ public function setComment($comment) {
$this->_comment = $comment;
}
diff --git a/core/lib/Drupal/Component/Gettext/PoMemoryWriter.php b/core/lib/Drupal/Component/Gettext/PoMemoryWriter.php
index c8da6e6..c5416b6 100644
--- a/core/lib/Drupal/Component/Gettext/PoMemoryWriter.php
+++ b/core/lib/Drupal/Component/Gettext/PoMemoryWriter.php
@@ -17,7 +17,7 @@ class PoMemoryWriter implements PoWriterInterface {
/**
* Constructor, initialize empty items.
*/
- function __construct() {
+ public function __construct() {
$this->_items = [];
}
@@ -57,7 +57,7 @@ class PoMemoryWriter implements PoWriterInterface {
*
* Not implemented. Not relevant for the MemoryWriter.
*/
- function setLangcode($langcode) {
+ public function setLangcode($langcode) {
}
/**
@@ -65,7 +65,7 @@ class PoMemoryWriter implements PoWriterInterface {
*
* Not implemented. Not relevant for the MemoryWriter.
*/
- function getLangcode() {
+ public function getLangcode() {
}
/**
@@ -73,7 +73,7 @@ class PoMemoryWriter implements PoWriterInterface {
*
* Not implemented. Not relevant for the MemoryWriter.
*/
- function getHeader() {
+ public function getHeader() {
}
/**
@@ -81,7 +81,7 @@ class PoMemoryWriter implements PoWriterInterface {
*
* Not implemented. Not relevant for the MemoryWriter.
*/
- function setHeader(PoHeader $header) {
+ public function setHeader(PoHeader $header) {
}
}
diff --git a/core/lib/Drupal/Component/Gettext/PoStreamReader.php b/core/lib/Drupal/Component/Gettext/PoStreamReader.php
index c44f9a1..f84d251 100644
--- a/core/lib/Drupal/Component/Gettext/PoStreamReader.php
+++ b/core/lib/Drupal/Component/Gettext/PoStreamReader.php
@@ -547,7 +547,7 @@ class PoStreamReader implements PoStreamInterface, PoReaderInterface {
* @return
* The string parsed from inside the quotes.
*/
- function parseQuoted($string) {
+ public function parseQuoted($string) {
if (substr($string, 0, 1) != substr($string, -1, 1)) {
// Start and end quotes must be the same.
return FALSE;
diff --git a/core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php b/core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php
index 5795638..1fb2f21 100644
--- a/core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php
+++ b/core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php
@@ -68,7 +68,7 @@ class FileReadOnlyStorage implements PhpStorageInterface {
/**
* {@inheritdoc}
*/
- function writeable() {
+ public function writeable() {
return FALSE;
}
diff --git a/core/lib/Drupal/Core/Access/RouteProcessorCsrf.php b/core/lib/Drupal/Core/Access/RouteProcessorCsrf.php
index d529c0c..9f2e7d4 100644
--- a/core/lib/Drupal/Core/Access/RouteProcessorCsrf.php
+++ b/core/lib/Drupal/Core/Access/RouteProcessorCsrf.php
@@ -25,7 +25,7 @@ class RouteProcessorCsrf implements OutboundRouteProcessorInterface {
* @param \Drupal\Core\Access\CsrfTokenGenerator $csrf_token
* The CSRF token generator.
*/
- function __construct(CsrfTokenGenerator $csrf_token) {
+ public function __construct(CsrfTokenGenerator $csrf_token) {
$this->csrfToken = $csrf_token;
}
diff --git a/core/lib/Drupal/Core/Cache/DatabaseBackendFactory.php b/core/lib/Drupal/Core/Cache/DatabaseBackendFactory.php
index 5cc87e9..8aa018e 100644
--- a/core/lib/Drupal/Core/Cache/DatabaseBackendFactory.php
+++ b/core/lib/Drupal/Core/Cache/DatabaseBackendFactory.php
@@ -28,7 +28,7 @@ class DatabaseBackendFactory implements CacheFactoryInterface {
* @param \Drupal\Core\Cache\CacheTagsChecksumInterface $checksum_provider
* The cache tags checksum provider.
*/
- function __construct(Connection $connection, CacheTagsChecksumInterface $checksum_provider) {
+ public function __construct(Connection $connection, CacheTagsChecksumInterface $checksum_provider) {
$this->connection = $connection;
$this->checksumProvider = $checksum_provider;
}
@@ -42,7 +42,7 @@ class DatabaseBackendFactory implements CacheFactoryInterface {
* @return \Drupal\Core\Cache\DatabaseBackend
* The cache backend object for the specified cache bin.
*/
- function get($bin) {
+ public function get($bin) {
return new DatabaseBackend($this->connection, $this->checksumProvider, $bin);
}
diff --git a/core/lib/Drupal/Core/Cache/MemoryBackendFactory.php b/core/lib/Drupal/Core/Cache/MemoryBackendFactory.php
index 680f850..c5c6a95 100644
--- a/core/lib/Drupal/Core/Cache/MemoryBackendFactory.php
+++ b/core/lib/Drupal/Core/Cache/MemoryBackendFactory.php
@@ -14,7 +14,7 @@ class MemoryBackendFactory implements CacheFactoryInterface {
/**
* {@inheritdoc}
*/
- function get($bin) {
+ public function get($bin) {
if (!isset($this->bins[$bin])) {
$this->bins[$bin] = new MemoryBackend();
}
diff --git a/core/lib/Drupal/Core/Cache/NullBackendFactory.php b/core/lib/Drupal/Core/Cache/NullBackendFactory.php
index 3f11f56..909b105 100644
--- a/core/lib/Drupal/Core/Cache/NullBackendFactory.php
+++ b/core/lib/Drupal/Core/Cache/NullBackendFactory.php
@@ -7,7 +7,7 @@ class NullBackendFactory implements CacheFactoryInterface {
/**
* {@inheritdoc}
*/
- function get($bin) {
+ public function get($bin) {
return new NullBackend($bin);
}
diff --git a/core/lib/Drupal/Core/Cache/PhpBackendFactory.php b/core/lib/Drupal/Core/Cache/PhpBackendFactory.php
index fdb3271..0091ed3 100644
--- a/core/lib/Drupal/Core/Cache/PhpBackendFactory.php
+++ b/core/lib/Drupal/Core/Cache/PhpBackendFactory.php
@@ -30,7 +30,7 @@ class PhpBackendFactory implements CacheFactoryInterface {
* @return \Drupal\Core\Cache\PhpBackend
* The cache backend object for the specified cache bin.
*/
- function get($bin) {
+ public function get($bin) {
return new PhpBackend($bin, $this->checksumProvider);
}
diff --git a/core/lib/Drupal/Core/Config/ConfigFactory.php b/core/lib/Drupal/Core/Config/ConfigFactory.php
index d91bec9..8c06cd1 100644
--- a/core/lib/Drupal/Core/Config/ConfigFactory.php
+++ b/core/lib/Drupal/Core/Config/ConfigFactory.php
@@ -365,7 +365,7 @@ class ConfigFactory implements ConfigFactoryInterface, EventSubscriberInterface
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[ConfigEvents::SAVE][] = ['onConfigSave', 255];
$events[ConfigEvents::DELETE][] = ['onConfigDelete', 255];
return $events;
diff --git a/core/lib/Drupal/Core/Config/ConfigFactoryOverrideBase.php b/core/lib/Drupal/Core/Config/ConfigFactoryOverrideBase.php
index 3ca1602..82e0669 100644
--- a/core/lib/Drupal/Core/Config/ConfigFactoryOverrideBase.php
+++ b/core/lib/Drupal/Core/Config/ConfigFactoryOverrideBase.php
@@ -44,7 +44,7 @@ abstract class ConfigFactoryOverrideBase implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[ConfigEvents::COLLECTION_INFO][] = ['addCollections'];
$events[ConfigEvents::SAVE][] = ['onConfigSave', 20];
$events[ConfigEvents::DELETE][] = ['onConfigDelete', 20];
diff --git a/core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php b/core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php
index ca49645..1326365 100644
--- a/core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php
+++ b/core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php
@@ -22,7 +22,7 @@ abstract class ConfigImportValidateEventSubscriberBase implements EventSubscribe
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[ConfigEvents::IMPORT_VALIDATE][] = ['onConfigImporterValidate', 20];
return $events;
}
diff --git a/core/lib/Drupal/Core/Config/Entity/Query/Query.php b/core/lib/Drupal/Core/Config/Entity/Query/Query.php
index e75b98a..918853d 100644
--- a/core/lib/Drupal/Core/Config/Entity/Query/Query.php
+++ b/core/lib/Drupal/Core/Config/Entity/Query/Query.php
@@ -49,7 +49,7 @@ class Query extends QueryBase implements QueryInterface {
* @param array $namespaces
* List of potential namespaces of the classes belonging to this query.
*/
- function __construct(EntityTypeInterface $entity_type, $conjunction, ConfigFactoryInterface $config_factory, KeyValueFactoryInterface $key_value_factory, array $namespaces) {
+ public function __construct(EntityTypeInterface $entity_type, $conjunction, ConfigFactoryInterface $config_factory, KeyValueFactoryInterface $key_value_factory, array $namespaces) {
parent::__construct($entity_type, $conjunction, $namespaces);
$this->configFactory = $config_factory;
$this->keyValueFactory = $key_value_factory;
diff --git a/core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php b/core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php
index ac12f56..f87e618 100644
--- a/core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php
+++ b/core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php
@@ -249,7 +249,7 @@ class QueryFactory implements QueryFactoryInterface, EventSubscriberInterface {
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[ConfigEvents::SAVE][] = ['onConfigSave', 128];
$events[ConfigEvents::DELETE][] = ['onConfigDelete', 128];
return $events;
diff --git a/core/lib/Drupal/Core/Config/FileStorageFactory.php b/core/lib/Drupal/Core/Config/FileStorageFactory.php
index 70c2582..9e32497 100644
--- a/core/lib/Drupal/Core/Config/FileStorageFactory.php
+++ b/core/lib/Drupal/Core/Config/FileStorageFactory.php
@@ -15,7 +15,7 @@ class FileStorageFactory {
* @deprecated in Drupal 8.0.x and will be removed before 9.0.0. Drupal core
* no longer creates an active directory.
*/
- static function getActive() {
+ public static function getActive() {
return new FileStorage(config_get_config_directory(CONFIG_ACTIVE_DIRECTORY));
}
@@ -24,7 +24,7 @@ class FileStorageFactory {
*
* @return \Drupal\Core\Config\FileStorage FileStorage
*/
- static function getSync() {
+ public static function getSync() {
return new FileStorage(config_get_config_directory(CONFIG_SYNC_DIRECTORY));
}
diff --git a/core/lib/Drupal/Core/Config/Schema/ConfigSchemaDiscovery.php b/core/lib/Drupal/Core/Config/Schema/ConfigSchemaDiscovery.php
index b086c62..3e63010 100644
--- a/core/lib/Drupal/Core/Config/Schema/ConfigSchemaDiscovery.php
+++ b/core/lib/Drupal/Core/Config/Schema/ConfigSchemaDiscovery.php
@@ -26,7 +26,7 @@ class ConfigSchemaDiscovery implements DiscoveryInterface {
* @param $schema_storage
* The storage object to use for reading schema data.
*/
- function __construct(StorageInterface $schema_storage) {
+ public function __construct(StorageInterface $schema_storage) {
$this->schemaStorage = $schema_storage;
}
diff --git a/core/lib/Drupal/Core/Database/Connection.php b/core/lib/Drupal/Core/Database/Connection.php
index f6963c5..803689b 100644
--- a/core/lib/Drupal/Core/Database/Connection.php
+++ b/core/lib/Drupal/Core/Database/Connection.php
@@ -1274,7 +1274,7 @@ abstract class Connection {
* @return string
* The name of the temporary table.
*/
- abstract function queryTemporary($query, array $args = [], array $options = []);
+ abstract public function queryTemporary($query, array $args = [], array $options = []);
/**
* Returns the type of database driver.
diff --git a/core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php b/core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php
index b19af64..0b1d7dd 100644
--- a/core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php
+++ b/core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php
@@ -140,7 +140,7 @@ class Tasks extends InstallTasks {
/**
* Ensure that InnoDB is available.
*/
- function ensureInnoDbAvailable() {
+ public function ensureInnoDbAvailable() {
$engines = Database::getConnection()->query('SHOW ENGINES')->fetchAllKeyed();
if (isset($engines['MyISAM']) && $engines['MyISAM'] == 'DEFAULT' && !isset($engines['InnoDB'])) {
$this->fail(t('The MyISAM storage engine is not supported.'));
diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php
index 33579de..d2cb36b 100644
--- a/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php
+++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php
@@ -132,7 +132,7 @@ class Tasks extends InstallTasks {
*
* Unserializing does not work on Postgresql 9 when bytea_output is 'hex'.
*/
- function checkBinaryOutput() {
+ public function checkBinaryOutput() {
// PostgreSQL < 9 doesn't support bytea_output, so verify we are running
// at least PostgreSQL 9.
$database_connection = Database::getConnection();
@@ -236,7 +236,7 @@ class Tasks extends InstallTasks {
/**
* Make PostgreSQL Drupal friendly.
*/
- function initializeDatabase() {
+ public function initializeDatabase() {
// We create some functions using global names instead of prefixing them
// like we do with table names. This is so that we don't double up if more
// than one instance of Drupal is running on a single database. We therefore
diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
index 19efe50..33d037e 100644
--- a/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
+++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
@@ -386,7 +386,7 @@ EOD;
* This maps a generic data type in combination with its data size
* to the engine-specific data type.
*/
- function getFieldTypeMap() {
+ public function getFieldTypeMap() {
// Put :normal last so it gets preserved by array_flip. This makes
// it much easier for modules (such as schema.module) to map
// database types back into schema types.
@@ -471,7 +471,7 @@ EOD;
return (bool) $this->connection->query("SELECT 1 FROM pg_tables WHERE schemaname = :schema AND tablename = :table", [':schema' => $prefixInfo['schema'], ':table' => $prefixInfo['table']])->fetchField();
}
- function renameTable($table, $new_name) {
+ public function renameTable($table, $new_name) {
if (!$this->tableExists($table)) {
throw new SchemaObjectDoesNotExistException(t("Cannot rename @table to @table_new: table @table doesn't exist.", ['@table' => $table, '@table_new' => $new_name]));
}
@@ -664,7 +664,7 @@ EOD;
return TRUE;
}
- function addUniqueKey($table, $name, $fields) {
+ public function addUniqueKey($table, $name, $fields) {
if (!$this->tableExists($table)) {
throw new SchemaObjectDoesNotExistException(t("Cannot add unique key @name to table @table: table doesn't exist.", ['@table' => $table, '@name' => $name]));
}
diff --git a/core/lib/Drupal/Core/Database/Query/Condition.php b/core/lib/Drupal/Core/Database/Query/Condition.php
index d04fec5..5169357 100644
--- a/core/lib/Drupal/Core/Database/Query/Condition.php
+++ b/core/lib/Drupal/Core/Database/Query/Condition.php
@@ -341,7 +341,7 @@ class Condition implements ConditionInterface, \Countable {
* Only copies fields that implement Drupal\Core\Database\Query\ConditionInterface. Also sets
* $this->changed to TRUE.
*/
- function __clone() {
+ public function __clone() {
$this->changed = TRUE;
foreach ($this->conditions as $key => $condition) {
if ($key !== '#conjunction') {
diff --git a/core/lib/Drupal/Core/Database/Query/SelectExtender.php b/core/lib/Drupal/Core/Database/Query/SelectExtender.php
index 56fe7c1..9082ca8 100644
--- a/core/lib/Drupal/Core/Database/Query/SelectExtender.php
+++ b/core/lib/Drupal/Core/Database/Query/SelectExtender.php
@@ -440,7 +440,7 @@ class SelectExtender implements SelectInterface {
/**
* {@inheritdoc}
*/
- function isNull($field) {
+ public function isNull($field) {
$this->query->isNull($field);
return $this;
}
@@ -448,7 +448,7 @@ class SelectExtender implements SelectInterface {
/**
* {@inheritdoc}
*/
- function isNotNull($field) {
+ public function isNotNull($field) {
$this->query->isNotNull($field);
return $this;
}
diff --git a/core/lib/Drupal/Core/Database/Schema.php b/core/lib/Drupal/Core/Database/Schema.php
index eb98bb1..80a68f6 100644
--- a/core/lib/Drupal/Core/Database/Schema.php
+++ b/core/lib/Drupal/Core/Database/Schema.php
@@ -105,7 +105,7 @@ abstract class Schema implements PlaceholderInterface {
*
* This prevents using {} around non-table names like indexes and keys.
*/
- function prefixNonTable($table) {
+ public function prefixNonTable($table) {
$args = func_get_args();
$info = $this->getPrefixInfo($table);
$args[0] = $info['table'];
diff --git a/core/lib/Drupal/Core/Database/StatementInterface.php b/core/lib/Drupal/Core/Database/StatementInterface.php
index c0ee929..a34bf61 100644
--- a/core/lib/Drupal/Core/Database/StatementInterface.php
+++ b/core/lib/Drupal/Core/Database/StatementInterface.php
@@ -155,7 +155,7 @@ interface StatementInterface extends \Traversable {
* @return
* An array of results.
*/
- function fetchAll($mode = NULL, $column_index = NULL, $constructor_arguments = NULL);
+ public function fetchAll($mode = NULL, $column_index = NULL, $constructor_arguments = NULL);
/**
* Returns an entire single column of a result set as an indexed array.
diff --git a/core/lib/Drupal/Core/Entity/Query/QueryBase.php b/core/lib/Drupal/Core/Entity/Query/QueryBase.php
index f805747..ed3d12b 100644
--- a/core/lib/Drupal/Core/Entity/Query/QueryBase.php
+++ b/core/lib/Drupal/Core/Entity/Query/QueryBase.php
@@ -325,7 +325,7 @@ abstract class QueryBase implements QueryInterface {
/**
* Makes sure that the Condition object is cloned as well.
*/
- function __clone() {
+ public function __clone() {
$this->condition = clone $this->condition;
}
diff --git a/core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php b/core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php
index f8e42f0..2d2aacf 100644
--- a/core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php
+++ b/core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php
@@ -151,7 +151,7 @@ class QueryAggregate extends Query implements QueryAggregateInterface {
* replaced with underscores and if a default fallback to .value happened,
* the _value is stripped.
*/
- function createSqlAlias($field, $sql_field) {
+ public function createSqlAlias($field, $sql_field) {
$alias = str_replace('.', '_', $sql_field);
// If the alias contains of field_*_value remove the _value at the end.
if (substr($alias, 0, 6) === 'field_' && substr($field, -6) !== '_value' && substr($alias, -6) === '_value') {
diff --git a/core/lib/Drupal/Core/EventSubscriber/AcceptNegotiation406.php b/core/lib/Drupal/Core/EventSubscriber/AcceptNegotiation406.php
index d644fa5..61309c6 100644
--- a/core/lib/Drupal/Core/EventSubscriber/AcceptNegotiation406.php
+++ b/core/lib/Drupal/Core/EventSubscriber/AcceptNegotiation406.php
@@ -36,7 +36,7 @@ class AcceptNegotiation406 implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[KernelEvents::VIEW][] = ['onViewDetect406', -10];
return $events;
diff --git a/core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php
index 3309701..289eae0 100644
--- a/core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php
@@ -64,7 +64,7 @@ class ConfigSnapshotSubscriber implements EventSubscriberInterface {
* @return array
* An array of event listener definitions.
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[ConfigEvents::IMPORT][] = ['onConfigImporterImport', 40];
return $events;
}
diff --git a/core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php
index ae8dafc..bca8f68 100644
--- a/core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php
@@ -52,7 +52,7 @@ class EntityRouteAlterSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[RoutingEvents::ALTER][] = ['onRoutingRouteAlterSetType', -150];
return $events;
}
diff --git a/core/lib/Drupal/Core/EventSubscriber/KernelDestructionSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/KernelDestructionSubscriber.php
index 79d7dd5..0619695 100644
--- a/core/lib/Drupal/Core/EventSubscriber/KernelDestructionSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/KernelDestructionSubscriber.php
@@ -58,7 +58,7 @@ class KernelDestructionSubscriber implements EventSubscriberInterface, Container
* @return array
* An array of event listener definitions.
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
// Run this subscriber after others as those might use services that need
// to be terminated as well or run code that needs to run before
// termination.
diff --git a/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php
index 04a7fd6..f63ade6 100644
--- a/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php
@@ -101,7 +101,7 @@ class MainContentViewSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[KernelEvents::VIEW][] = ['onViewRenderArray'];
return $events;
diff --git a/core/lib/Drupal/Core/EventSubscriber/MenuRouterRebuildSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/MenuRouterRebuildSubscriber.php
index 1bc662c..521c582 100644
--- a/core/lib/Drupal/Core/EventSubscriber/MenuRouterRebuildSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/MenuRouterRebuildSubscriber.php
@@ -80,7 +80,7 @@ class MenuRouterRebuildSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
// Run after CachedRouteRebuildSubscriber.
$events[RoutingEvents::FINISHED][] = ['onRouterRebuild', 100];
return $events;
diff --git a/core/lib/Drupal/Core/EventSubscriber/ParamConverterSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/ParamConverterSubscriber.php
index 19590ae..3b12516 100644
--- a/core/lib/Drupal/Core/EventSubscriber/ParamConverterSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/ParamConverterSubscriber.php
@@ -43,7 +43,7 @@ class ParamConverterSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
// Run after \Drupal\system\EventSubscriber\AdminRouteSubscriber.
$events[RoutingEvents::ALTER][] = ['onRoutingRouteAlterSetParameterConverters', -220];
return $events;
diff --git a/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php
index 737c77c..1fec198 100644
--- a/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php
@@ -70,7 +70,7 @@ class PathSubscriber implements EventSubscriberInterface {
* @return array
* An array of event listener definitions.
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[KernelEvents::CONTROLLER][] = ['onKernelController', 200];
$events[KernelEvents::TERMINATE][] = ['onKernelTerminate', 200];
return $events;
diff --git a/core/lib/Drupal/Core/EventSubscriber/RedirectLeadingSlashesSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/RedirectLeadingSlashesSubscriber.php
index ad7b049..635fca1 100644
--- a/core/lib/Drupal/Core/EventSubscriber/RedirectLeadingSlashesSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/RedirectLeadingSlashesSubscriber.php
@@ -41,7 +41,7 @@ class RedirectLeadingSlashesSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[KernelEvents::REQUEST][] = ['redirect', 1000];
return $events;
}
diff --git a/core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php
index bf5ca05..8397bde 100644
--- a/core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php
@@ -165,7 +165,7 @@ class RedirectResponseSubscriber implements EventSubscriberInterface {
* @return array
* An array of event listener definitions.
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[KernelEvents::RESPONSE][] = ['checkRedirectUrl'];
$events[KernelEvents::REQUEST][] = ['sanitizeDestination', 100];
return $events;
diff --git a/core/lib/Drupal/Core/EventSubscriber/ReplicaDatabaseIgnoreSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/ReplicaDatabaseIgnoreSubscriber.php
index b0228f8..fc123d3 100644
--- a/core/lib/Drupal/Core/EventSubscriber/ReplicaDatabaseIgnoreSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/ReplicaDatabaseIgnoreSubscriber.php
@@ -47,7 +47,7 @@ class ReplicaDatabaseIgnoreSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[KernelEvents::REQUEST][] = ['checkReplicaServer'];
return $events;
}
diff --git a/core/lib/Drupal/Core/EventSubscriber/RequestCloseSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/RequestCloseSubscriber.php
index 765b1de..81dd1ef 100644
--- a/core/lib/Drupal/Core/EventSubscriber/RequestCloseSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/RequestCloseSubscriber.php
@@ -23,7 +23,7 @@ class RequestCloseSubscriber implements EventSubscriberInterface {
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler.
*/
- function __construct(ModuleHandlerInterface $module_handler) {
+ public function __construct(ModuleHandlerInterface $module_handler) {
$this->moduleHandler = $module_handler;
}
@@ -48,7 +48,7 @@ class RequestCloseSubscriber implements EventSubscriberInterface {
* @return array
* An array of event listener definitions.
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[KernelEvents::TERMINATE][] = ['onTerminate', 100];
return $events;
diff --git a/core/lib/Drupal/Core/EventSubscriber/RouteEnhancerSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/RouteEnhancerSubscriber.php
index f12174a..8763842 100644
--- a/core/lib/Drupal/Core/EventSubscriber/RouteEnhancerSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/RouteEnhancerSubscriber.php
@@ -40,7 +40,7 @@ class RouteEnhancerSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[RoutingEvents::ALTER][] = ['onRouteAlter', -300];
return $events;
}
diff --git a/core/lib/Drupal/Core/EventSubscriber/RouteFilterSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/RouteFilterSubscriber.php
index 79f98a4..f64b8db 100644
--- a/core/lib/Drupal/Core/EventSubscriber/RouteFilterSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/RouteFilterSubscriber.php
@@ -42,7 +42,7 @@ class RouteFilterSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[RoutingEvents::ALTER][] = ['onRouteAlter', -300];
return $events;
}
diff --git a/core/lib/Drupal/Core/EventSubscriber/RouteMethodSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/RouteMethodSubscriber.php
index b43ebf4..3188835 100644
--- a/core/lib/Drupal/Core/EventSubscriber/RouteMethodSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/RouteMethodSubscriber.php
@@ -35,7 +35,7 @@ class RouteMethodSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
// Set a higher priority to ensure that routes get the default HTTP methods
// as early as possible.
$events[RoutingEvents::ALTER][] = ['onRouteBuilding', 5000];
diff --git a/core/lib/Drupal/Core/FileTransfer/FTP.php b/core/lib/Drupal/Core/FileTransfer/FTP.php
index 2238f33..83cf66b 100644
--- a/core/lib/Drupal/Core/FileTransfer/FTP.php
+++ b/core/lib/Drupal/Core/FileTransfer/FTP.php
@@ -21,7 +21,7 @@ abstract class FTP extends FileTransfer {
/**
* {@inheritdoc}
*/
- static function factory($jail, $settings) {
+ public static function factory($jail, $settings) {
$username = empty($settings['username']) ? '' : $settings['username'];
$password = empty($settings['password']) ? '' : $settings['password'];
$hostname = empty($settings['advanced']['hostname']) ? 'localhost' : $settings['advanced']['hostname'];
diff --git a/core/lib/Drupal/Core/FileTransfer/FTPExtension.php b/core/lib/Drupal/Core/FileTransfer/FTPExtension.php
index 7cb0c54..c5f1b22 100644
--- a/core/lib/Drupal/Core/FileTransfer/FTPExtension.php
+++ b/core/lib/Drupal/Core/FileTransfer/FTPExtension.php
@@ -101,7 +101,7 @@ class FTPExtension extends FTP implements ChmodInterface {
/**
* {@inheritdoc}
*/
- function chmodJailed($path, $mode, $recursive) {
+ public function chmodJailed($path, $mode, $recursive) {
if (!ftp_chmod($this->connection, $mode, $path)) {
throw new FileTransferException("Unable to set permissions on %file", NULL, ['%file' => $path]);
}
diff --git a/core/lib/Drupal/Core/FileTransfer/FileTransfer.php b/core/lib/Drupal/Core/FileTransfer/FileTransfer.php
index a3cf678..25014f1 100644
--- a/core/lib/Drupal/Core/FileTransfer/FileTransfer.php
+++ b/core/lib/Drupal/Core/FileTransfer/FileTransfer.php
@@ -49,7 +49,7 @@ abstract class FileTransfer {
* be restricted to. This prevents the FileTransfer classes from being
* able to touch other parts of the filesystem.
*/
- function __construct($jail) {
+ public function __construct($jail) {
$this->jail = $jail;
}
@@ -73,7 +73,7 @@ abstract class FileTransfer {
*
* @throws \Drupal\Core\FileTransfer\FileTransferException
*/
- static function factory($jail, $settings) {
+ public static function factory($jail, $settings) {
throw new FileTransferException('FileTransfer::factory() static method not overridden by FileTransfer subclass.');
}
@@ -90,7 +90,7 @@ abstract class FileTransfer {
* @return string|bool
* The variable specified in $name.
*/
- function __get($name) {
+ public function __get($name) {
if ($name == 'connection') {
$this->connect();
return $this->connection;
@@ -249,7 +249,7 @@ abstract class FileTransfer {
* @return string
* The modified path.
*/
- function sanitizePath($path) {
+ public function sanitizePath($path) {
$path = str_replace('\\', '/', $path); // Windows path sanitization.
if (substr($path, -1) == '/') {
$path = substr($path, 0, -1);
@@ -347,7 +347,7 @@ abstract class FileTransfer {
* @return string|bool
* If successful, the chroot path for this connection, otherwise FALSE.
*/
- function findChroot() {
+ public function findChroot() {
// If the file exists as is, there is no chroot.
$path = __FILE__;
$path = $this->fixRemotePath($path, FALSE);
@@ -373,7 +373,7 @@ abstract class FileTransfer {
/**
* Sets the chroot and changes the jail to match the correct path scheme.
*/
- function setChroot() {
+ public function setChroot() {
$this->chroot = $this->findChroot();
$this->jail = $this->fixRemotePath($this->jail);
}
diff --git a/core/lib/Drupal/Core/FileTransfer/FileTransferException.php b/core/lib/Drupal/Core/FileTransfer/FileTransferException.php
index f8d0d07..bcfd602 100644
--- a/core/lib/Drupal/Core/FileTransfer/FileTransferException.php
+++ b/core/lib/Drupal/Core/FileTransfer/FileTransferException.php
@@ -24,7 +24,7 @@ class FileTransferException extends \RuntimeException {
* @param array $arguments
* Arguments to be used in this exception.
*/
- function __construct($message, $code = 0, $arguments = []) {
+ public function __construct($message, $code = 0, $arguments = []) {
parent::__construct($message, $code);
$this->arguments = $arguments;
}
diff --git a/core/lib/Drupal/Core/FileTransfer/Local.php b/core/lib/Drupal/Core/FileTransfer/Local.php
index 9320f4a..1da4e48 100644
--- a/core/lib/Drupal/Core/FileTransfer/Local.php
+++ b/core/lib/Drupal/Core/FileTransfer/Local.php
@@ -17,7 +17,7 @@ class Local extends FileTransfer implements ChmodInterface {
/**
* {@inheritdoc}
*/
- static function factory($jail, $settings) {
+ public static function factory($jail, $settings) {
return new Local($jail);
}
diff --git a/core/lib/Drupal/Core/FileTransfer/SSH.php b/core/lib/Drupal/Core/FileTransfer/SSH.php
index 256aaf4..5795526 100644
--- a/core/lib/Drupal/Core/FileTransfer/SSH.php
+++ b/core/lib/Drupal/Core/FileTransfer/SSH.php
@@ -10,7 +10,7 @@ class SSH extends FileTransfer implements ChmodInterface {
/**
* {@inheritdoc}
*/
- function __construct($jail, $username, $password, $hostname = "localhost", $port = 22) {
+ public function __construct($jail, $username, $password, $hostname = "localhost", $port = 22) {
$this->username = $username;
$this->password = $password;
$this->hostname = $hostname;
@@ -34,7 +34,7 @@ class SSH extends FileTransfer implements ChmodInterface {
/**
* {@inheritdoc}
*/
- static function factory($jail, $settings) {
+ public static function factory($jail, $settings) {
$username = empty($settings['username']) ? '' : $settings['username'];
$password = empty($settings['password']) ? '' : $settings['password'];
$hostname = empty($settings['advanced']['hostname']) ? 'localhost' : $settings['advanced']['hostname'];
@@ -127,7 +127,7 @@ class SSH extends FileTransfer implements ChmodInterface {
/**
* {@inheritdoc}
*/
- function chmodJailed($path, $mode, $recursive) {
+ public function chmodJailed($path, $mode, $recursive) {
$cmd = sprintf("chmod %s%o %s", $recursive ? '-R ' : '', $mode, escapeshellarg($path));
if (@!ssh2_exec($this->connection, $cmd)) {
throw new FileTransferException('Cannot change permissions of @path.', NULL, ['@path' => $path]);
diff --git a/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php b/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php
index 8e487d1..c651496 100644
--- a/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php
+++ b/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php
@@ -71,7 +71,7 @@ class DatabaseStorageExpirable extends DatabaseStorage implements KeyValueStoreE
/**
* {@inheritdoc}
*/
- function setWithExpire($key, $value, $expire) {
+ public function setWithExpire($key, $value, $expire) {
$this->connection->merge($this->table)
->keys([
'name' => $key,
@@ -87,7 +87,7 @@ class DatabaseStorageExpirable extends DatabaseStorage implements KeyValueStoreE
/**
* {@inheritdoc}
*/
- function setWithExpireIfNotExists($key, $value, $expire) {
+ public function setWithExpireIfNotExists($key, $value, $expire) {
$result = $this->connection->merge($this->table)
->insertFields([
'collection' => $this->collection,
@@ -104,7 +104,7 @@ class DatabaseStorageExpirable extends DatabaseStorage implements KeyValueStoreE
/**
* {@inheritdoc}
*/
- function setMultipleWithExpire(array $data, $expire) {
+ public function setMultipleWithExpire(array $data, $expire) {
foreach ($data as $key => $value) {
$this->setWithExpire($key, $value, $expire);
}
diff --git a/core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php b/core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php
index 7815b8c..f9c9b4c 100644
--- a/core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php
+++ b/core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseExpirableFactory.php
@@ -39,7 +39,7 @@ class KeyValueDatabaseExpirableFactory implements KeyValueExpirableFactoryInterf
* @param \Drupal\Core\Database\Connection $connection
* The Connection object containing the key-value tables.
*/
- function __construct(SerializationInterface $serializer, Connection $connection) {
+ public function __construct(SerializationInterface $serializer, Connection $connection) {
$this->serializer = $serializer;
$this->connection = $connection;
}
diff --git a/core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseFactory.php b/core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseFactory.php
index d70cb11..3bb45c1 100644
--- a/core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseFactory.php
+++ b/core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseFactory.php
@@ -32,7 +32,7 @@ class KeyValueDatabaseFactory implements KeyValueFactoryInterface {
* @param \Drupal\Core\Database\Connection $connection
* The Connection object containing the key-value tables.
*/
- function __construct(SerializationInterface $serializer, Connection $connection) {
+ public function __construct(SerializationInterface $serializer, Connection $connection) {
$this->serializer = $serializer;
$this->connection = $connection;
}
diff --git a/core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php b/core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php
index 0801ca1..eeaf510 100644
--- a/core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php
+++ b/core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php
@@ -50,7 +50,7 @@ class KeyValueFactory implements KeyValueFactoryInterface {
* @param array $options
* (optional) Collection-specific storage override options.
*/
- function __construct(ContainerInterface $container, array $options = []) {
+ public function __construct(ContainerInterface $container, array $options = []) {
$this->container = $container;
$this->options = $options;
}
diff --git a/core/lib/Drupal/Core/Password/PhpassHashedPassword.php b/core/lib/Drupal/Core/Password/PhpassHashedPassword.php
index 28313d2..0f938a0 100644
--- a/core/lib/Drupal/Core/Password/PhpassHashedPassword.php
+++ b/core/lib/Drupal/Core/Password/PhpassHashedPassword.php
@@ -47,7 +47,7 @@ class PhpassHashedPassword implements PasswordInterface {
* The number of times is calculated by raising 2 to the power of the given
* value.
*/
- function __construct($countLog2) {
+ public function __construct($countLog2) {
// Ensure that $countLog2 is within set bounds.
$this->countLog2 = $this->enforceLog2Boundaries($countLog2);
}
diff --git a/core/lib/Drupal/Core/PhpStorage/PhpStorageFactory.php b/core/lib/Drupal/Core/PhpStorage/PhpStorageFactory.php
index 17f889e..cdacff6 100644
--- a/core/lib/Drupal/Core/PhpStorage/PhpStorageFactory.php
+++ b/core/lib/Drupal/Core/PhpStorage/PhpStorageFactory.php
@@ -28,7 +28,7 @@ class PhpStorageFactory {
* @return \Drupal\Component\PhpStorage\PhpStorageInterface
* An instantiated storage for the specified name.
*/
- static function get($name) {
+ public static function get($name) {
$configuration = [];
$overrides = Settings::get('php_storage');
if (isset($overrides[$name])) {
diff --git a/core/lib/Drupal/Core/Plugin/Discovery/AnnotatedClassDiscovery.php b/core/lib/Drupal/Core/Plugin/Discovery/AnnotatedClassDiscovery.php
index bbcc858..9ecbaa0 100644
--- a/core/lib/Drupal/Core/Plugin/Discovery/AnnotatedClassDiscovery.php
+++ b/core/lib/Drupal/Core/Plugin/Discovery/AnnotatedClassDiscovery.php
@@ -50,7 +50,7 @@ class AnnotatedClassDiscovery extends ComponentAnnotatedClassDiscovery {
* @param string[] $annotation_namespaces
* (optional) Additional namespaces to scan for annotation definitions.
*/
- function __construct($subdir, \Traversable $root_namespaces, $plugin_definition_annotation_name = 'Drupal\Component\Annotation\Plugin', array $annotation_namespaces = []) {
+ public function __construct($subdir, \Traversable $root_namespaces, $plugin_definition_annotation_name = 'Drupal\Component\Annotation\Plugin', array $annotation_namespaces = []) {
if ($subdir) {
// Prepend a directory separator to $subdir,
// if it does not already have one.
diff --git a/core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php b/core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php
index e366bcb..51040cd 100644
--- a/core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php
+++ b/core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php
@@ -36,7 +36,7 @@ class HookDiscovery implements DiscoveryInterface {
* The Drupal hook that a module can implement in order to interface to
* this discovery class.
*/
- function __construct(ModuleHandlerInterface $module_handler, $hook) {
+ public function __construct(ModuleHandlerInterface $module_handler, $hook) {
$this->moduleHandler = $module_handler;
$this->hook = $hook;
}
diff --git a/core/lib/Drupal/Core/Plugin/Discovery/YamlDiscovery.php b/core/lib/Drupal/Core/Plugin/Discovery/YamlDiscovery.php
index af5630c..5866558 100644
--- a/core/lib/Drupal/Core/Plugin/Discovery/YamlDiscovery.php
+++ b/core/lib/Drupal/Core/Plugin/Discovery/YamlDiscovery.php
@@ -47,7 +47,7 @@ class YamlDiscovery implements DiscoveryInterface {
* @param array $directories
* An array of directories to scan.
*/
- function __construct($name, array $directories) {
+ public function __construct($name, array $directories) {
$this->discovery = new CoreYamlDiscovery($name, $directories);
}
diff --git a/core/lib/Drupal/Core/PrivateKey.php b/core/lib/Drupal/Core/PrivateKey.php
index 9d0f736..d7ac845 100644
--- a/core/lib/Drupal/Core/PrivateKey.php
+++ b/core/lib/Drupal/Core/PrivateKey.php
@@ -23,7 +23,7 @@ class PrivateKey {
* @param \Drupal\Core\State\StateInterface $state
* The state service.
*/
- function __construct(StateInterface $state) {
+ public function __construct(StateInterface $state) {
$this->state = $state;
}
diff --git a/core/lib/Drupal/Core/Queue/DatabaseQueue.php b/core/lib/Drupal/Core/Queue/DatabaseQueue.php
index 710a99b..e70000e 100644
--- a/core/lib/Drupal/Core/Queue/DatabaseQueue.php
+++ b/core/lib/Drupal/Core/Queue/DatabaseQueue.php
@@ -42,7 +42,7 @@ class DatabaseQueue implements ReliableQueueInterface, QueueGarbageCollectionInt
* @param \Drupal\Core\Database\Connection $connection
* The Connection object containing the key-value tables.
*/
- function __construct($name, Connection $connection) {
+ public function __construct($name, Connection $connection) {
$this->name = $name;
$this->connection = $connection;
}
diff --git a/core/lib/Drupal/Core/Queue/QueueDatabaseFactory.php b/core/lib/Drupal/Core/Queue/QueueDatabaseFactory.php
index e2bec48..a646789 100644
--- a/core/lib/Drupal/Core/Queue/QueueDatabaseFactory.php
+++ b/core/lib/Drupal/Core/Queue/QueueDatabaseFactory.php
@@ -22,7 +22,7 @@ class QueueDatabaseFactory {
* @param \Drupal\Core\Database\Connection $connection
* The Connection object containing the key-value tables.
*/
- function __construct(Connection $connection) {
+ public function __construct(Connection $connection) {
$this->connection = $connection;
}
diff --git a/core/lib/Drupal/Core/Queue/QueueFactory.php b/core/lib/Drupal/Core/Queue/QueueFactory.php
index 74126ef..6df7c5e 100644
--- a/core/lib/Drupal/Core/Queue/QueueFactory.php
+++ b/core/lib/Drupal/Core/Queue/QueueFactory.php
@@ -31,7 +31,7 @@ class QueueFactory implements ContainerAwareInterface {
/**
* Constructs a queue factory.
*/
- function __construct(Settings $settings) {
+ public function __construct(Settings $settings) {
$this->settings = $settings;
}
diff --git a/core/lib/Drupal/Core/Routing/RouteProvider.php b/core/lib/Drupal/Core/Routing/RouteProvider.php
index 1ba5f0d..5d92e77 100644
--- a/core/lib/Drupal/Core/Routing/RouteProvider.php
+++ b/core/lib/Drupal/Core/Routing/RouteProvider.php
@@ -397,7 +397,7 @@ class RouteProvider implements PreloadableRouteProviderInterface, PagedRouteProv
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[RoutingEvents::FINISHED][] = ['reset'];
return $events;
}
diff --git a/core/lib/Drupal/Core/Session/UserSession.php b/core/lib/Drupal/Core/Session/UserSession.php
index f25247d..f426803 100644
--- a/core/lib/Drupal/Core/Session/UserSession.php
+++ b/core/lib/Drupal/Core/Session/UserSession.php
@@ -128,7 +128,7 @@ class UserSession implements AccountInterface {
/**
* {@inheritdoc}
*/
- function getPreferredLangcode($fallback_to_default = TRUE) {
+ public function getPreferredLangcode($fallback_to_default = TRUE) {
$language_list = \Drupal::languageManager()->getLanguages();
if (!empty($this->preferred_langcode) && isset($language_list[$this->preferred_langcode])) {
return $language_list[$this->preferred_langcode]->getId();
@@ -141,7 +141,7 @@ class UserSession implements AccountInterface {
/**
* {@inheritdoc}
*/
- function getPreferredAdminLangcode($fallback_to_default = TRUE) {
+ public function getPreferredAdminLangcode($fallback_to_default = TRUE) {
$language_list = \Drupal::languageManager()->getLanguages();
if (!empty($this->preferred_admin_langcode) && isset($language_list[$this->preferred_admin_langcode])) {
return $language_list[$this->preferred_admin_langcode]->getId();
diff --git a/core/lib/Drupal/Core/StreamWrapper/LocalStream.php b/core/lib/Drupal/Core/StreamWrapper/LocalStream.php
index a6c8d2e..ec1980e 100644
--- a/core/lib/Drupal/Core/StreamWrapper/LocalStream.php
+++ b/core/lib/Drupal/Core/StreamWrapper/LocalStream.php
@@ -52,19 +52,19 @@ abstract class LocalStream implements StreamWrapperInterface {
* @return string
* String specifying the path.
*/
- abstract function getDirectoryPath();
+ abstract public function getDirectoryPath();
/**
* {@inheritdoc}
*/
- function setUri($uri) {
+ public function setUri($uri) {
$this->uri = $uri;
}
/**
* {@inheritdoc}
*/
- function getUri() {
+ public function getUri() {
return $this->uri;
}
@@ -98,7 +98,7 @@ abstract class LocalStream implements StreamWrapperInterface {
/**
* {@inheritdoc}
*/
- function realpath() {
+ public function realpath() {
return $this->getLocalPath();
}
diff --git a/core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php b/core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php
index e5538cc..2bf03f6 100644
--- a/core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php
+++ b/core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php
@@ -39,14 +39,14 @@ abstract class ReadOnlyStream implements StreamWrapperInterface {
/**
* {@inheritdoc}
*/
- function setUri($uri) {
+ public function setUri($uri) {
$this->uri = $uri;
}
/**
* {@inheritdoc}
*/
- function getUri() {
+ public function getUri() {
return $this->uri;
}
diff --git a/core/lib/Drupal/Core/Template/AttributeValueBase.php b/core/lib/Drupal/Core/Template/AttributeValueBase.php
index a0280e6..0990eb3 100644
--- a/core/lib/Drupal/Core/Template/AttributeValueBase.php
+++ b/core/lib/Drupal/Core/Template/AttributeValueBase.php
@@ -65,6 +65,6 @@ abstract class AttributeValueBase {
/**
* Implements the magic __toString() method.
*/
- abstract function __toString();
+ abstract public function __toString();
}
diff --git a/core/lib/Drupal/Core/Updater/Theme.php b/core/lib/Drupal/Core/Updater/Theme.php
index d16af57..7ac70f0 100644
--- a/core/lib/Drupal/Core/Updater/Theme.php
+++ b/core/lib/Drupal/Core/Updater/Theme.php
@@ -56,7 +56,7 @@ class Theme extends Updater implements UpdaterInterface {
/**
* {@inheritdoc}
*/
- static function canUpdateDirectory($directory) {
+ public static function canUpdateDirectory($directory) {
$info = static::getExtensionInfo($directory);
return (isset($info['type']) && $info['type'] == 'theme');
diff --git a/core/lib/Drupal/Core/Utility/ProjectInfo.php b/core/lib/Drupal/Core/Utility/ProjectInfo.php
index 4a4d0c0..395a23b 100644
--- a/core/lib/Drupal/Core/Utility/ProjectInfo.php
+++ b/core/lib/Drupal/Core/Utility/ProjectInfo.php
@@ -39,7 +39,7 @@ class ProjectInfo {
* (optional) Array of additional elements to be collected from the .info.yml
* file. Defaults to array().
*/
- function processInfoList(array &$projects, array $list, $project_type, $status, array $additional_whitelist = []) {
+ public function processInfoList(array &$projects, array $list, $project_type, $status, array $additional_whitelist = []) {
foreach ($list as $file) {
// Just projects with a matching status should be listed.
if ($file->status != $status) {
@@ -148,7 +148,7 @@ class ProjectInfo {
* @return string
* The canonical project short name.
*/
- function getProjectName(Extension $file) {
+ public function getProjectName(Extension $file) {
$project_name = '';
if (isset($file->info['project'])) {
$project_name = $file->info['project'];
@@ -174,7 +174,7 @@ class ProjectInfo {
*
* @see \Drupal\Core\Utility\ProjectInfo::processInfoList()
*/
- function filterProjectInfo($info, $additional_whitelist = []) {
+ public function filterProjectInfo($info, $additional_whitelist = []) {
$whitelist = [
'_info_file_ctime',
'datestamp',
diff --git a/core/lib/Drupal/Core/Utility/ThemeRegistry.php b/core/lib/Drupal/Core/Utility/ThemeRegistry.php
index 99b970c..bc2ce5a 100644
--- a/core/lib/Drupal/Core/Utility/ThemeRegistry.php
+++ b/core/lib/Drupal/Core/Utility/ThemeRegistry.php
@@ -46,7 +46,7 @@ class ThemeRegistry extends CacheCollector implements DestructableInterface {
* @param bool $modules_loaded
* Whether all modules have already been loaded.
*/
- function __construct($cid, CacheBackendInterface $cache, LockBackendInterface $lock, $tags = [], $modules_loaded = FALSE) {
+ public function __construct($cid, CacheBackendInterface $cache, LockBackendInterface $lock, $tags = [], $modules_loaded = FALSE) {
$this->cid = $cid;
$this->cache = $cache;
$this->lock = $lock;
@@ -81,7 +81,7 @@ class ThemeRegistry extends CacheCollector implements DestructableInterface {
* An array with the keys of the full theme registry, but the values
* initialized to NULL.
*/
- function initializeRegistry() {
+ public function initializeRegistry() {
// @todo DIC this.
$this->completeRegistry = \Drupal::service('theme.registry')->get();
diff --git a/core/modules/action/tests/src/Functional/ConfigurationTest.php b/core/modules/action/tests/src/Functional/ConfigurationTest.php
index 063e4a8..472ba17 100644
--- a/core/modules/action/tests/src/Functional/ConfigurationTest.php
+++ b/core/modules/action/tests/src/Functional/ConfigurationTest.php
@@ -24,7 +24,7 @@ class ConfigurationTest extends BrowserTestBase {
/**
* Tests configuration of advanced actions through administration interface.
*/
- function testActionConfiguration() {
+ public function testActionConfiguration() {
// Create a user with permission to view the actions administration pages.
$user = $this->drupalCreateUser(['administer actions']);
$this->drupalLogin($user);
diff --git a/core/modules/aggregator/src/Tests/AggregatorAdminTest.php b/core/modules/aggregator/src/Tests/AggregatorAdminTest.php
index 3d09bbc..01898b6 100644
--- a/core/modules/aggregator/src/Tests/AggregatorAdminTest.php
+++ b/core/modules/aggregator/src/Tests/AggregatorAdminTest.php
@@ -59,7 +59,7 @@ class AggregatorAdminTest extends AggregatorTestBase {
/**
* Tests the overview page.
*/
- function testOverviewPage() {
+ public function testOverviewPage() {
$feed = $this->createFeed($this->getRSS091Sample());
$this->drupalGet('admin/config/services/aggregator');
diff --git a/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php b/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
index 0a155fb..778f3db 100644
--- a/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
+++ b/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
@@ -23,7 +23,7 @@ class IpAddressBlockingTest extends BrowserTestBase {
/**
* Tests various user input to confirm correct validation and saving of data.
*/
- function testIPAddressValidation() {
+ public function testIPAddressValidation() {
// Create user.
$admin_user = $this->drupalCreateUser(['ban IP addresses']);
$this->drupalLogin($admin_user);
diff --git a/core/modules/basic_auth/src/Tests/Authentication/BasicAuthTest.php b/core/modules/basic_auth/src/Tests/Authentication/BasicAuthTest.php
index 45b9b35..3650e4f 100644
--- a/core/modules/basic_auth/src/Tests/Authentication/BasicAuthTest.php
+++ b/core/modules/basic_auth/src/Tests/Authentication/BasicAuthTest.php
@@ -75,7 +75,7 @@ class BasicAuthTest extends WebTestBase {
/**
* Test the global login flood control.
*/
- function testGlobalLoginFloodControl() {
+ public function testGlobalLoginFloodControl() {
$this->config('user.flood')
->set('ip_limit', 2)
// Set a high per-user limit out so that it is not relevant in the test.
@@ -100,7 +100,7 @@ class BasicAuthTest extends WebTestBase {
/**
* Test the per-user login flood control.
*/
- function testPerUserLoginFloodControl() {
+ public function testPerUserLoginFloodControl() {
$this->config('user.flood')
// Set a high global limit out so that it is not relevant in the test.
->set('ip_limit', 4000)
@@ -138,7 +138,7 @@ class BasicAuthTest extends WebTestBase {
/**
* Tests compatibility with locale/UI translation.
*/
- function testLocale() {
+ public function testLocale() {
ConfigurableLanguage::createFromLangcode('de')->save();
$this->config('system.site')->set('default_langcode', 'de')->save();
@@ -154,7 +154,7 @@ class BasicAuthTest extends WebTestBase {
/**
* Tests if a comprehensive message is displayed when the route is denied.
*/
- function testUnauthorizedErrorMessage() {
+ public function testUnauthorizedErrorMessage() {
$account = $this->drupalCreateUser();
$url = Url::fromRoute('router_test.11');
diff --git a/core/modules/big_pipe/src/EventSubscriber/NoBigPipeRouteAlterSubscriber.php b/core/modules/big_pipe/src/EventSubscriber/NoBigPipeRouteAlterSubscriber.php
index 516aeb4..8b3c9c2 100644
--- a/core/modules/big_pipe/src/EventSubscriber/NoBigPipeRouteAlterSubscriber.php
+++ b/core/modules/big_pipe/src/EventSubscriber/NoBigPipeRouteAlterSubscriber.php
@@ -40,7 +40,7 @@ class NoBigPipeRouteAlterSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[RoutingEvents::ALTER][] = ['onRoutingRouteAlterSetNoBigPipe'];
return $events;
}
diff --git a/core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php b/core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php
index f7d137d..b45c916 100644
--- a/core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php
+++ b/core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php
@@ -38,7 +38,7 @@ class BigPipeResponseAttachmentsProcessorTest extends UnitTestCase {
$big_pipe_response_attachments_processor->processAttachments($non_html_response);
}
- function nonHtmlResponseProvider() {
+ public function nonHtmlResponseProvider() {
return [
'AjaxResponse, which implements AttachmentsInterface' => [AjaxResponse::class],
'A dummy that implements AttachmentsInterface' => [get_class($this->prophesize(AttachmentsInterface::class)->reveal())],
diff --git a/core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php b/core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php
index 5faf8b8..89f361f 100644
--- a/core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php
+++ b/core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php
@@ -26,7 +26,7 @@ class BlockPageDisplayVariantSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[RenderEvents::SELECT_PAGE_DISPLAY_VARIANT][] = ['onSelectPageDisplayVariant'];
return $events;
}
diff --git a/core/modules/block/src/Tests/BlockAdminThemeTest.php b/core/modules/block/src/Tests/BlockAdminThemeTest.php
index 7736e05..8773f03 100644
--- a/core/modules/block/src/Tests/BlockAdminThemeTest.php
+++ b/core/modules/block/src/Tests/BlockAdminThemeTest.php
@@ -21,7 +21,7 @@ class BlockAdminThemeTest extends WebTestBase {
/**
* Check for the accessibility of the admin theme on the block admin page.
*/
- function testAdminTheme() {
+ public function testAdminTheme() {
// Create administrative user.
$admin_user = $this->drupalCreateUser(['administer blocks', 'administer themes']);
$this->drupalLogin($admin_user);
@@ -42,7 +42,7 @@ class BlockAdminThemeTest extends WebTestBase {
/**
* Ensure contextual links are disabled in Seven theme.
*/
- function testSevenAdminTheme() {
+ public function testSevenAdminTheme() {
// Create administrative user.
$admin_user = $this->drupalCreateUser([
'access administration pages',
diff --git a/core/modules/block/src/Tests/BlockFormInBlockTest.php b/core/modules/block/src/Tests/BlockFormInBlockTest.php
index 59b5f5f..ebe43c8 100644
--- a/core/modules/block/src/Tests/BlockFormInBlockTest.php
+++ b/core/modules/block/src/Tests/BlockFormInBlockTest.php
@@ -33,7 +33,7 @@ class BlockFormInBlockTest extends WebTestBase {
/**
* Test to see if form in block's redirect isn't cached.
*/
- function testCachePerPage() {
+ public function testCachePerPage() {
$form_values = ['email' => 'test@example.com'];
// Go to "test-page" and test if the block is enabled.
diff --git a/core/modules/block/src/Tests/BlockRenderOrderTest.php b/core/modules/block/src/Tests/BlockRenderOrderTest.php
index d74a90a..a7e26de 100644
--- a/core/modules/block/src/Tests/BlockRenderOrderTest.php
+++ b/core/modules/block/src/Tests/BlockRenderOrderTest.php
@@ -31,7 +31,7 @@ class BlockRenderOrderTest extends WebTestBase {
/**
* Tests the render order of the blocks.
*/
- function testBlockRenderOrder() {
+ public function testBlockRenderOrder() {
// Enable test blocks and place them in the same region.
$region = 'header';
$test_blocks = [
diff --git a/core/modules/block/src/Tests/BlockTest.php b/core/modules/block/src/Tests/BlockTest.php
index e6066c4..5910d47 100644
--- a/core/modules/block/src/Tests/BlockTest.php
+++ b/core/modules/block/src/Tests/BlockTest.php
@@ -18,7 +18,7 @@ class BlockTest extends BlockTestBase {
/**
* Tests block visibility.
*/
- function testBlockVisibility() {
+ public function testBlockVisibility() {
$block_name = 'system_powered_by_block';
// Create a random title for the block.
$title = $this->randomMachineName(8);
@@ -99,7 +99,7 @@ class BlockTest extends BlockTestBase {
/**
* Test block visibility when leaving "pages" textarea empty.
*/
- function testBlockVisibilityListedEmpty() {
+ public function testBlockVisibilityListedEmpty() {
$block_name = 'system_powered_by_block';
// Create a random title for the block.
$title = $this->randomMachineName(8);
@@ -176,7 +176,7 @@ class BlockTest extends BlockTestBase {
/**
* Test configuring and moving a module-define block to specific regions.
*/
- function testBlock() {
+ public function testBlock() {
// Place page title block to test error messages.
$this->drupalPlaceBlock('page_title_block');
@@ -268,7 +268,7 @@ class BlockTest extends BlockTestBase {
/**
* Test block display of theme titles.
*/
- function testThemeName() {
+ public function testThemeName() {
// Enable the help block.
$this->drupalPlaceBlock('help_block', ['region' => 'help']);
$this->drupalPlaceBlock('local_tasks_block');
@@ -285,7 +285,7 @@ class BlockTest extends BlockTestBase {
/**
* Test block title display settings.
*/
- function testHideBlockTitle() {
+ public function testHideBlockTitle() {
$block_name = 'system_powered_by_block';
// Create a random title for the block.
$title = $this->randomMachineName(8);
@@ -328,7 +328,7 @@ class BlockTest extends BlockTestBase {
* The machine name of the theme region to move the block to, for example
* 'header' or 'sidebar_first'.
*/
- function moveBlockToRegion(array $block, $region) {
+ public function moveBlockToRegion(array $block, $region) {
// Set the created block to a specific region.
$block += ['theme' => $this->config('system.theme')->get('default')];
$edit = [];
diff --git a/core/modules/block/src/Tests/BlockUiTest.php b/core/modules/block/src/Tests/BlockUiTest.php
index 5f18ae1..899f9bb 100644
--- a/core/modules/block/src/Tests/BlockUiTest.php
+++ b/core/modules/block/src/Tests/BlockUiTest.php
@@ -94,7 +94,7 @@ class BlockUiTest extends WebTestBase {
/**
* Test block admin page exists and functions correctly.
*/
- function testBlockAdminUiPage() {
+ public function testBlockAdminUiPage() {
// Visit the blocks admin ui.
$this->drupalGet('admin/structure/block');
// Look for the blocks table.
diff --git a/core/modules/block/src/Tests/NonDefaultBlockAdminTest.php b/core/modules/block/src/Tests/NonDefaultBlockAdminTest.php
index 9f3590c..fc2f33c 100644
--- a/core/modules/block/src/Tests/NonDefaultBlockAdminTest.php
+++ b/core/modules/block/src/Tests/NonDefaultBlockAdminTest.php
@@ -30,7 +30,7 @@ class NonDefaultBlockAdminTest extends WebTestBase {
/**
* Test non-default theme admin.
*/
- function testNonDefaultBlockAdmin() {
+ public function testNonDefaultBlockAdmin() {
$admin_user = $this->drupalCreateUser(['administer blocks', 'administer themes']);
$this->drupalLogin($admin_user);
$new_theme = 'bartik';
diff --git a/core/modules/block/tests/src/Functional/BlockCacheTest.php b/core/modules/block/tests/src/Functional/BlockCacheTest.php
index 4ea433f..e5bb360 100644
--- a/core/modules/block/tests/src/Functional/BlockCacheTest.php
+++ b/core/modules/block/tests/src/Functional/BlockCacheTest.php
@@ -69,7 +69,7 @@ class BlockCacheTest extends BrowserTestBase {
/**
* Test "user.roles" cache context.
*/
- function testCachePerRole() {
+ public function testCachePerRole() {
\Drupal::state()->set('block_test.cache_contexts', ['user.roles']);
// Enable our test block. Set some content for it to display.
@@ -116,7 +116,7 @@ class BlockCacheTest extends BrowserTestBase {
/**
* Test a cacheable block without any additional cache context.
*/
- function testCachePermissions() {
+ public function testCachePermissions() {
// user.permissions is a required context, so a user with different
// permissions will see a different version of the block.
\Drupal::state()->set('block_test.cache_contexts', []);
@@ -142,7 +142,7 @@ class BlockCacheTest extends BrowserTestBase {
/**
* Test non-cacheable block.
*/
- function testNoCache() {
+ public function testNoCache() {
\Drupal::state()->set('block_test.cache_max_age', 0);
$current_content = $this->randomMachineName();
@@ -162,7 +162,7 @@ class BlockCacheTest extends BrowserTestBase {
/**
* Test "user" cache context.
*/
- function testCachePerUser() {
+ public function testCachePerUser() {
\Drupal::state()->set('block_test.cache_contexts', ['user']);
$current_content = $this->randomMachineName();
@@ -191,7 +191,7 @@ class BlockCacheTest extends BrowserTestBase {
/**
* Test "url" cache context.
*/
- function testCachePerPage() {
+ public function testCachePerPage() {
\Drupal::state()->set('block_test.cache_contexts', ['url']);
$current_content = $this->randomMachineName();
diff --git a/core/modules/block/tests/src/Functional/BlockHtmlTest.php b/core/modules/block/tests/src/Functional/BlockHtmlTest.php
index 9436990..5f9afe9 100644
--- a/core/modules/block/tests/src/Functional/BlockHtmlTest.php
+++ b/core/modules/block/tests/src/Functional/BlockHtmlTest.php
@@ -35,7 +35,7 @@ class BlockHtmlTest extends BrowserTestBase {
/**
* Tests for valid HTML for a block.
*/
- function testHtml() {
+ public function testHtml() {
$this->drupalGet('');
// Ensure that a block's ID is converted to an HTML valid ID, and that
diff --git a/core/modules/block/tests/src/Functional/BlockInvalidRegionTest.php b/core/modules/block/tests/src/Functional/BlockInvalidRegionTest.php
index 9b18633..fe8cdcb 100644
--- a/core/modules/block/tests/src/Functional/BlockInvalidRegionTest.php
+++ b/core/modules/block/tests/src/Functional/BlockInvalidRegionTest.php
@@ -34,7 +34,7 @@ class BlockInvalidRegionTest extends BrowserTestBase {
/**
* Tests that blocks assigned to invalid regions work correctly.
*/
- function testBlockInInvalidRegion() {
+ public function testBlockInInvalidRegion() {
// Enable a test block and place it in an invalid region.
$block = $this->drupalPlaceBlock('test_html');
\Drupal::configFactory()->getEditable('block.block.' . $block->id())->set('region', 'invalid_region')->save();
diff --git a/core/modules/block/tests/src/Functional/BlockTemplateSuggestionsTest.php b/core/modules/block/tests/src/Functional/BlockTemplateSuggestionsTest.php
index 61a3745..fd4fd51 100644
--- a/core/modules/block/tests/src/Functional/BlockTemplateSuggestionsTest.php
+++ b/core/modules/block/tests/src/Functional/BlockTemplateSuggestionsTest.php
@@ -22,7 +22,7 @@ class BlockTemplateSuggestionsTest extends BrowserTestBase {
/**
* Tests template suggestions from block_theme_suggestions_block().
*/
- function testBlockThemeHookSuggestions() {
+ public function testBlockThemeHookSuggestions() {
// Define a block with a derivative to be preprocessed, which includes both
// an underscore (not transformed) and a hyphen (transformed to underscore),
// and generates possibilities for each level of derivative.
diff --git a/core/modules/block/tests/src/Functional/NewDefaultThemeBlocksTest.php b/core/modules/block/tests/src/Functional/NewDefaultThemeBlocksTest.php
index 767a7da..adc7da3 100644
--- a/core/modules/block/tests/src/Functional/NewDefaultThemeBlocksTest.php
+++ b/core/modules/block/tests/src/Functional/NewDefaultThemeBlocksTest.php
@@ -21,7 +21,7 @@ class NewDefaultThemeBlocksTest extends BrowserTestBase {
/**
* Check the enabled Bartik blocks are correctly copied over.
*/
- function testNewDefaultThemeBlocks() {
+ public function testNewDefaultThemeBlocks() {
$default_theme = $this->config('system.theme')->get('default');
// Add two instances of the user login block.
diff --git a/core/modules/block_content/src/Tests/Views/BlockContentFieldFilterTest.php b/core/modules/block_content/src/Tests/Views/BlockContentFieldFilterTest.php
index 905a7a0..1ff4fb5 100644
--- a/core/modules/block_content/src/Tests/Views/BlockContentFieldFilterTest.php
+++ b/core/modules/block_content/src/Tests/Views/BlockContentFieldFilterTest.php
@@ -35,7 +35,7 @@ class BlockContentFieldFilterTest extends BlockContentTestBase {
/**
* {@inheritdoc}
*/
- function setUp() {
+ public function setUp() {
parent::setUp();
// Add two new languages.
diff --git a/core/modules/book/src/Plugin/Block/BookNavigationBlock.php b/core/modules/book/src/Plugin/Block/BookNavigationBlock.php
index 7b0156f..e55fe36 100644
--- a/core/modules/book/src/Plugin/Block/BookNavigationBlock.php
+++ b/core/modules/book/src/Plugin/Block/BookNavigationBlock.php
@@ -94,7 +94,7 @@ class BookNavigationBlock extends BlockBase implements ContainerFactoryPluginInt
/**
* {@inheritdoc}
*/
- function blockForm($form, FormStateInterface $form_state) {
+ public function blockForm($form, FormStateInterface $form_state) {
$options = [
'all pages' => $this->t('Show block on all pages'),
'book pages' => $this->t('Show block only on book pages'),
diff --git a/core/modules/book/src/Tests/BookTest.php b/core/modules/book/src/Tests/BookTest.php
index 183674f..05cc2fa 100644
--- a/core/modules/book/src/Tests/BookTest.php
+++ b/core/modules/book/src/Tests/BookTest.php
@@ -80,7 +80,7 @@ class BookTest extends WebTestBase {
*
* @return \Drupal\node\NodeInterface[]
*/
- function createBook() {
+ public function createBook() {
// Create new book.
$this->drupalLogin($this->bookAuthor);
@@ -151,7 +151,7 @@ class BookTest extends WebTestBase {
/**
* Tests saving the book outline on an empty book.
*/
- function testEmptyBook() {
+ public function testEmptyBook() {
// Create a new empty book.
$this->drupalLogin($this->bookAuthor);
$book = $this->createBookNode('new');
@@ -166,7 +166,7 @@ class BookTest extends WebTestBase {
/**
* Tests book functionality through node interfaces.
*/
- function testBook() {
+ public function testBook() {
// Create new book.
$nodes = $this->createBook();
$book = $this->book;
@@ -247,7 +247,7 @@ class BookTest extends WebTestBase {
* @param array $breadcrumb
* The nodes that should be displayed in the breadcrumb.
*/
- function checkBookNode(EntityInterface $node, $nodes, $previous = FALSE, $up = FALSE, $next = FALSE, array $breadcrumb) {
+ public function checkBookNode(EntityInterface $node, $nodes, $previous = FALSE, $up = FALSE, $next = FALSE, array $breadcrumb) {
// $number does not use drupal_static as it should not be reset
// since it uniquely identifies each call to checkBookNode().
static $number = 0;
@@ -319,7 +319,7 @@ class BookTest extends WebTestBase {
* @return string
* A regular expression that locates sub-nodes of the outline.
*/
- function generateOutlinePattern($nodes) {
+ public function generateOutlinePattern($nodes) {
$outline = '';
foreach ($nodes as $node) {
$outline .= '(node\/' . $node->id() . ')(.*?)(' . $node->label() . ')(.*?)';
@@ -339,7 +339,7 @@ class BookTest extends WebTestBase {
* @return \Drupal\node\NodeInterface
* The created node.
*/
- function createBookNode($book_nid, $parent = NULL) {
+ public function createBookNode($book_nid, $parent = NULL) {
// $number does not use drupal_static as it should not be reset
// since it uniquely identifies each call to createBookNode().
static $number = 0; // Used to ensure that when sorted nodes stay in same order.
@@ -373,7 +373,7 @@ class BookTest extends WebTestBase {
/**
* Tests book export ("printer-friendly version") functionality.
*/
- function testBookExport() {
+ public function testBookExport() {
// Create a book.
$nodes = $this->createBook();
@@ -418,7 +418,7 @@ class BookTest extends WebTestBase {
/**
* Tests the functionality of the book navigation block.
*/
- function testBookNavigationBlock() {
+ public function testBookNavigationBlock() {
$this->drupalLogin($this->adminUser);
// Enable the block.
@@ -495,7 +495,7 @@ class BookTest extends WebTestBase {
/**
* Tests the book navigation block when an access module is installed.
*/
- function testNavigationBlockOnAccessModuleInstalled() {
+ public function testNavigationBlockOnAccessModuleInstalled() {
$this->drupalLogin($this->adminUser);
$block = $this->drupalPlaceBlock('book_navigation', ['block_mode' => 'book pages']);
@@ -526,7 +526,7 @@ class BookTest extends WebTestBase {
/**
* Tests the access for deleting top-level book nodes.
*/
- function testBookDelete() {
+ public function testBookDelete() {
$node_storage = $this->container->get('entity.manager')->getStorage('node');
$nodes = $this->createBook();
$this->drupalLogin($this->adminUser);
diff --git a/core/modules/ckeditor/src/CKEditorPluginBase.php b/core/modules/ckeditor/src/CKEditorPluginBase.php
index 99f2663..af284fc 100644
--- a/core/modules/ckeditor/src/CKEditorPluginBase.php
+++ b/core/modules/ckeditor/src/CKEditorPluginBase.php
@@ -33,21 +33,21 @@ abstract class CKEditorPluginBase extends PluginBase implements CKEditorPluginIn
/**
* {@inheritdoc}
*/
- function isInternal() {
+ public function isInternal() {
return FALSE;
}
/**
* {@inheritdoc}
*/
- function getDependencies(Editor $editor) {
+ public function getDependencies(Editor $editor) {
return [];
}
/**
* {@inheritdoc}
*/
- function getLibraries(Editor $editor) {
+ public function getLibraries(Editor $editor) {
return [];
}
diff --git a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php
index 90d4eae..587cf85 100644
--- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php
+++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php
@@ -79,7 +79,7 @@ class DrupalImage extends CKEditorPluginBase implements CKEditorPluginConfigurab
* @see \Drupal\editor\Form\EditorImageDialog
* @see editor_image_upload_settings_form()
*/
- function validateImageUploadSettings(array $element, FormStateInterface $form_state) {
+ public function validateImageUploadSettings(array $element, FormStateInterface $form_state) {
$settings = &$form_state->getValue(['editor', 'settings', 'plugins', 'drupalimage', 'image_upload']);
$form_state->get('editor')->setImageUploadSettings($settings);
$form_state->unsetValue(['editor', 'settings', 'plugins', 'drupalimage']);
diff --git a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php
index 4241c3c..64e764e 100644
--- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php
+++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php
@@ -77,7 +77,7 @@ class DrupalImageCaption extends PluginBase implements CKEditorPluginInterface,
/**
* {@inheritdoc}
*/
- function isEnabled(Editor $editor) {
+ public function isEnabled(Editor $editor) {
if (!$editor->hasAssociatedFilterFormat()) {
return FALSE;
}
diff --git a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php
index 31ce08f..ffae409 100644
--- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php
+++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php
@@ -126,7 +126,7 @@ class Language extends CKEditorPluginBase implements CKEditorPluginConfigurableI
/**
* {@inheritdoc}
*/
- function getCssFiles(Editor $editor) {
+ public function getCssFiles(Editor $editor) {
return [
drupal_get_path('module', 'ckeditor') . '/css/plugins/language/ckeditor.language.css'
];
diff --git a/core/modules/ckeditor/src/Tests/CKEditorAdminTest.php b/core/modules/ckeditor/src/Tests/CKEditorAdminTest.php
index 3541f0f..669dc5f 100644
--- a/core/modules/ckeditor/src/Tests/CKEditorAdminTest.php
+++ b/core/modules/ckeditor/src/Tests/CKEditorAdminTest.php
@@ -48,7 +48,7 @@ class CKEditorAdminTest extends WebTestBase {
/**
* Tests configuring a text editor for an existing text format.
*/
- function testExistingFormat() {
+ public function testExistingFormat() {
$ckeditor = $this->container->get('plugin.manager.editor')->createInstance('ckeditor');
$this->drupalLogin($this->adminUser);
@@ -222,7 +222,7 @@ class CKEditorAdminTest extends WebTestBase {
* This test only needs to ensure that the basics of the CKEditor
* configuration form work; details are tested in testExistingFormat().
*/
- function testNewFormat() {
+ public function testNewFormat() {
$this->drupalLogin($this->adminUser);
$this->drupalGet('admin/config/content/formats/add');
diff --git a/core/modules/ckeditor/src/Tests/CKEditorLoadingTest.php b/core/modules/ckeditor/src/Tests/CKEditorLoadingTest.php
index 2f5052b..438aeba 100644
--- a/core/modules/ckeditor/src/Tests/CKEditorLoadingTest.php
+++ b/core/modules/ckeditor/src/Tests/CKEditorLoadingTest.php
@@ -74,7 +74,7 @@ class CKEditorLoadingTest extends WebTestBase {
/**
* Tests loading of CKEditor CSS, JS and JS settings.
*/
- function testLoading() {
+ public function testLoading() {
// The untrusted user:
// - has access to 1 text format (plain_text);
// - doesn't have access to the filtered_html text format, so: no text editor.
@@ -197,7 +197,7 @@ class CKEditorLoadingTest extends WebTestBase {
/**
* Tests loading of theme's CKEditor stylesheets defined in the .info file.
*/
- function testExternalStylesheets() {
+ public function testExternalStylesheets() {
$theme_handler = \Drupal::service('theme_handler');
// Case 1: Install theme which has an absolute external CSS URL.
$theme_handler->install(['test_ckeditor_stylesheets_external']);
diff --git a/core/modules/ckeditor/src/Tests/CKEditorStylesComboAdminTest.php b/core/modules/ckeditor/src/Tests/CKEditorStylesComboAdminTest.php
index d70980e..1a2f767 100644
--- a/core/modules/ckeditor/src/Tests/CKEditorStylesComboAdminTest.php
+++ b/core/modules/ckeditor/src/Tests/CKEditorStylesComboAdminTest.php
@@ -59,7 +59,7 @@ class CKEditorStylesComboAdminTest extends WebTestBase {
/**
* Tests StylesCombo settings for an existing text format.
*/
- function testExistingFormat() {
+ public function testExistingFormat() {
$ckeditor = $this->container->get('plugin.manager.editor')->createInstance('ckeditor');
$default_settings = $ckeditor->getDefaultSettings();
diff --git a/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorPluginManagerTest.php b/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorPluginManagerTest.php
index fc79273..eb02d37 100644
--- a/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorPluginManagerTest.php
+++ b/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorPluginManagerTest.php
@@ -50,7 +50,7 @@ class CKEditorPluginManagerTest extends KernelTestBase {
/**
* Tests the enabling of plugins.
*/
- function testEnabledPlugins() {
+ public function testEnabledPlugins() {
$this->manager = $this->container->get('plugin.manager.ckeditor.plugin');
$editor = Editor::load('filtered_html');
@@ -132,7 +132,7 @@ class CKEditorPluginManagerTest extends KernelTestBase {
/**
* Tests the iframe instance CSS files of plugins.
*/
- function testCssFiles() {
+ public function testCssFiles() {
$this->manager = $this->container->get('plugin.manager.ckeditor.plugin');
$editor = Editor::load('filtered_html');
diff --git a/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php b/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php
index 4bfda7e..4fbead9 100644
--- a/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php
+++ b/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php
@@ -68,7 +68,7 @@ class CKEditorTest extends KernelTestBase {
/**
* Tests CKEditor::getJSSettings().
*/
- function testGetJSSettings() {
+ public function testGetJSSettings() {
$editor = Editor::load('filtered_html');
// Default toolbar.
@@ -216,7 +216,7 @@ class CKEditorTest extends KernelTestBase {
/**
* Tests CKEditor::buildToolbarJSSetting().
*/
- function testBuildToolbarJSSetting() {
+ public function testBuildToolbarJSSetting() {
$editor = Editor::load('filtered_html');
// Default toolbar.
@@ -247,7 +247,7 @@ class CKEditorTest extends KernelTestBase {
/**
* Tests CKEditor::buildContentsCssJSSetting().
*/
- function testBuildContentsCssJSSetting() {
+ public function testBuildContentsCssJSSetting() {
$editor = Editor::load('filtered_html');
// Default toolbar.
@@ -284,7 +284,7 @@ class CKEditorTest extends KernelTestBase {
/**
* Tests Internal::getConfig().
*/
- function testInternalGetConfig() {
+ public function testInternalGetConfig() {
$editor = Editor::load('filtered_html');
$internal_plugin = $this->container->get('plugin.manager.ckeditor.plugin')->createInstance('internal');
@@ -305,7 +305,7 @@ class CKEditorTest extends KernelTestBase {
/**
* Tests StylesCombo::getConfig().
*/
- function testStylesComboGetConfig() {
+ public function testStylesComboGetConfig() {
$editor = Editor::load('filtered_html');
$stylescombo_plugin = $this->container->get('plugin.manager.ckeditor.plugin')->createInstance('stylescombo');
@@ -364,7 +364,7 @@ class CKEditorTest extends KernelTestBase {
/**
* Tests language list availability in CKEditor.
*/
- function testLanguages() {
+ public function testLanguages() {
// Get CKEditor supported language codes and spot-check.
$this->enableModules(['language']);
$this->installConfig(['language']);
@@ -389,7 +389,7 @@ class CKEditorTest extends KernelTestBase {
/**
* Tests that CKEditor plugins participate in JS translation.
*/
- function testJSTranslation() {
+ public function testJSTranslation() {
$this->enableModules(['language', 'locale']);
$this->installSchema('locale', 'locales_source');
$this->installSchema('locale', 'locales_location');
diff --git a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/Llama.php b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/Llama.php
index 012579d..3b8951c 100644
--- a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/Llama.php
+++ b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/Llama.php
@@ -29,28 +29,28 @@ class Llama extends PluginBase implements CKEditorPluginInterface {
/**
* {@inheritdoc}
*/
- function getDependencies(Editor $editor) {
+ public function getDependencies(Editor $editor) {
return [];
}
/**
* {@inheritdoc}
*/
- function getLibraries(Editor $editor) {
+ public function getLibraries(Editor $editor) {
return [];
}
/**
* {@inheritdoc}
*/
- function isInternal() {
+ public function isInternal() {
return FALSE;
}
/**
* {@inheritdoc}
*/
- function getFile() {
+ public function getFile() {
return drupal_get_path('module', 'ckeditor_test') . '/js/llama.js';
}
diff --git a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaButton.php b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaButton.php
index 4568192..b357811 100644
--- a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaButton.php
+++ b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaButton.php
@@ -17,7 +17,7 @@ class LlamaButton extends Llama implements CKEditorPluginButtonsInterface {
/**
* {@inheritdoc}
*/
- function getButtons() {
+ public function getButtons() {
return [
'Llama' => [
'label' => t('Insert Llama'),
@@ -28,7 +28,7 @@ class LlamaButton extends Llama implements CKEditorPluginButtonsInterface {
/**
* {@inheritdoc}
*/
- function getFile() {
+ public function getFile() {
return drupal_get_path('module', 'ckeditor_test') . '/js/llama_button.js';
}
diff --git a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextual.php b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextual.php
index 01cb992..5ece17a 100644
--- a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextual.php
+++ b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextual.php
@@ -18,7 +18,7 @@ class LlamaContextual extends Llama implements CKEditorPluginContextualInterface
/**
* {@inheritdoc}
*/
- function isEnabled(Editor $editor) {
+ public function isEnabled(Editor $editor) {
// Automatically enable this plugin if the Underline button is enabled.
$settings = $editor->getSettings();
foreach ($settings['toolbar']['rows'] as $row) {
@@ -34,7 +34,7 @@ class LlamaContextual extends Llama implements CKEditorPluginContextualInterface
/**
* {@inheritdoc}
*/
- function getFile() {
+ public function getFile() {
return drupal_get_path('module', 'ckeditor_test') . '/js/llama_contextual.js';
}
diff --git a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php
index 5e1955f..2894fc9 100644
--- a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php
+++ b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php
@@ -22,7 +22,7 @@ class LlamaContextualAndButton extends Llama implements CKEditorPluginContextual
/**
* {@inheritdoc}
*/
- function isEnabled(Editor $editor) {
+ public function isEnabled(Editor $editor) {
// Automatically enable this plugin if the Strike button is enabled.
$settings = $editor->getSettings();
foreach ($settings['toolbar']['rows'] as $row) {
@@ -38,7 +38,7 @@ class LlamaContextualAndButton extends Llama implements CKEditorPluginContextual
/**
* {@inheritdoc}
*/
- function getButtons() {
+ public function getButtons() {
return [
'Llama' => [
'label' => t('Insert Llama'),
@@ -49,14 +49,14 @@ class LlamaContextualAndButton extends Llama implements CKEditorPluginContextual
/**
* {@inheritdoc}
*/
- function getFile() {
+ public function getFile() {
return drupal_get_path('module', 'ckeditor_test') . '/js/llama_contextual_and_button.js';
}
/**
* {@inheritdoc}
*/
- function settingsForm(array $form, FormStateInterface $form_state, Editor $editor) {
+ public function settingsForm(array $form, FormStateInterface $form_state, Editor $editor) {
// Defaults.
$config = ['ultra_llama_mode' => FALSE];
$settings = $editor->getSettings();
diff --git a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php
index d3b9a7f..e0901dc 100644
--- a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php
+++ b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php
@@ -19,7 +19,7 @@ class LlamaCss extends Llama implements CKEditorPluginButtonsInterface, CKEditor
/**
* {@inheritdoc}
*/
- function getButtons() {
+ public function getButtons() {
return [
'LlamaCSS' => [
'label' => t('Insert Llama CSS'),
@@ -30,7 +30,7 @@ class LlamaCss extends Llama implements CKEditorPluginButtonsInterface, CKEditor
/**
* {@inheritdoc}
*/
- function getCssFiles(Editor $editor) {
+ public function getCssFiles(Editor $editor) {
return [
drupal_get_path('module', 'ckeditor_test') . '/css/llama.css'
];
@@ -39,7 +39,7 @@ class LlamaCss extends Llama implements CKEditorPluginButtonsInterface, CKEditor
/**
* {@inheritdoc}
*/
- function getFile() {
+ public function getFile() {
return drupal_get_path('module', 'ckeditor_test') . '/js/llama_css.js';
}
diff --git a/core/modules/color/tests/src/Functional/ColorConfigSchemaTest.php b/core/modules/color/tests/src/Functional/ColorConfigSchemaTest.php
index e55275d..f93f358 100644
--- a/core/modules/color/tests/src/Functional/ColorConfigSchemaTest.php
+++ b/core/modules/color/tests/src/Functional/ColorConfigSchemaTest.php
@@ -40,7 +40,7 @@ class ColorConfigSchemaTest extends BrowserTestBase {
/**
* Tests whether the color config schema is valid.
*/
- function testValidColorConfigSchema() {
+ public function testValidColorConfigSchema() {
$settings_path = 'admin/appearance/settings/bartik';
$edit['scheme'] = '';
$edit['palette[bg]'] = '#123456';
diff --git a/core/modules/color/tests/src/Functional/ColorSafePreviewTest.php b/core/modules/color/tests/src/Functional/ColorSafePreviewTest.php
index e80202f..9f6914c 100644
--- a/core/modules/color/tests/src/Functional/ColorSafePreviewTest.php
+++ b/core/modules/color/tests/src/Functional/ColorSafePreviewTest.php
@@ -39,7 +39,7 @@ class ColorSafePreviewTest extends BrowserTestBase {
/**
* Ensures color preview.html is sanitized.
*/
- function testColorPreview() {
+ public function testColorPreview() {
// Install the color test theme.
\Drupal::service('theme_handler')->install(['color_test_theme']);
$this->drupalLogin($this->bigUser);
diff --git a/core/modules/color/tests/src/Functional/ColorTest.php b/core/modules/color/tests/src/Functional/ColorTest.php
index 8416913..11ff1e7 100644
--- a/core/modules/color/tests/src/Functional/ColorTest.php
+++ b/core/modules/color/tests/src/Functional/ColorTest.php
@@ -84,7 +84,7 @@ class ColorTest extends BrowserTestBase {
/**
* Tests the Color module functionality.
*/
- function testColor() {
+ public function testColor() {
foreach ($this->themes as $theme => $test_values) {
$this->_testColor($theme, $test_values);
}
@@ -99,7 +99,7 @@ class ColorTest extends BrowserTestBase {
* An associative array of test settings (i.e. 'Main background', 'Text
* color', 'Color set', etc) for the theme which being tested.
*/
- function _testColor($theme, $test_values) {
+ public function _testColor($theme, $test_values) {
$this->config('system.theme')
->set('default', $theme)
->save();
@@ -151,7 +151,7 @@ class ColorTest extends BrowserTestBase {
/**
* Tests whether the provided color is valid.
*/
- function testValidColor() {
+ public function testValidColor() {
$this->config('system.theme')
->set('default', 'bartik')
->save();
@@ -176,7 +176,7 @@ class ColorTest extends BrowserTestBase {
/**
* Test whether the custom logo is used in the color preview.
*/
- function testLogoSettingOverride() {
+ public function testLogoSettingOverride() {
$this->drupalLogin($this->bigUser);
$edit = [
'default_logo' => FALSE,
@@ -192,7 +192,7 @@ class ColorTest extends BrowserTestBase {
/**
* Test whether the scheme can be set, viewed anonymously and reset.
*/
- function testOverrideAndResetScheme() {
+ public function testOverrideAndResetScheme() {
$settings_path = 'admin/appearance/settings/bartik';
$this->config('system.theme')
->set('default', 'bartik')
diff --git a/core/modules/comment/src/Plugin/views/argument/UserUid.php b/core/modules/comment/src/Plugin/views/argument/UserUid.php
index 1fc5992..7023102 100644
--- a/core/modules/comment/src/Plugin/views/argument/UserUid.php
+++ b/core/modules/comment/src/Plugin/views/argument/UserUid.php
@@ -49,7 +49,7 @@ class UserUid extends ArgumentPluginBase {
return new static($configuration, $plugin_id, $plugin_definition, $container->get('database'));
}
- function title() {
+ public function title() {
if (!$this->argument) {
$title = \Drupal::config('user.settings')->get('anonymous');
}
diff --git a/core/modules/comment/src/Tests/CommentActionsTest.php b/core/modules/comment/src/Tests/CommentActionsTest.php
index 8b741e7..56d34e4 100644
--- a/core/modules/comment/src/Tests/CommentActionsTest.php
+++ b/core/modules/comment/src/Tests/CommentActionsTest.php
@@ -22,7 +22,7 @@ class CommentActionsTest extends CommentTestBase {
/**
* Tests comment publish and unpublish actions.
*/
- function testCommentPublishUnpublishActions() {
+ public function testCommentPublishUnpublishActions() {
$this->drupalLogin($this->webUser);
$comment_text = $this->randomMachineName();
$subject = $this->randomMachineName();
@@ -42,7 +42,7 @@ class CommentActionsTest extends CommentTestBase {
/**
* Tests the unpublish comment by keyword action.
*/
- function testCommentUnpublishByKeyword() {
+ public function testCommentUnpublishByKeyword() {
$this->drupalLogin($this->adminUser);
$keyword_1 = $this->randomMachineName();
$keyword_2 = $this->randomMachineName();
diff --git a/core/modules/comment/src/Tests/CommentAdminTest.php b/core/modules/comment/src/Tests/CommentAdminTest.php
index 74e6e45..980ad30 100644
--- a/core/modules/comment/src/Tests/CommentAdminTest.php
+++ b/core/modules/comment/src/Tests/CommentAdminTest.php
@@ -21,7 +21,7 @@ class CommentAdminTest extends CommentTestBase {
/**
* Test comment approval functionality through admin/content/comment.
*/
- function testApprovalAdminInterface() {
+ public function testApprovalAdminInterface() {
// Set anonymous comments to require approval.
user_role_change_permissions(RoleInterface::ANONYMOUS_ID, [
'access comments' => TRUE,
@@ -103,7 +103,7 @@ class CommentAdminTest extends CommentTestBase {
/**
* Tests comment approval functionality through the node interface.
*/
- function testApprovalNodeInterface() {
+ public function testApprovalNodeInterface() {
// Set anonymous comments to require approval.
user_role_change_permissions(RoleInterface::ANONYMOUS_ID, [
'access comments' => TRUE,
diff --git a/core/modules/comment/src/Tests/CommentAnonymousTest.php b/core/modules/comment/src/Tests/CommentAnonymousTest.php
index 7c94e5a..d60c073 100644
--- a/core/modules/comment/src/Tests/CommentAnonymousTest.php
+++ b/core/modules/comment/src/Tests/CommentAnonymousTest.php
@@ -30,7 +30,7 @@ class CommentAnonymousTest extends CommentTestBase {
/**
* Tests anonymous comment functionality.
*/
- function testAnonymous() {
+ public function testAnonymous() {
$this->drupalLogin($this->adminUser);
$this->setCommentAnonymous(COMMENT_ANONYMOUS_MAYNOT_CONTACT);
$this->drupalLogout();
diff --git a/core/modules/comment/src/Tests/CommentBlockTest.php b/core/modules/comment/src/Tests/CommentBlockTest.php
index fca7223..37cc5de 100644
--- a/core/modules/comment/src/Tests/CommentBlockTest.php
+++ b/core/modules/comment/src/Tests/CommentBlockTest.php
@@ -36,7 +36,7 @@ class CommentBlockTest extends CommentTestBase {
/**
* Tests the recent comments block.
*/
- function testRecentCommentBlock() {
+ public function testRecentCommentBlock() {
$this->drupalLogin($this->adminUser);
$block = $this->drupalPlaceBlock('views_block:comments_recent-block_1');
diff --git a/core/modules/comment/src/Tests/CommentCSSTest.php b/core/modules/comment/src/Tests/CommentCSSTest.php
index 3c48f69..b50e952 100644
--- a/core/modules/comment/src/Tests/CommentCSSTest.php
+++ b/core/modules/comment/src/Tests/CommentCSSTest.php
@@ -27,7 +27,7 @@ class CommentCSSTest extends CommentTestBase {
/**
* Tests CSS classes on comments.
*/
- function testCommentClasses() {
+ public function testCommentClasses() {
// Create all permutations for comments, users, and nodes.
$parameters = [
'node_uid' => [0, $this->webUser->id()],
diff --git a/core/modules/comment/src/Tests/CommentFieldsTest.php b/core/modules/comment/src/Tests/CommentFieldsTest.php
index fa8a72a..a463314 100644
--- a/core/modules/comment/src/Tests/CommentFieldsTest.php
+++ b/core/modules/comment/src/Tests/CommentFieldsTest.php
@@ -24,7 +24,7 @@ class CommentFieldsTest extends CommentTestBase {
/**
* Tests that the default 'comment_body' field is correctly added.
*/
- function testCommentDefaultFields() {
+ public function testCommentDefaultFields() {
// Do not make assumptions on default node types created by the test
// installation profile, and create our own.
$this->drupalCreateContentType(['type' => 'test_node_type']);
@@ -183,7 +183,7 @@ class CommentFieldsTest extends CommentTestBase {
/**
* Tests that comment module works when installed after a content module.
*/
- function testCommentInstallAfterContentModule() {
+ public function testCommentInstallAfterContentModule() {
// Create a user to do module administration.
$this->adminUser = $this->drupalCreateUser(['access administration pages', 'administer modules']);
$this->drupalLogin($this->adminUser);
diff --git a/core/modules/comment/src/Tests/CommentLanguageTest.php b/core/modules/comment/src/Tests/CommentLanguageTest.php
index b047b40..eee0862 100644
--- a/core/modules/comment/src/Tests/CommentLanguageTest.php
+++ b/core/modules/comment/src/Tests/CommentLanguageTest.php
@@ -76,7 +76,7 @@ class CommentLanguageTest extends WebTestBase {
/**
* Test that comment language is properly set.
*/
- function testCommentLanguage() {
+ public function testCommentLanguage() {
// Create two nodes, one for english and one for french, and comment each
// node using both english and french as content language by changing URL
diff --git a/core/modules/comment/src/Tests/CommentNodeAccessTest.php b/core/modules/comment/src/Tests/CommentNodeAccessTest.php
index 60f8bbd..ffbffa1 100644
--- a/core/modules/comment/src/Tests/CommentNodeAccessTest.php
+++ b/core/modules/comment/src/Tests/CommentNodeAccessTest.php
@@ -43,7 +43,7 @@ class CommentNodeAccessTest extends CommentTestBase {
/**
* Test that threaded comments can be viewed.
*/
- function testThreadedCommentView() {
+ public function testThreadedCommentView() {
// Set comments to have subject required and preview disabled.
$this->drupalLogin($this->adminUser);
$this->setCommentPreview(DRUPAL_DISABLED);
diff --git a/core/modules/comment/src/Tests/CommentNodeChangesTest.php b/core/modules/comment/src/Tests/CommentNodeChangesTest.php
index 7724f99..148198d 100644
--- a/core/modules/comment/src/Tests/CommentNodeChangesTest.php
+++ b/core/modules/comment/src/Tests/CommentNodeChangesTest.php
@@ -16,7 +16,7 @@ class CommentNodeChangesTest extends CommentTestBase {
/**
* Tests that comments are deleted with the node.
*/
- function testNodeDeletion() {
+ public function testNodeDeletion() {
$this->drupalLogin($this->webUser);
$comment = $this->postComment($this->node, $this->randomMachineName(), $this->randomMachineName());
$this->assertTrue($comment->id(), 'The comment could be loaded.');
diff --git a/core/modules/comment/src/Tests/CommentNonNodeTest.php b/core/modules/comment/src/Tests/CommentNonNodeTest.php
index bc40c9d..3c285d8 100644
--- a/core/modules/comment/src/Tests/CommentNonNodeTest.php
+++ b/core/modules/comment/src/Tests/CommentNonNodeTest.php
@@ -108,7 +108,7 @@ class CommentNonNodeTest extends WebTestBase {
* @return \Drupal\comment\CommentInterface
* The new comment entity.
*/
- function postComment(EntityInterface $entity, $comment, $subject = '', $contact = NULL) {
+ public function postComment(EntityInterface $entity, $comment, $subject = '', $contact = NULL) {
$edit = [];
$edit['comment_body[0][value]'] = $comment;
@@ -180,7 +180,7 @@ class CommentNonNodeTest extends WebTestBase {
* @return bool
* Boolean indicating whether the comment was found.
*/
- function commentExists(CommentInterface $comment = NULL, $reply = FALSE) {
+ public function commentExists(CommentInterface $comment = NULL, $reply = FALSE) {
if ($comment) {
$regex = '/' . ($reply ? '<div class="indented">(.*?)' : '');
$regex .= '<a id="comment-' . $comment->id() . '"(.*?)';
@@ -201,7 +201,7 @@ class CommentNonNodeTest extends WebTestBase {
* @return bool
* Contact info is available.
*/
- function commentContactInfoAvailable() {
+ public function commentContactInfoAvailable() {
return preg_match('/(input).*?(name="name").*?(input).*?(name="mail").*?(input).*?(name="homepage")/s', $this->getRawContent());
}
@@ -215,7 +215,7 @@ class CommentNonNodeTest extends WebTestBase {
* @param bool $approval
* Operation is found on approval page.
*/
- function performCommentOperation($comment, $operation, $approval = FALSE) {
+ public function performCommentOperation($comment, $operation, $approval = FALSE) {
$edit = [];
$edit['operation'] = $operation;
$edit['comments[' . $comment->id() . ']'] = TRUE;
@@ -239,7 +239,7 @@ class CommentNonNodeTest extends WebTestBase {
* @return int
* Comment ID.
*/
- function getUnapprovedComment($subject) {
+ public function getUnapprovedComment($subject) {
$this->drupalGet('admin/content/comment/approval');
preg_match('/href="(.*?)#comment-([^"]+)"(.*?)>(' . $subject . ')/', $this->getRawContent(), $match);
@@ -249,7 +249,7 @@ class CommentNonNodeTest extends WebTestBase {
/**
* Tests anonymous comment functionality.
*/
- function testCommentFunctionality() {
+ public function testCommentFunctionality() {
$limited_user = $this->drupalCreateUser([
'administer entity_test fields'
]);
diff --git a/core/modules/comment/src/Tests/CommentPagerTest.php b/core/modules/comment/src/Tests/CommentPagerTest.php
index 1bfda55..9c48978 100644
--- a/core/modules/comment/src/Tests/CommentPagerTest.php
+++ b/core/modules/comment/src/Tests/CommentPagerTest.php
@@ -15,7 +15,7 @@ class CommentPagerTest extends CommentTestBase {
/**
* Confirms comment paging works correctly with flat and threaded comments.
*/
- function testCommentPaging() {
+ public function testCommentPaging() {
$this->drupalLogin($this->adminUser);
// Set comment variables.
@@ -93,7 +93,7 @@ class CommentPagerTest extends CommentTestBase {
/**
* Confirms comment paging works correctly with flat and threaded comments.
*/
- function testCommentPermalink() {
+ public function testCommentPermalink() {
$this->drupalLogin($this->adminUser);
// Set comment variables.
@@ -125,7 +125,7 @@ class CommentPagerTest extends CommentTestBase {
/**
* Tests comment ordering and threading.
*/
- function testCommentOrderingThreading() {
+ public function testCommentOrderingThreading() {
$this->drupalLogin($this->adminUser);
// Set comment variables.
@@ -205,7 +205,7 @@ class CommentPagerTest extends CommentTestBase {
* @param array $expected_order
* An array of keys from $comments describing the expected order.
*/
- function assertCommentOrder(array $comments, array $expected_order) {
+ public function assertCommentOrder(array $comments, array $expected_order) {
$expected_cids = [];
// First, rekey the expected order by cid.
@@ -224,7 +224,7 @@ class CommentPagerTest extends CommentTestBase {
/**
* Tests calculation of first page with new comment.
*/
- function testCommentNewPageIndicator() {
+ public function testCommentNewPageIndicator() {
$this->drupalLogin($this->adminUser);
// Set comment variables.
@@ -304,7 +304,7 @@ class CommentPagerTest extends CommentTestBase {
/**
* Confirms comment paging works correctly with two pagers.
*/
- function testTwoPagers() {
+ public function testTwoPagers() {
// Add another field to article content-type.
$this->addDefaultCommentField('node', 'article', 'comment_2');
// Set default to display comment list with unique pager id.
diff --git a/core/modules/comment/src/Tests/CommentPreviewTest.php b/core/modules/comment/src/Tests/CommentPreviewTest.php
index 039c6ab..1b07fe6 100644
--- a/core/modules/comment/src/Tests/CommentPreviewTest.php
+++ b/core/modules/comment/src/Tests/CommentPreviewTest.php
@@ -26,7 +26,7 @@ class CommentPreviewTest extends CommentTestBase {
/**
* Tests comment preview.
*/
- function testCommentPreview() {
+ public function testCommentPreview() {
// As admin user, configure comment settings.
$this->drupalLogin($this->adminUser);
$this->setCommentPreview(DRUPAL_OPTIONAL);
@@ -123,7 +123,7 @@ class CommentPreviewTest extends CommentTestBase {
/**
* Tests comment edit, preview, and save.
*/
- function testCommentEditPreviewSave() {
+ public function testCommentEditPreviewSave() {
$web_user = $this->drupalCreateUser(['access comments', 'post comments', 'skip comment approval', 'edit own comments']);
$this->drupalLogin($this->adminUser);
$this->setCommentPreview(DRUPAL_OPTIONAL);
diff --git a/core/modules/comment/src/Tests/CommentRssTest.php b/core/modules/comment/src/Tests/CommentRssTest.php
index 5c9fe3d..35cad71 100644
--- a/core/modules/comment/src/Tests/CommentRssTest.php
+++ b/core/modules/comment/src/Tests/CommentRssTest.php
@@ -42,7 +42,7 @@ class CommentRssTest extends CommentTestBase {
/**
* Tests comments as part of an RSS feed.
*/
- function testCommentRss() {
+ public function testCommentRss() {
// Find comment in RSS feed.
$this->drupalLogin($this->webUser);
$this->postComment($this->node, $this->randomMachineName(), $this->randomMachineName());
diff --git a/core/modules/comment/src/Tests/CommentStatisticsTest.php b/core/modules/comment/src/Tests/CommentStatisticsTest.php
index bd0838c..0d1ec3a 100644
--- a/core/modules/comment/src/Tests/CommentStatisticsTest.php
+++ b/core/modules/comment/src/Tests/CommentStatisticsTest.php
@@ -38,7 +38,7 @@ class CommentStatisticsTest extends CommentTestBase {
/**
* Tests the node comment statistics.
*/
- function testCommentNodeCommentStatistics() {
+ public function testCommentNodeCommentStatistics() {
$node_storage = $this->container->get('entity.manager')->getStorage('node');
// Set comments to have subject and preview disabled.
$this->drupalLogin($this->adminUser);
diff --git a/core/modules/comment/src/Tests/CommentTestBase.php b/core/modules/comment/src/Tests/CommentTestBase.php
index 716b3bd..c42d988 100644
--- a/core/modules/comment/src/Tests/CommentTestBase.php
+++ b/core/modules/comment/src/Tests/CommentTestBase.php
@@ -184,7 +184,7 @@ abstract class CommentTestBase extends WebTestBase {
* @return bool
* Boolean indicating whether the comment was found.
*/
- function commentExists(CommentInterface $comment = NULL, $reply = FALSE) {
+ public function commentExists(CommentInterface $comment = NULL, $reply = FALSE) {
if ($comment) {
$comment_element = $this->cssSelect('.comment-wrapper ' . ($reply ? '.indented ' : '') . '#comment-' . $comment->id() . ' ~ article');
if (empty($comment_element)) {
@@ -214,7 +214,7 @@ abstract class CommentTestBase extends WebTestBase {
* @param \Drupal\comment\CommentInterface $comment
* Comment to delete.
*/
- function deleteComment(CommentInterface $comment) {
+ public function deleteComment(CommentInterface $comment) {
$this->drupalPostForm('comment/' . $comment->id() . '/delete', [], t('Delete'));
$this->assertText(t('The comment and all its replies have been deleted.'), 'Comment deleted.');
}
@@ -289,7 +289,7 @@ abstract class CommentTestBase extends WebTestBase {
* - 1: Contact information allowed but not required.
* - 2: Contact information required.
*/
- function setCommentAnonymous($level) {
+ public function setCommentAnonymous($level) {
$this->setCommentSettings('anonymous', $level, format_string('Anonymous commenting set to level @level.', ['@level' => $level]));
}
@@ -333,7 +333,7 @@ abstract class CommentTestBase extends WebTestBase {
* @return bool
* Contact info is available.
*/
- function commentContactInfoAvailable() {
+ public function commentContactInfoAvailable() {
return preg_match('/(input).*?(name="name").*?(input).*?(name="mail").*?(input).*?(name="homepage")/s', $this->getRawContent());
}
@@ -347,7 +347,7 @@ abstract class CommentTestBase extends WebTestBase {
* @param bool $approval
* Operation is found on approval page.
*/
- function performCommentOperation(CommentInterface $comment, $operation, $approval = FALSE) {
+ public function performCommentOperation(CommentInterface $comment, $operation, $approval = FALSE) {
$edit = [];
$edit['operation'] = $operation;
$edit['comments[' . $comment->id() . ']'] = TRUE;
@@ -371,7 +371,7 @@ abstract class CommentTestBase extends WebTestBase {
* @return int
* Comment id.
*/
- function getUnapprovedComment($subject) {
+ public function getUnapprovedComment($subject) {
$this->drupalGet('admin/content/comment/approval');
preg_match('/href="(.*?)#comment-([^"]+)"(.*?)>(' . $subject . ')/', $this->getRawContent(), $match);
diff --git a/core/modules/comment/src/Tests/CommentThreadingTest.php b/core/modules/comment/src/Tests/CommentThreadingTest.php
index 2dbf5bd..8f412b2 100644
--- a/core/modules/comment/src/Tests/CommentThreadingTest.php
+++ b/core/modules/comment/src/Tests/CommentThreadingTest.php
@@ -13,7 +13,7 @@ class CommentThreadingTest extends CommentTestBase {
/**
* Tests the comment threading.
*/
- function testCommentThreading() {
+ public function testCommentThreading() {
// Set comments to have a subject with preview disabled.
$this->drupalLogin($this->adminUser);
$this->setCommentPreview(DRUPAL_DISABLED);
diff --git a/core/modules/comment/src/Tests/CommentTokenReplaceTest.php b/core/modules/comment/src/Tests/CommentTokenReplaceTest.php
index 325aecb..6caea17 100644
--- a/core/modules/comment/src/Tests/CommentTokenReplaceTest.php
+++ b/core/modules/comment/src/Tests/CommentTokenReplaceTest.php
@@ -29,7 +29,7 @@ class CommentTokenReplaceTest extends CommentTestBase {
/**
* Creates a comment, then tests the tokens generated from it.
*/
- function testCommentTokenReplacement() {
+ public function testCommentTokenReplacement() {
$token_service = \Drupal::token();
$language_interface = \Drupal::languageManager()->getCurrentLanguage();
$url_options = [
diff --git a/core/modules/comment/src/Tests/CommentTranslationUITest.php b/core/modules/comment/src/Tests/CommentTranslationUITest.php
index 3157e23..4613d66 100644
--- a/core/modules/comment/src/Tests/CommentTranslationUITest.php
+++ b/core/modules/comment/src/Tests/CommentTranslationUITest.php
@@ -60,7 +60,7 @@ class CommentTranslationUITest extends ContentTranslationUITestBase {
/**
* {@inheritdoc}
*/
- function setupBundle() {
+ public function setupBundle() {
parent::setupBundle();
$this->drupalCreateContentType(['type' => $this->nodeBundle, 'name' => $this->nodeBundle]);
// Add a comment field to the article content type.
@@ -181,7 +181,7 @@ class CommentTranslationUITest extends ContentTranslationUITestBase {
/**
* Tests translate link on comment content admin page.
*/
- function testTranslateLinkCommentAdminPage() {
+ public function testTranslateLinkCommentAdminPage() {
$this->adminUser = $this->drupalCreateUser(array_merge(parent::getTranslatorPermissions(), ['access administration pages', 'administer comments', 'skip comment approval']));
$this->drupalLogin($this->adminUser);
diff --git a/core/modules/comment/src/Tests/CommentUninstallTest.php b/core/modules/comment/src/Tests/CommentUninstallTest.php
index 9f9d36a..7873915 100644
--- a/core/modules/comment/src/Tests/CommentUninstallTest.php
+++ b/core/modules/comment/src/Tests/CommentUninstallTest.php
@@ -36,7 +36,7 @@ class CommentUninstallTest extends WebTestBase {
*
* @throws \Drupal\Core\Extension\ModuleUninstallValidatorException
*/
- function testCommentUninstallWithField() {
+ public function testCommentUninstallWithField() {
// Ensure that the field exists before uninstallation.
$field_storage = FieldStorageConfig::loadByName('comment', 'comment_body');
$this->assertNotNull($field_storage, 'The comment_body field exists.');
@@ -55,7 +55,7 @@ class CommentUninstallTest extends WebTestBase {
/**
* Tests if uninstallation succeeds if the field has been deleted beforehand.
*/
- function testCommentUninstallWithoutField() {
+ public function testCommentUninstallWithoutField() {
// Manually delete the comment_body field before module uninstallation.
$field_storage = FieldStorageConfig::loadByName('comment', 'comment_body');
$this->assertNotNull($field_storage, 'The comment_body field exists.');
diff --git a/core/modules/comment/src/Tests/Views/ArgumentUserUIDTest.php b/core/modules/comment/src/Tests/Views/ArgumentUserUIDTest.php
index 3365918..d3526dc 100644
--- a/core/modules/comment/src/Tests/Views/ArgumentUserUIDTest.php
+++ b/core/modules/comment/src/Tests/Views/ArgumentUserUIDTest.php
@@ -20,7 +20,7 @@ class ArgumentUserUIDTest extends CommentTestBase {
*/
public static $testViews = ['test_comment_user_uid'];
- function testCommentUserUIDTest() {
+ public function testCommentUserUIDTest() {
// Add an additional comment which is not created by the user.
$new_user = User::create(['name' => 'new user']);
$new_user->save();
diff --git a/core/modules/comment/src/Tests/Views/CommentFieldFilterTest.php b/core/modules/comment/src/Tests/Views/CommentFieldFilterTest.php
index 040fc7d..48f7d6d 100644
--- a/core/modules/comment/src/Tests/Views/CommentFieldFilterTest.php
+++ b/core/modules/comment/src/Tests/Views/CommentFieldFilterTest.php
@@ -31,7 +31,7 @@ class CommentFieldFilterTest extends CommentTestBase {
*/
public $commentTitles = [];
- function setUp() {
+ public function setUp() {
parent::setUp();
$this->drupalLogin($this->drupalCreateUser(['access comments']));
diff --git a/core/modules/comment/src/Tests/Views/FilterUserUIDTest.php b/core/modules/comment/src/Tests/Views/FilterUserUIDTest.php
index c4570ce..442a0e7 100644
--- a/core/modules/comment/src/Tests/Views/FilterUserUIDTest.php
+++ b/core/modules/comment/src/Tests/Views/FilterUserUIDTest.php
@@ -22,7 +22,7 @@ class FilterUserUIDTest extends CommentTestBase {
*/
public static $testViews = ['test_comment_user_uid'];
- function testCommentUserUIDTest() {
+ public function testCommentUserUIDTest() {
$view = Views::getView('test_comment_user_uid');
$view->setDisplay();
$view->removeHandler('default', 'argument', 'uid_touch');
diff --git a/core/modules/config/src/ConfigSubscriber.php b/core/modules/config/src/ConfigSubscriber.php
index aebc86e..94405a1 100644
--- a/core/modules/config/src/ConfigSubscriber.php
+++ b/core/modules/config/src/ConfigSubscriber.php
@@ -29,7 +29,7 @@ class ConfigSubscriber extends ConfigImportValidateEventSubscriberBase {
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[ConfigEvents::IMPORT_VALIDATE][] = ['onConfigImporterValidate', 20];
return $events;
}
diff --git a/core/modules/config/src/Tests/ConfigEntityListTest.php b/core/modules/config/src/Tests/ConfigEntityListTest.php
index 161944b..e9950ea 100644
--- a/core/modules/config/src/Tests/ConfigEntityListTest.php
+++ b/core/modules/config/src/Tests/ConfigEntityListTest.php
@@ -34,7 +34,7 @@ class ConfigEntityListTest extends WebTestBase {
/**
* Tests entity list builder methods.
*/
- function testList() {
+ public function testList() {
$controller = \Drupal::entityManager()->getListBuilder('config_test');
// Test getStorage() method.
@@ -147,7 +147,7 @@ class ConfigEntityListTest extends WebTestBase {
/**
* Tests the listing UI.
*/
- function testListUI() {
+ public function testListUI() {
// Log in as an administrative user to access the full menu trail.
$this->drupalLogin($this->drupalCreateUser(['access administration pages', 'administer site configuration']));
diff --git a/core/modules/config/src/Tests/ConfigEntityTest.php b/core/modules/config/src/Tests/ConfigEntityTest.php
index 77b35cc..c0dc97b 100644
--- a/core/modules/config/src/Tests/ConfigEntityTest.php
+++ b/core/modules/config/src/Tests/ConfigEntityTest.php
@@ -32,7 +32,7 @@ class ConfigEntityTest extends WebTestBase {
/**
* Tests CRUD operations.
*/
- function testCRUD() {
+ public function testCRUD() {
$default_langcode = \Drupal::languageManager()->getDefaultLanguage()->getId();
// Verify default properties on a newly created empty entity.
$empty = entity_create('config_test');
@@ -230,7 +230,7 @@ class ConfigEntityTest extends WebTestBase {
/**
* Tests CRUD operations through the UI.
*/
- function testCRUDUI() {
+ public function testCRUDUI() {
$this->drupalLogin($this->drupalCreateUser(['administer site configuration']));
$id = strtolower($this->randomMachineName());
diff --git a/core/modules/config/src/Tests/ConfigExportUITest.php b/core/modules/config/src/Tests/ConfigExportUITest.php
index 839aa26..c9f53b3 100644
--- a/core/modules/config/src/Tests/ConfigExportUITest.php
+++ b/core/modules/config/src/Tests/ConfigExportUITest.php
@@ -39,7 +39,7 @@ class ConfigExportUITest extends WebTestBase {
/**
* Tests export of configuration.
*/
- function testExport() {
+ public function testExport() {
// Verify the export page with export submit button is available.
$this->drupalGet('admin/config/development/configuration/full/export');
$this->assertFieldById('edit-submit', t('Export'));
diff --git a/core/modules/config/src/Tests/ConfigImportUITest.php b/core/modules/config/src/Tests/ConfigImportUITest.php
index 1b63c2a..31654b3 100644
--- a/core/modules/config/src/Tests/ConfigImportUITest.php
+++ b/core/modules/config/src/Tests/ConfigImportUITest.php
@@ -39,7 +39,7 @@ class ConfigImportUITest extends WebTestBase {
/**
* Tests importing configuration.
*/
- function testImport() {
+ public function testImport() {
$name = 'system.site';
$dynamic_name = 'config_test.dynamic.new';
/** @var \Drupal\Core\Config\StorageInterface $sync */
@@ -221,7 +221,7 @@ class ConfigImportUITest extends WebTestBase {
/**
* Tests concurrent importing of configuration.
*/
- function testImportLock() {
+ public function testImportLock() {
// Create updated configuration object.
$new_site_name = 'Config import test ' . $this->randomString();
$this->prepareSiteNameUpdate($new_site_name);
@@ -248,7 +248,7 @@ class ConfigImportUITest extends WebTestBase {
/**
* Tests verification of site UUID before importing configuration.
*/
- function testImportSiteUuidValidation() {
+ public function testImportSiteUuidValidation() {
$sync = \Drupal::service('config.storage.sync');
// Create updated configuration object.
$config_data = $this->config('system.site')->get();
@@ -265,7 +265,7 @@ class ConfigImportUITest extends WebTestBase {
/**
* Tests the screen that shows differences between active and sync.
*/
- function testImportDiff() {
+ public function testImportDiff() {
$sync = $this->container->get('config.storage.sync');
$config_name = 'config_test.system';
$change_key = 'foo';
@@ -377,7 +377,7 @@ class ConfigImportUITest extends WebTestBase {
$this->assertText('Can not uninstall the Configuration module as part of a configuration synchronization through the user interface.');
}
- function prepareSiteNameUpdate($new_site_name) {
+ public function prepareSiteNameUpdate($new_site_name) {
$sync = $this->container->get('config.storage.sync');
// Create updated configuration object.
$config_data = $this->config('system.site')->get();
@@ -388,7 +388,7 @@ class ConfigImportUITest extends WebTestBase {
/**
* Tests an import that results in an error.
*/
- function testImportErrorLog() {
+ public function testImportErrorLog() {
$name_primary = 'config_test.dynamic.primary';
$name_secondary = 'config_test.dynamic.secondary';
$sync = $this->container->get('config.storage.sync');
diff --git a/core/modules/config/src/Tests/ConfigImportUploadTest.php b/core/modules/config/src/Tests/ConfigImportUploadTest.php
index 9792213..5e21295 100644
--- a/core/modules/config/src/Tests/ConfigImportUploadTest.php
+++ b/core/modules/config/src/Tests/ConfigImportUploadTest.php
@@ -35,7 +35,7 @@ class ConfigImportUploadTest extends WebTestBase {
/**
* Tests importing configuration.
*/
- function testImport() {
+ public function testImport() {
// Verify access to the config upload form.
$this->drupalGet('admin/config/development/configuration/full/import');
$this->assertResponse(200);
diff --git a/core/modules/config/src/Tests/ConfigInstallWebTest.php b/core/modules/config/src/Tests/ConfigInstallWebTest.php
index 79b50a0..63ecb5b 100644
--- a/core/modules/config/src/Tests/ConfigInstallWebTest.php
+++ b/core/modules/config/src/Tests/ConfigInstallWebTest.php
@@ -36,7 +36,7 @@ class ConfigInstallWebTest extends WebTestBase {
/**
* Tests module re-installation.
*/
- function testIntegrationModuleReinstallation() {
+ public function testIntegrationModuleReinstallation() {
$default_config = 'config_integration_test.settings';
$default_configuration_entity = 'config_test.dynamic.config_integration_test';
diff --git a/core/modules/config/tests/config_collection_install_test/src/EventSubscriber.php b/core/modules/config/tests/config_collection_install_test/src/EventSubscriber.php
index 76714a5..ae38661 100644
--- a/core/modules/config/tests/config_collection_install_test/src/EventSubscriber.php
+++ b/core/modules/config/tests/config_collection_install_test/src/EventSubscriber.php
@@ -42,7 +42,7 @@ class EventSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[ConfigEvents::COLLECTION_INFO][] = ['addCollections'];
return $events;
}
diff --git a/core/modules/config/tests/config_events_test/src/EventSubscriber.php b/core/modules/config/tests/config_events_test/src/EventSubscriber.php
index 39e8eb8..98417c0 100644
--- a/core/modules/config/tests/config_events_test/src/EventSubscriber.php
+++ b/core/modules/config/tests/config_events_test/src/EventSubscriber.php
@@ -48,7 +48,7 @@ class EventSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[ConfigEvents::SAVE][] = ['configEventRecorder'];
$events[ConfigEvents::DELETE][] = ['configEventRecorder'];
$events[ConfigEvents::RENAME][] = ['configEventRecorder'];
diff --git a/core/modules/config/tests/config_import_test/src/EventSubscriber.php b/core/modules/config/tests/config_import_test/src/EventSubscriber.php
index e0ef923..5f8ef86 100644
--- a/core/modules/config/tests/config_import_test/src/EventSubscriber.php
+++ b/core/modules/config/tests/config_import_test/src/EventSubscriber.php
@@ -131,7 +131,7 @@ class EventSubscriber implements EventSubscriberInterface {
* @return array
* An array of event listener definitions.
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[ConfigEvents::SAVE][] = ['onConfigSave', 40];
$events[ConfigEvents::DELETE][] = ['onConfigDelete', 40];
$events[ConfigEvents::IMPORT_VALIDATE] = ['onConfigImporterValidate'];
diff --git a/core/modules/config/tests/config_test/src/ConfigTestController.php b/core/modules/config/tests/config_test/src/ConfigTestController.php
index 6799dc1..d352eca 100644
--- a/core/modules/config/tests/config_test/src/ConfigTestController.php
+++ b/core/modules/config/tests/config_test/src/ConfigTestController.php
@@ -33,7 +33,7 @@ class ConfigTestController extends ControllerBase {
* @return \Symfony\Component\HttpFoundation\RedirectResponse
* A redirect response to the config_test listing page.
*/
- function enable(ConfigTest $config_test) {
+ public function enable(ConfigTest $config_test) {
$config_test->enable()->save();
return new RedirectResponse($config_test->url('collection', ['absolute' => TRUE]));
}
@@ -47,7 +47,7 @@ class ConfigTestController extends ControllerBase {
* @return \Symfony\Component\HttpFoundation\RedirectResponse
* A redirect response to the config_test listing page.
*/
- function disable(ConfigTest $config_test) {
+ public function disable(ConfigTest $config_test) {
$config_test->disable()->save();
return new RedirectResponse($config_test->url('collection', ['absolute' => TRUE]));
}
diff --git a/core/modules/config/tests/src/Functional/ConfigDependencyWebTest.php b/core/modules/config/tests/src/Functional/ConfigDependencyWebTest.php
index ba80401..696a36e 100644
--- a/core/modules/config/tests/src/Functional/ConfigDependencyWebTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigDependencyWebTest.php
@@ -29,7 +29,7 @@ class ConfigDependencyWebTest extends BrowserTestBase {
*
* @see \Drupal\Core\Config\Entity\ConfigDependencyDeleteFormTrait
*/
- function testConfigDependencyDeleteFormTrait() {
+ public function testConfigDependencyDeleteFormTrait() {
$this->drupalLogin($this->drupalCreateUser(['administer site configuration']));
/** @var \Drupal\Core\Config\Entity\ConfigEntityStorage $storage */
diff --git a/core/modules/config/tests/src/Functional/ConfigEntityListMultilingualTest.php b/core/modules/config/tests/src/Functional/ConfigEntityListMultilingualTest.php
index 5d99252..7c5fa1f 100644
--- a/core/modules/config/tests/src/Functional/ConfigEntityListMultilingualTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigEntityListMultilingualTest.php
@@ -34,7 +34,7 @@ class ConfigEntityListMultilingualTest extends BrowserTestBase {
/**
* Tests the listing UI with different language scenarios.
*/
- function testListUI() {
+ public function testListUI() {
// Log in as an administrative user to access the full menu trail.
$this->drupalLogin($this->drupalCreateUser(['access administration pages', 'administer site configuration']));
diff --git a/core/modules/config/tests/src/Functional/ConfigEntityStatusUITest.php b/core/modules/config/tests/src/Functional/ConfigEntityStatusUITest.php
index 4ad4d59..af68f33 100644
--- a/core/modules/config/tests/src/Functional/ConfigEntityStatusUITest.php
+++ b/core/modules/config/tests/src/Functional/ConfigEntityStatusUITest.php
@@ -21,7 +21,7 @@ class ConfigEntityStatusUITest extends BrowserTestBase {
/**
* Tests status operations.
*/
- function testCRUD() {
+ public function testCRUD() {
$this->drupalLogin($this->drupalCreateUser(['administer site configuration']));
$id = strtolower($this->randomMachineName());
diff --git a/core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php b/core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php
index 88218b9..1f5232c 100644
--- a/core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php
@@ -28,7 +28,7 @@ class ConfigInstallProfileOverrideTest extends BrowserTestBase {
/**
* Tests install profile config changes.
*/
- function testInstallProfileConfigOverwrite() {
+ public function testInstallProfileConfigOverwrite() {
$config_name = 'system.cron';
// The expected configuration from the system module.
$expected_original_data = [
diff --git a/core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php b/core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php
index 5fdd1a1..092ad2b 100644
--- a/core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php
@@ -34,7 +34,7 @@ class ConfigLanguageOverrideWebTest extends BrowserTestBase {
/**
* Tests translating the site name.
*/
- function testSiteNameTranslation() {
+ public function testSiteNameTranslation() {
$adminUser = $this->drupalCreateUser(['administer site configuration', 'administer languages']);
$this->drupalLogin($adminUser);
diff --git a/core/modules/contact/src/Tests/ContactPersonalTest.php b/core/modules/contact/src/Tests/ContactPersonalTest.php
index d80484f..afb7746 100644
--- a/core/modules/contact/src/Tests/ContactPersonalTest.php
+++ b/core/modules/contact/src/Tests/ContactPersonalTest.php
@@ -58,7 +58,7 @@ class ContactPersonalTest extends WebTestBase {
/**
* Tests that mails for contact messages are correctly sent.
*/
- function testSendPersonalContactMessage() {
+ public function testSendPersonalContactMessage() {
// Ensure that the web user's email needs escaping.
$mail = $this->webUser->getUsername() . '&escaped@example.com';
$this->webUser->setEmail($mail)->save();
@@ -103,7 +103,7 @@ class ContactPersonalTest extends WebTestBase {
/**
* Tests access to the personal contact form.
*/
- function testPersonalContactAccess() {
+ public function testPersonalContactAccess() {
// Test allowed access to admin user's contact form.
$this->drupalLogin($this->webUser);
$this->drupalGet('user/' . $this->adminUser->id() . '/contact');
@@ -223,7 +223,7 @@ class ContactPersonalTest extends WebTestBase {
/**
* Tests the personal contact form flood protection.
*/
- function testPersonalContactFlood() {
+ public function testPersonalContactFlood() {
$flood_limit = 3;
$this->config('contact.settings')->set('flood.limit', $flood_limit)->save();
@@ -248,7 +248,7 @@ class ContactPersonalTest extends WebTestBase {
/**
* Tests the personal contact form based access when an admin adds users.
*/
- function testAdminContact() {
+ public function testAdminContact() {
user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, ['access user contact forms']);
$this->checkContactAccess(200);
$this->checkContactAccess(403, FALSE);
diff --git a/core/modules/contact/src/Tests/ContactSitewideTest.php b/core/modules/contact/src/Tests/ContactSitewideTest.php
index 0721cf4..4a5b1f7 100644
--- a/core/modules/contact/src/Tests/ContactSitewideTest.php
+++ b/core/modules/contact/src/Tests/ContactSitewideTest.php
@@ -42,7 +42,7 @@ class ContactSitewideTest extends WebTestBase {
/**
* Tests configuration options and the site-wide contact form.
*/
- function testSiteWideContact() {
+ public function testSiteWideContact() {
// Create and log in administrative user.
$admin_user = $this->drupalCreateUser([
'access site-wide contact form',
@@ -349,7 +349,7 @@ class ContactSitewideTest extends WebTestBase {
/**
* Tests auto-reply on the site-wide contact form.
*/
- function testAutoReply() {
+ public function testAutoReply() {
// Create and log in administrative user.
$admin_user = $this->drupalCreateUser([
'access site-wide contact form',
@@ -431,7 +431,7 @@ class ContactSitewideTest extends WebTestBase {
* @param array $third_party_settings
* Array of third party settings to be added to the posted form data.
*/
- function addContactForm($id, $label, $recipients, $reply, $selected, $message = 'Your message has been sent.', $third_party_settings = []) {
+ public function addContactForm($id, $label, $recipients, $reply, $selected, $message = 'Your message has been sent.', $third_party_settings = []) {
$edit = [];
$edit['label'] = $label;
$edit['id'] = $id;
@@ -463,7 +463,7 @@ class ContactSitewideTest extends WebTestBase {
* @param string $redirect
* The path where user will be redirect after this form has been submitted..
*/
- function updateContactForm($id, $label, $recipients, $reply, $selected, $message = 'Your message has been sent.', $redirect = '/') {
+ public function updateContactForm($id, $label, $recipients, $reply, $selected, $message = 'Your message has been sent.', $redirect = '/') {
$edit = [];
$edit['label'] = $label;
$edit['recipients'] = $recipients;
@@ -488,7 +488,7 @@ class ContactSitewideTest extends WebTestBase {
* @param string $message
* The message body.
*/
- function submitContact($name, $mail, $subject, $id, $message) {
+ public function submitContact($name, $mail, $subject, $id, $message) {
$edit = [];
$edit['name'] = $name;
$edit['mail'] = $mail;
@@ -505,7 +505,7 @@ class ContactSitewideTest extends WebTestBase {
/**
* Deletes all forms.
*/
- function deleteContactForms() {
+ public function deleteContactForms() {
$contact_forms = ContactForm::loadMultiple();;
foreach ($contact_forms as $id => $contact_form) {
if ($id == 'personal') {
diff --git a/core/modules/contact/tests/src/Functional/ContactAuthenticatedUserTest.php b/core/modules/contact/tests/src/Functional/ContactAuthenticatedUserTest.php
index 306fe5d..43cf3ce 100644
--- a/core/modules/contact/tests/src/Functional/ContactAuthenticatedUserTest.php
+++ b/core/modules/contact/tests/src/Functional/ContactAuthenticatedUserTest.php
@@ -21,7 +21,7 @@ class ContactAuthenticatedUserTest extends BrowserTestBase {
/**
* Tests that name and email fields are not present for authenticated users.
*/
- function testContactSiteWideTextfieldsLoggedInTestCase() {
+ public function testContactSiteWideTextfieldsLoggedInTestCase() {
$this->drupalLogin($this->drupalCreateUser(['access site-wide contact form']));
$this->drupalGet('contact');
diff --git a/core/modules/content_translation/src/ContentTranslationHandler.php b/core/modules/content_translation/src/ContentTranslationHandler.php
index 9a6050d..c1688b9 100644
--- a/core/modules/content_translation/src/ContentTranslationHandler.php
+++ b/core/modules/content_translation/src/ContentTranslationHandler.php
@@ -610,7 +610,7 @@ class ContentTranslationHandler implements ContentTranslationHandlerInterface, E
*
* Validates the submitted content translation metadata.
*/
- function entityFormValidate($form, FormStateInterface $form_state) {
+ public function entityFormValidate($form, FormStateInterface $form_state) {
if (!$form_state->isValueEmpty('content_translation')) {
$translation = $form_state->getValue('content_translation');
// Validate the "authored by" field.
@@ -630,7 +630,7 @@ class ContentTranslationHandler implements ContentTranslationHandlerInterface, E
* Updates metadata fields, which should be updated only after the validation
* has run and before the entity is saved.
*/
- function entityFormSubmit($form, FormStateInterface $form_state) {
+ public function entityFormSubmit($form, FormStateInterface $form_state) {
/** @var \Drupal\Core\Entity\ContentEntityFormInterface $form_object */
$form_object = $form_state->getFormObject();
/** @var \Drupal\Core\Entity\ContentEntityInterface $entity */
@@ -673,7 +673,7 @@ class ContentTranslationHandler implements ContentTranslationHandlerInterface, E
*
* Takes care of entity deletion.
*/
- function entityFormDelete($form, FormStateInterface $form_state) {
+ public function entityFormDelete($form, FormStateInterface $form_state) {
$form_object = $form_state->getFormObject()->getEntity();
$entity = $form_object->getEntity();
if (count($entity->getTranslationLanguages()) > 1) {
@@ -686,7 +686,7 @@ class ContentTranslationHandler implements ContentTranslationHandlerInterface, E
*
* Takes care of content translation deletion.
*/
- function entityFormDeleteTranslation($form, FormStateInterface $form_state) {
+ public function entityFormDeleteTranslation($form, FormStateInterface $form_state) {
/** @var \Drupal\Core\Entity\ContentEntityFormInterface $form_object */
$form_object = $form_state->getFormObject();
/** @var \Drupal\Core\Entity\ContentEntityInterface $entity */
diff --git a/core/modules/content_translation/src/ContentTranslationManager.php b/core/modules/content_translation/src/ContentTranslationManager.php
index 70adc28..da8bd1c 100644
--- a/core/modules/content_translation/src/ContentTranslationManager.php
+++ b/core/modules/content_translation/src/ContentTranslationManager.php
@@ -40,7 +40,7 @@ class ContentTranslationManager implements ContentTranslationManagerInterface {
/**
* {@inheritdoc}
*/
- function getTranslationHandler($entity_type_id) {
+ public function getTranslationHandler($entity_type_id) {
return $this->entityManager->getHandler($entity_type_id, 'translation');
}
diff --git a/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php b/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php
index aed653b..7a1c598 100644
--- a/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php
+++ b/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php
@@ -43,7 +43,7 @@ class ContentTranslationSettingsTest extends WebTestBase {
/**
* Tests that the settings UI works as expected.
*/
- function testSettingsUI() {
+ public function testSettingsUI() {
// Check for the content_translation_menu_links_discovered_alter() changes.
$this->drupalGet('admin/config');
$this->assertLink('Content language and translation');
@@ -200,7 +200,7 @@ class ContentTranslationSettingsTest extends WebTestBase {
/**
* Tests the language settings checkbox on account settings page.
*/
- function testAccountLanguageSettingsUI() {
+ public function testAccountLanguageSettingsUI() {
// Make sure the checkbox is available and not checked by default.
$this->drupalGet('admin/config/people/accounts');
$this->assertField('language[content_translation]');
@@ -245,7 +245,7 @@ class ContentTranslationSettingsTest extends WebTestBase {
/**
* Tests that field setting depends on bundle translatability.
*/
- function testFieldTranslatableSettingsUI() {
+ public function testFieldTranslatableSettingsUI() {
// At least one field needs to be translatable to enable article for
// translation. Create an extra field to be used for this purpose. We use
// the UI to test our form alterations.
@@ -280,7 +280,7 @@ class ContentTranslationSettingsTest extends WebTestBase {
/**
* Tests the translatable settings checkbox for untranslatable entities.
*/
- function testNonTranslatableTranslationSettingsUI() {
+ public function testNonTranslatableTranslationSettingsUI() {
$this->drupalGet('admin/config/regional/content-language');
$this->assertNoField('settings[entity_test][entity_test][translatable]');
}
diff --git a/core/modules/content_translation/src/Tests/ContentTranslationSyncImageTest.php b/core/modules/content_translation/src/Tests/ContentTranslationSyncImageTest.php
index 10b3c5e..30ff32d 100644
--- a/core/modules/content_translation/src/Tests/ContentTranslationSyncImageTest.php
+++ b/core/modules/content_translation/src/Tests/ContentTranslationSyncImageTest.php
@@ -82,7 +82,7 @@ class ContentTranslationSyncImageTest extends ContentTranslationTestBase {
/**
* Tests image field field synchronization.
*/
- function testImageFieldSync() {
+ public function testImageFieldSync() {
// Check that the alt and title fields are enabled for the image field.
$this->drupalLogin($this->editor);
$this->drupalGet('entity_test_mul/structure/' . $this->entityTypeId . '/fields/' . $this->entityTypeId . '.' . $this->entityTypeId . '.' . $this->fieldName);
diff --git a/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php b/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php
index c6d1a5d..e7a7dfc 100644
--- a/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php
+++ b/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php
@@ -56,7 +56,7 @@ abstract class ContentTranslationUITestBase extends ContentTranslationTestBase {
/**
* Tests the basic translation UI.
*/
- function testTranslationUI() {
+ public function testTranslationUI() {
$this->doTestBasicTranslation();
$this->doTestTranslationOverview();
$this->doTestOutdatedStatus();
diff --git a/core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php b/core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php
index ac26a39..66469eb 100644
--- a/core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php
+++ b/core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php
@@ -79,7 +79,7 @@ class ContentTranslationWorkflowsTest extends ContentTranslationTestBase {
/**
* Test simple and editorial translation workflows.
*/
- function testWorkflows() {
+ public function testWorkflows() {
// Test workflows for the editor.
$expected_status = [
'edit' => 200,
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php
index 02755e0..77c176e 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php
@@ -21,7 +21,7 @@ class ContentTranslationUISkipTest extends BrowserTestBase {
/**
* Tests the content_translation_ui_skip key functionality.
*/
- function testUICheckSkip() {
+ public function testUICheckSkip() {
$admin_user = $this->drupalCreateUser([
'translate any entity',
'administer content translation',
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
index accc3ca..370a6ed 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
@@ -53,7 +53,7 @@ abstract class ContentTranslationUITestBase extends ContentTranslationTestBase {
/**
* Tests the basic translation UI.
*/
- function testTranslationUI() {
+ public function testTranslationUI() {
$this->doTestBasicTranslation();
$this->doTestTranslationOverview();
$this->doTestOutdatedStatus();
diff --git a/core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php b/core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php
index 732d74b..b8776a2 100644
--- a/core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php
+++ b/core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php
@@ -58,7 +58,7 @@ class ContentTranslationConfigImportTest extends KernelTestBase {
/**
* Tests config import updates.
*/
- function testConfigImportUpdates() {
+ public function testConfigImportUpdates() {
$entity_type_id = 'entity_test_mul';
$config_id = $entity_type_id . '.' . $entity_type_id;
$config_name = 'language.content_settings.' . $config_id;
diff --git a/core/modules/content_translation/tests/src/Kernel/ContentTranslationSettingsApiTest.php b/core/modules/content_translation/tests/src/Kernel/ContentTranslationSettingsApiTest.php
index 9b64ba8..3626045 100644
--- a/core/modules/content_translation/tests/src/Kernel/ContentTranslationSettingsApiTest.php
+++ b/core/modules/content_translation/tests/src/Kernel/ContentTranslationSettingsApiTest.php
@@ -29,7 +29,7 @@ class ContentTranslationSettingsApiTest extends KernelTestBase {
/**
* Tests that enabling translation via the API triggers schema updates.
*/
- function testSettingsApi() {
+ public function testSettingsApi() {
$this->container->get('content_translation.manager')->setEnabled('entity_test_mul', 'entity_test_mul', TRUE);
$result =
db_field_exists('entity_test_mul_property_data', 'content_translation_source') &&
diff --git a/core/modules/contextual/src/Tests/ContextualDynamicContextTest.php b/core/modules/contextual/src/Tests/ContextualDynamicContextTest.php
index e2c57fc..90b73d7 100644
--- a/core/modules/contextual/src/Tests/ContextualDynamicContextTest.php
+++ b/core/modules/contextual/src/Tests/ContextualDynamicContextTest.php
@@ -64,7 +64,7 @@ class ContextualDynamicContextTest extends WebTestBase {
* Ensures that contextual link placeholders always exist, even if the user is
* not allowed to use contextual links.
*/
- function testDifferentPermissions() {
+ public function testDifferentPermissions() {
$this->drupalLogin($this->editorUser);
// Create three nodes in the following order:
diff --git a/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php b/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php
index 1d86da0..f42bf20 100644
--- a/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php
+++ b/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php
@@ -22,7 +22,7 @@ class ContextualUnitTest extends KernelTestBase {
/**
* Provides testcases for testContextualLinksToId() and
*/
- function _contextual_links_id_testcases() {
+ public function _contextual_links_id_testcases() {
// Test branch conditions:
// - one group.
// - one dynamic path argument.
@@ -110,7 +110,7 @@ class ContextualUnitTest extends KernelTestBase {
/**
* Tests _contextual_links_to_id().
*/
- function testContextualLinksToId() {
+ public function testContextualLinksToId() {
$tests = $this->_contextual_links_id_testcases();
foreach ($tests as $test) {
$this->assertIdentical(_contextual_links_to_id($test['links']), $test['id']);
@@ -120,7 +120,7 @@ class ContextualUnitTest extends KernelTestBase {
/**
* Tests _contextual_id_to_links().
*/
- function testContextualIdToLinks() {
+ public function testContextualIdToLinks() {
$tests = $this->_contextual_links_id_testcases();
foreach ($tests as $test) {
$this->assertIdentical(_contextual_id_to_links($test['id']), $test['links']);
diff --git a/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDatelistWidget.php b/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDatelistWidget.php
index d130976..276d92c 100644
--- a/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDatelistWidget.php
+++ b/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDatelistWidget.php
@@ -88,7 +88,7 @@ class DateTimeDatelistWidget extends DateTimeWidgetBase {
/**
* {@inheritdoc}
*/
- function settingsForm(array $form, FormStateInterface $form_state) {
+ public function settingsForm(array $form, FormStateInterface $form_state) {
$element = parent::settingsForm($form, $form_state);
$element['date_order'] = [
diff --git a/core/modules/datetime/src/Tests/DateTimeFieldTest.php b/core/modules/datetime/src/Tests/DateTimeFieldTest.php
index aeed9bc..827c811 100644
--- a/core/modules/datetime/src/Tests/DateTimeFieldTest.php
+++ b/core/modules/datetime/src/Tests/DateTimeFieldTest.php
@@ -36,7 +36,7 @@ class DateTimeFieldTest extends DateTestBase {
/**
* Tests date field functionality.
*/
- function testDateField() {
+ public function testDateField() {
$field_name = $this->fieldStorage->getName();
// Loop through defined timezones to test that date-only fields work at the
@@ -205,7 +205,7 @@ class DateTimeFieldTest extends DateTestBase {
/**
* Tests date and time field.
*/
- function testDatetimeField() {
+ public function testDatetimeField() {
$field_name = $this->fieldStorage->getName();
// Change the field to a datetime field.
$this->fieldStorage->setSetting('datetime_type', 'datetime');
@@ -348,7 +348,7 @@ class DateTimeFieldTest extends DateTestBase {
/**
* Tests Date List Widget functionality.
*/
- function testDatelistWidget() {
+ public function testDatelistWidget() {
$field_name = $this->fieldStorage->getName();
// Ensure field is set to a date only field.
@@ -593,7 +593,7 @@ class DateTimeFieldTest extends DateTestBase {
/**
* Test default value functionality.
*/
- function testDefaultValue() {
+ public function testDefaultValue() {
// Create a test content type.
$this->drupalCreateContentType(['type' => 'date_content']);
@@ -715,7 +715,7 @@ class DateTimeFieldTest extends DateTestBase {
/**
* Test that invalid values are caught and marked as invalid.
*/
- function testInvalidField() {
+ public function testInvalidField() {
// Change the field to a datetime field.
$this->fieldStorage->setSetting('datetime_type', 'datetime');
$this->fieldStorage->save();
diff --git a/core/modules/dblog/src/Tests/DbLogTest.php b/core/modules/dblog/src/Tests/DbLogTest.php
index 878f632..79cc038 100644
--- a/core/modules/dblog/src/Tests/DbLogTest.php
+++ b/core/modules/dblog/src/Tests/DbLogTest.php
@@ -58,7 +58,7 @@ class DbLogTest extends WebTestBase {
* Database Logging module functionality through both the admin and user
* interfaces.
*/
- function testDbLog() {
+ public function testDbLog() {
// Log in the admin user.
$this->drupalLogin($this->adminUser);
diff --git a/core/modules/dblog/tests/src/Functional/ConnectionFailureTest.php b/core/modules/dblog/tests/src/Functional/ConnectionFailureTest.php
index 44b0457..37c855a 100644
--- a/core/modules/dblog/tests/src/Functional/ConnectionFailureTest.php
+++ b/core/modules/dblog/tests/src/Functional/ConnectionFailureTest.php
@@ -17,7 +17,7 @@ class ConnectionFailureTest extends BrowserTestBase {
/**
* Tests logging of connection failures.
*/
- function testConnectionFailureLogging() {
+ public function testConnectionFailureLogging() {
$logger = \Drupal::service('logger.factory');
// MySQL errors like "1153 - Got a packet bigger than 'max_allowed_packet'
diff --git a/core/modules/editor/src/Element.php b/core/modules/editor/src/Element.php
index 9017310..9f8ab91 100644
--- a/core/modules/editor/src/Element.php
+++ b/core/modules/editor/src/Element.php
@@ -32,7 +32,7 @@ class Element {
/**
* Additional #pre_render callback for 'text_format' elements.
*/
- function preRenderTextFormat(array $element) {
+ public function preRenderTextFormat(array $element) {
// Allow modules to programmatically enforce no client-side editor by
// setting the #editor property to FALSE.
if (isset($element['#editor']) && !$element['#editor']) {
diff --git a/core/modules/editor/src/Plugin/InPlaceEditor/Editor.php b/core/modules/editor/src/Plugin/InPlaceEditor/Editor.php
index 27a700b..dab14ef 100644
--- a/core/modules/editor/src/Plugin/InPlaceEditor/Editor.php
+++ b/core/modules/editor/src/Plugin/InPlaceEditor/Editor.php
@@ -43,7 +43,7 @@ class Editor extends PluginBase implements InPlaceEditorInterface {
/**
* {@inheritdoc}
*/
- function getMetadata(FieldItemListInterface $items) {
+ public function getMetadata(FieldItemListInterface $items) {
$format_id = $items[0]->format;
$metadata['format'] = $format_id;
$metadata['formatHasTransformations'] = $this->textFormatHasTransformationFilters($format_id);
diff --git a/core/modules/editor/src/Tests/EditorSecurityTest.php b/core/modules/editor/src/Tests/EditorSecurityTest.php
index 0c29a58..d00fe0e 100644
--- a/core/modules/editor/src/Tests/EditorSecurityTest.php
+++ b/core/modules/editor/src/Tests/EditorSecurityTest.php
@@ -222,7 +222,7 @@ class EditorSecurityTest extends WebTestBase {
*
* Tests 8 scenarios. Tests only with a text editor that is not XSS-safe.
*/
- function testInitialSecurity() {
+ public function testInitialSecurity() {
$expected = [
[
'node_id' => 1,
@@ -302,7 +302,7 @@ class EditorSecurityTest extends WebTestBase {
* format and contains a <script> tag to the Full HTML text format, the
* <script> tag would be executed. Unless we apply appropriate filtering.
*/
- function testSwitchingSecurity() {
+ public function testSwitchingSecurity() {
$expected = [
[
'node_id' => 1,
@@ -415,7 +415,7 @@ class EditorSecurityTest extends WebTestBase {
/**
* Tests the standard text editor XSS filter being overridden.
*/
- function testEditorXssFilterOverride() {
+ public function testEditorXssFilterOverride() {
// First: the Standard text editor XSS filter.
$this->drupalLogin($this->normalUser);
$this->drupalGet('node/2/edit');
diff --git a/core/modules/editor/tests/modules/src/Plugin/Editor/UnicornEditor.php b/core/modules/editor/tests/modules/src/Plugin/Editor/UnicornEditor.php
index ddc730c..b7b200e 100644
--- a/core/modules/editor/tests/modules/src/Plugin/Editor/UnicornEditor.php
+++ b/core/modules/editor/tests/modules/src/Plugin/Editor/UnicornEditor.php
@@ -26,14 +26,14 @@ class UnicornEditor extends EditorBase {
/**
* {@inheritdoc}
*/
- function getDefaultSettings() {
+ public function getDefaultSettings() {
return ['ponies_too' => TRUE];
}
/**
* {@inheritdoc}
*/
- function settingsForm(array $form, FormStateInterface $form_state, Editor $editor) {
+ public function settingsForm(array $form, FormStateInterface $form_state, Editor $editor) {
$form['ponies_too'] = [
'#title' => t('Pony mode'),
'#type' => 'checkbox',
@@ -45,7 +45,7 @@ class UnicornEditor extends EditorBase {
/**
* {@inheritdoc}
*/
- function getJSSettings(Editor $editor) {
+ public function getJSSettings(Editor $editor) {
$js_settings = [];
$settings = $editor->getSettings();
if ($settings['ponies_too']) {
diff --git a/core/modules/editor/tests/src/Functional/EditorPrivateFileReferenceFilterTest.php b/core/modules/editor/tests/src/Functional/EditorPrivateFileReferenceFilterTest.php
index 4ca923b..3e3f3d1 100644
--- a/core/modules/editor/tests/src/Functional/EditorPrivateFileReferenceFilterTest.php
+++ b/core/modules/editor/tests/src/Functional/EditorPrivateFileReferenceFilterTest.php
@@ -36,7 +36,7 @@ class EditorPrivateFileReferenceFilterTest extends BrowserTestBase {
/**
* Tests the editor file reference filter with private files.
*/
- function testEditorPrivateFileReferenceFilter() {
+ public function testEditorPrivateFileReferenceFilter() {
$author = $this->drupalCreateUser();
$this->drupalLogin($author);
diff --git a/core/modules/editor/tests/src/Kernel/EditorFileReferenceFilterTest.php b/core/modules/editor/tests/src/Kernel/EditorFileReferenceFilterTest.php
index 621aabe..c68ae48 100644
--- a/core/modules/editor/tests/src/Kernel/EditorFileReferenceFilterTest.php
+++ b/core/modules/editor/tests/src/Kernel/EditorFileReferenceFilterTest.php
@@ -43,7 +43,7 @@ class EditorFileReferenceFilterTest extends KernelTestBase {
/**
* Tests the editor file reference filter.
*/
- function testEditorFileReferenceFilter() {
+ public function testEditorFileReferenceFilter() {
$filter = $this->filters['editor_file_reference'];
$test = function($input) use ($filter) {
diff --git a/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php b/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php
index 17292e0..6fc6c6d 100644
--- a/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php
+++ b/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php
@@ -58,7 +58,7 @@ class BooleanFieldTest extends WebTestBase {
/**
* Tests boolean field.
*/
- function testBooleanField() {
+ public function testBooleanField() {
$on = $this->randomMachineName();
$off = $this->randomMachineName();
$label = $this->randomMachineName();
diff --git a/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php b/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php
index f454420..92efa98 100644
--- a/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php
+++ b/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php
@@ -77,7 +77,7 @@ class BooleanFormatterSettingsTest extends WebTestBase {
/**
* Tests the formatter settings page for the Boolean formatter.
*/
- function testBooleanFormatterSettings() {
+ public function testBooleanFormatterSettings() {
// List the options we expect to see on the settings form. Omit the one
// with the Unicode check/x characters, which does not appear to work
// well in WebTestBase.
diff --git a/core/modules/field/src/Tests/Email/EmailFieldTest.php b/core/modules/field/src/Tests/Email/EmailFieldTest.php
index 779870c..269d91f 100644
--- a/core/modules/field/src/Tests/Email/EmailFieldTest.php
+++ b/core/modules/field/src/Tests/Email/EmailFieldTest.php
@@ -49,7 +49,7 @@ class EmailFieldTest extends WebTestBase {
/**
* Tests email field.
*/
- function testEmailField() {
+ public function testEmailField() {
// Create a field with settings to validate.
$field_name = Unicode::strtolower($this->randomMachineName());
$this->fieldStorage = FieldStorageConfig::create([
diff --git a/core/modules/field/src/Tests/FieldTestBase.php b/core/modules/field/src/Tests/FieldTestBase.php
index ce4161b..57225cb 100644
--- a/core/modules/field/src/Tests/FieldTestBase.php
+++ b/core/modules/field/src/Tests/FieldTestBase.php
@@ -22,7 +22,7 @@ abstract class FieldTestBase extends WebTestBase {
* @return
* An array of random values, in the format expected for field values.
*/
- function _generateTestFieldValues($cardinality) {
+ public function _generateTestFieldValues($cardinality) {
$values = [];
for ($i = 0; $i < $cardinality; $i++) {
// field_test fields treat 0 as 'empty value'.
@@ -48,7 +48,7 @@ abstract class FieldTestBase extends WebTestBase {
* @param $column
* (Optional) The name of the column to check. Defaults to 'value'.
*/
- function assertFieldValues(EntityInterface $entity, $field_name, $expected_values, $langcode = LanguageInterface::LANGCODE_DEFAULT, $column = 'value') {
+ public function assertFieldValues(EntityInterface $entity, $field_name, $expected_values, $langcode = LanguageInterface::LANGCODE_DEFAULT, $column = 'value') {
// Re-load the entity to make sure we have the latest changes.
$storage = $this->container->get('entity_type.manager')
->getStorage($entity->getEntityTypeId());
diff --git a/core/modules/field/src/Tests/FormTest.php b/core/modules/field/src/Tests/FormTest.php
index 77cc274..ff1b3ee 100644
--- a/core/modules/field/src/Tests/FormTest.php
+++ b/core/modules/field/src/Tests/FormTest.php
@@ -91,7 +91,7 @@ class FormTest extends FieldTestBase {
];
}
- function testFieldFormSingle() {
+ public function testFieldFormSingle() {
$field_storage = $this->fieldStorageSingle;
$field_name = $field_storage['field_name'];
$this->field['field_name'] = $field_name;
@@ -165,7 +165,7 @@ class FormTest extends FieldTestBase {
/**
* Tests field widget default values on entity forms.
*/
- function testFieldFormDefaultValue() {
+ public function testFieldFormDefaultValue() {
$field_storage = $this->fieldStorageSingle;
$field_name = $field_storage['field_name'];
$this->field['field_name'] = $field_name;
@@ -194,7 +194,7 @@ class FormTest extends FieldTestBase {
$this->assertTrue($entity->{$field_name}->isEmpty(), 'Field is now empty.');
}
- function testFieldFormSingleRequired() {
+ public function testFieldFormSingleRequired() {
$field_storage = $this->fieldStorageSingle;
$field_name = $field_storage['field_name'];
$this->field['field_name'] = $field_name;
@@ -231,7 +231,7 @@ class FormTest extends FieldTestBase {
$this->assertRaw(t('@name field is required.', ['@name' => $this->field['label']]), 'Required field with no value fails validation');
}
- function testFieldFormUnlimited() {
+ public function testFieldFormUnlimited() {
$field_storage = $this->fieldStorageUnlimited;
$field_name = $field_storage['field_name'];
$this->field['field_name'] = $field_name;
@@ -341,7 +341,7 @@ class FormTest extends FieldTestBase {
/**
* Tests widget handling of multiple required radios.
*/
- function testFieldFormMultivalueWithRequiredRadio() {
+ public function testFieldFormMultivalueWithRequiredRadio() {
// Create a multivalue test field.
$field_storage = $this->fieldStorageUnlimited;
$field_name = $field_storage['field_name'];
@@ -389,7 +389,7 @@ class FormTest extends FieldTestBase {
$this->assertNoField("{$field_name}[2][value]", 'No extraneous widget is displayed');
}
- function testFieldFormJSAddMore() {
+ public function testFieldFormJSAddMore() {
$field_storage = $this->fieldStorageUnlimited;
$field_name = $field_storage['field_name'];
$this->field['field_name'] = $field_name;
@@ -448,7 +448,7 @@ class FormTest extends FieldTestBase {
/**
* Tests widgets handling multiple values.
*/
- function testFieldFormMultipleWidget() {
+ public function testFieldFormMultipleWidget() {
// Create a field with fixed cardinality, configure the form to use a
// "multiple" widget.
$field_storage = $this->fieldStorageMultiple;
@@ -493,7 +493,7 @@ class FormTest extends FieldTestBase {
/**
* Tests fields with no 'edit' access.
*/
- function testFieldFormAccess() {
+ public function testFieldFormAccess() {
$entity_type = 'entity_test_rev';
// Create a "regular" field.
$field_storage = $this->fieldStorageSingle;
@@ -585,7 +585,7 @@ class FormTest extends FieldTestBase {
/**
* Tests hiding a field in a form.
*/
- function testHiddenField() {
+ public function testHiddenField() {
$entity_type = 'entity_test_rev';
$field_storage = $this->fieldStorageSingle;
$field_storage['entity_type'] = $entity_type;
diff --git a/core/modules/field/src/Tests/NestedFormTest.php b/core/modules/field/src/Tests/NestedFormTest.php
index 530bb20..e9b5f05 100644
--- a/core/modules/field/src/Tests/NestedFormTest.php
+++ b/core/modules/field/src/Tests/NestedFormTest.php
@@ -52,7 +52,7 @@ class NestedFormTest extends FieldTestBase {
/**
* Tests Field API form integration within a subform.
*/
- function testNestedFieldForm() {
+ public function testNestedFieldForm() {
// Add two fields on the 'entity_test'
FieldStorageConfig::create($this->fieldStorageSingle)->save();
FieldStorageConfig::create($this->fieldStorageUnlimited)->save();
diff --git a/core/modules/field/src/Tests/Number/NumberFieldTest.php b/core/modules/field/src/Tests/Number/NumberFieldTest.php
index 3fea616..c691410 100644
--- a/core/modules/field/src/Tests/Number/NumberFieldTest.php
+++ b/core/modules/field/src/Tests/Number/NumberFieldTest.php
@@ -38,7 +38,7 @@ class NumberFieldTest extends WebTestBase {
/**
* Test decimal field.
*/
- function testNumberDecimalField() {
+ public function testNumberDecimalField() {
// Create a field with settings to validate.
$field_name = Unicode::strtolower($this->randomMachineName());
FieldStorageConfig::create([
@@ -125,7 +125,7 @@ class NumberFieldTest extends WebTestBase {
/**
* Test integer field.
*/
- function testNumberIntegerField() {
+ public function testNumberIntegerField() {
$minimum = rand(-4000, -2000);
$maximum = rand(2000, 4000);
@@ -271,7 +271,7 @@ class NumberFieldTest extends WebTestBase {
/**
* Test float field.
*/
- function testNumberFloatField() {
+ public function testNumberFloatField() {
// Create a field with settings to validate.
$field_name = Unicode::strtolower($this->randomMachineName());
FieldStorageConfig::create([
@@ -361,7 +361,7 @@ class NumberFieldTest extends WebTestBase {
/**
* Test default formatter behavior
*/
- function testNumberFormatter() {
+ public function testNumberFormatter() {
$type = Unicode::strtolower($this->randomMachineName());
$float_field = Unicode::strtolower($this->randomMachineName());
$integer_field = Unicode::strtolower($this->randomMachineName());
@@ -492,7 +492,7 @@ class NumberFieldTest extends WebTestBase {
/**
* Tests setting the minimum value of a float field through the interface.
*/
- function testCreateNumberFloatField() {
+ public function testCreateNumberFloatField() {
// Create a float field.
$field_name = Unicode::strtolower($this->randomMachineName());
FieldStorageConfig::create([
@@ -517,7 +517,7 @@ class NumberFieldTest extends WebTestBase {
/**
* Tests setting the minimum value of a decimal field through the interface.
*/
- function testCreateNumberDecimalField() {
+ public function testCreateNumberDecimalField() {
// Create a decimal field.
$field_name = Unicode::strtolower($this->randomMachineName());
FieldStorageConfig::create([
@@ -542,7 +542,7 @@ class NumberFieldTest extends WebTestBase {
/**
* Helper function to set the minimum value of a field.
*/
- function assertSetMinimumValue($field, $minimum_value) {
+ public function assertSetMinimumValue($field, $minimum_value) {
$field_configuration_url = 'entity_test/structure/entity_test/fields/entity_test.entity_test.' . $field->getName();
// Set the minimum value.
diff --git a/core/modules/field/src/Tests/String/StringFieldTest.php b/core/modules/field/src/Tests/String/StringFieldTest.php
index 6bd034d..97e470e 100644
--- a/core/modules/field/src/Tests/String/StringFieldTest.php
+++ b/core/modules/field/src/Tests/String/StringFieldTest.php
@@ -41,7 +41,7 @@ class StringFieldTest extends WebTestBase {
/**
* Test widgets.
*/
- function testTextfieldWidgets() {
+ public function testTextfieldWidgets() {
$this->_testTextfieldWidgets('string', 'string_textfield');
$this->_testTextfieldWidgets('string_long', 'string_textarea');
}
@@ -49,7 +49,7 @@ class StringFieldTest extends WebTestBase {
/**
* Helper function for testTextfieldWidgets().
*/
- function _testTextfieldWidgets($field_type, $widget_type) {
+ public function _testTextfieldWidgets($field_type, $widget_type) {
// Create a field.
$field_name = Unicode::strtolower($this->randomMachineName());
$field_storage = FieldStorageConfig::create([
diff --git a/core/modules/field/src/Tests/Views/FieldTestBase.php b/core/modules/field/src/Tests/Views/FieldTestBase.php
index cd57994..f04e19f 100644
--- a/core/modules/field/src/Tests/Views/FieldTestBase.php
+++ b/core/modules/field/src/Tests/Views/FieldTestBase.php
@@ -54,7 +54,7 @@ abstract class FieldTestBase extends ViewTestBase {
ViewTestData::createTestViews(get_class($this), ['field_test_views']);
}
- function setUpFieldStorages($amount = 3, $type = 'string') {
+ public function setUpFieldStorages($amount = 3, $type = 'string') {
// Create three fields.
$field_names = [];
for ($i = 0; $i < $amount; $i++) {
@@ -69,7 +69,7 @@ abstract class FieldTestBase extends ViewTestBase {
return $field_names;
}
- function setUpFields($bundle = 'page') {
+ public function setUpFields($bundle = 'page') {
foreach ($this->fieldStorages as $key => $field_storage) {
$this->fields[$key] = FieldConfig::create([
'field_storage' => $field_storage,
diff --git a/core/modules/field/src/Tests/reEnableModuleFieldTest.php b/core/modules/field/src/Tests/reEnableModuleFieldTest.php
index 141b5e1..24c0eff 100644
--- a/core/modules/field/src/Tests/reEnableModuleFieldTest.php
+++ b/core/modules/field/src/Tests/reEnableModuleFieldTest.php
@@ -41,7 +41,7 @@ class reEnableModuleFieldTest extends WebTestBase {
*
* @see field_system_info_alter()
*/
- function testReEnabledField() {
+ public function testReEnabledField() {
// Add a telephone field to the article content type.
$field_storage = FieldStorageConfig::create([
diff --git a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldDefaultValueTest.php b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldDefaultValueTest.php
index 2f55cd5..4567bd0 100644
--- a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldDefaultValueTest.php
+++ b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldDefaultValueTest.php
@@ -47,7 +47,7 @@ class EntityReferenceFieldDefaultValueTest extends BrowserTestBase {
/**
* Tests that default values are correctly translated to UUIDs in config.
*/
- function testEntityReferenceDefaultValue() {
+ public function testEntityReferenceDefaultValue() {
// Create a node to be referenced.
$referenced_node = $this->drupalCreateNode(['type' => 'referenced_content']);
@@ -109,7 +109,7 @@ class EntityReferenceFieldDefaultValueTest extends BrowserTestBase {
*
* @see \Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::onDependencyRemoval()
*/
- function testEntityReferenceDefaultConfigValue() {
+ public function testEntityReferenceDefaultConfigValue() {
// Create a node to be referenced.
$referenced_node_type = $this->drupalCreateContentType(['type' => 'referenced_config_to_delete']);
$referenced_node_type2 = $this->drupalCreateContentType(['type' => 'referenced_config_to_preserve']);
diff --git a/core/modules/field/tests/src/Functional/FieldAccessTest.php b/core/modules/field/tests/src/Functional/FieldAccessTest.php
index 36f0ef9..c7f234f 100644
--- a/core/modules/field/tests/src/Functional/FieldAccessTest.php
+++ b/core/modules/field/tests/src/Functional/FieldAccessTest.php
@@ -75,7 +75,7 @@ class FieldAccessTest extends FieldTestBase {
/**
* Test that hook_entity_field_access() is called.
*/
- function testFieldAccess() {
+ public function testFieldAccess() {
// Assert the text is visible.
$this->drupalGet('node/' . $this->node->id());
diff --git a/core/modules/field/tests/src/Functional/FieldTestBase.php b/core/modules/field/tests/src/Functional/FieldTestBase.php
index 108d5f5..bdd6073 100644
--- a/core/modules/field/tests/src/Functional/FieldTestBase.php
+++ b/core/modules/field/tests/src/Functional/FieldTestBase.php
@@ -19,7 +19,7 @@ abstract class FieldTestBase extends BrowserTestBase {
* @return
* An array of random values, in the format expected for field values.
*/
- function _generateTestFieldValues($cardinality) {
+ public function _generateTestFieldValues($cardinality) {
$values = [];
for ($i = 0; $i < $cardinality; $i++) {
// field_test fields treat 0 as 'empty value'.
@@ -45,7 +45,7 @@ abstract class FieldTestBase extends BrowserTestBase {
* @param $column
* (Optional) The name of the column to check. Defaults to 'value'.
*/
- function assertFieldValues(EntityInterface $entity, $field_name, $expected_values, $langcode = LanguageInterface::LANGCODE_DEFAULT, $column = 'value') {
+ public function assertFieldValues(EntityInterface $entity, $field_name, $expected_values, $langcode = LanguageInterface::LANGCODE_DEFAULT, $column = 'value') {
// Re-load the entity to make sure we have the latest changes.
$storage = $this->container->get('entity_type.manager')
->getStorage($entity->getEntityTypeId());
diff --git a/core/modules/field/tests/src/Functional/TranslationWebTest.php b/core/modules/field/tests/src/Functional/TranslationWebTest.php
index e09e585..19af64d 100644
--- a/core/modules/field/tests/src/Functional/TranslationWebTest.php
+++ b/core/modules/field/tests/src/Functional/TranslationWebTest.php
@@ -85,7 +85,7 @@ class TranslationWebTest extends FieldTestBase {
/**
* Tests field translations when creating a new revision.
*/
- function testFieldFormTranslationRevisions() {
+ public function testFieldFormTranslationRevisions() {
$web_user = $this->drupalCreateUser(['view test entity', 'administer entity_test content']);
$this->drupalLogin($web_user);
diff --git a/core/modules/field/tests/src/Kernel/BulkDeleteTest.php b/core/modules/field/tests/src/Kernel/BulkDeleteTest.php
index f0497d6..900c154 100644
--- a/core/modules/field/tests/src/Kernel/BulkDeleteTest.php
+++ b/core/modules/field/tests/src/Kernel/BulkDeleteTest.php
@@ -58,7 +58,7 @@ class BulkDeleteTest extends FieldKernelTestBase {
* @param $actual_hooks
* The array of actual hook invocations recorded by field_test_memorize().
*/
- function checkHooksInvocations($expected_hooks, $actual_hooks) {
+ public function checkHooksInvocations($expected_hooks, $actual_hooks) {
foreach ($expected_hooks as $hook => $invocations) {
$actual_invocations = $actual_hooks[$hook];
@@ -158,7 +158,7 @@ class BulkDeleteTest extends FieldKernelTestBase {
* This tests how EntityFieldQuery interacts with field deletion and could be
* moved to FieldCrudTestCase, but depends on this class's setUp().
*/
- function testDeleteField() {
+ public function testDeleteField() {
$bundle = reset($this->bundles);
$field_storage = reset($this->fieldStorages);
$field_name = $field_storage->getName();
@@ -307,7 +307,7 @@ class BulkDeleteTest extends FieldKernelTestBase {
* Verify that field data items and fields are purged when a field storage is
* deleted.
*/
- function testPurgeField() {
+ public function testPurgeField() {
// Start recording hook invocations.
field_test_memorize();
@@ -368,7 +368,7 @@ class BulkDeleteTest extends FieldKernelTestBase {
* Verify that field storages are preserved and purged correctly as multiple
* fields are deleted and purged.
*/
- function testPurgeFieldStorage() {
+ public function testPurgeFieldStorage() {
// Start recording hook invocations.
field_test_memorize();
diff --git a/core/modules/field/tests/src/Kernel/DisplayApiTest.php b/core/modules/field/tests/src/Kernel/DisplayApiTest.php
index 1072de1..3cbf63e 100644
--- a/core/modules/field/tests/src/Kernel/DisplayApiTest.php
+++ b/core/modules/field/tests/src/Kernel/DisplayApiTest.php
@@ -119,7 +119,7 @@ class DisplayApiTest extends FieldKernelTestBase {
/**
* Tests the FieldItemListInterface::view() method.
*/
- function testFieldItemListView() {
+ public function testFieldItemListView() {
$items = $this->entity->get($this->fieldName);
\Drupal::service('theme_handler')->install(['classy']);
@@ -218,7 +218,7 @@ class DisplayApiTest extends FieldKernelTestBase {
/**
* Tests the FieldItemInterface::view() method.
*/
- function testFieldItemView() {
+ public function testFieldItemView() {
// No display settings: check that default display settings are used.
$settings = \Drupal::service('plugin.manager.field.formatter')->getDefaultSettings('field_test_default');
$setting = $settings['test_formatter_setting'];
@@ -282,7 +282,7 @@ class DisplayApiTest extends FieldKernelTestBase {
/**
* Tests that the prepareView() formatter method still fires for empty values.
*/
- function testFieldEmpty() {
+ public function testFieldEmpty() {
// Uses \Drupal\field_test\Plugin\Field\FieldFormatter\TestFieldEmptyFormatter.
$display = [
'label' => 'hidden',
diff --git a/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php b/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php
index c1e7ae1..05fdfae 100644
--- a/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php
@@ -23,7 +23,7 @@ class FieldAttachOtherTest extends FieldKernelTestBase {
/**
* Test rendering fields with EntityDisplay build().
*/
- function testEntityDisplayBuild() {
+ public function testEntityDisplayBuild() {
$this->createFieldWithStorage('_2');
$entity_type = 'entity_test';
@@ -133,7 +133,7 @@ class FieldAttachOtherTest extends FieldKernelTestBase {
/**
* Tests rendering fields with EntityDisplay::buildMultiple().
*/
- function testEntityDisplayViewMultiple() {
+ public function testEntityDisplayViewMultiple() {
// Use a formatter that has a prepareView() step.
$display = entity_get_display('entity_test', 'entity_test', 'full')
->setComponent($this->fieldTestData->field_name, [
@@ -160,7 +160,7 @@ class FieldAttachOtherTest extends FieldKernelTestBase {
* Complements unit test coverage in
* \Drupal\Tests\Core\Entity\Sql\SqlContentEntityStorageTest.
*/
- function testEntityCache() {
+ public function testEntityCache() {
// Initialize random values and a test entity.
$entity_init = EntityTest::create(['type' => $this->fieldTestData->field->getTargetBundle()]);
$values = $this->_generateTestFieldValues($this->fieldTestData->field_storage->getCardinality());
@@ -243,7 +243,7 @@ class FieldAttachOtherTest extends FieldKernelTestBase {
* This could be much more thorough, but it does verify that the correct
* widgets show up.
*/
- function testEntityFormDisplayBuildForm() {
+ public function testEntityFormDisplayBuildForm() {
$this->createFieldWithStorage('_2');
$entity_type = 'entity_test';
@@ -288,7 +288,7 @@ class FieldAttachOtherTest extends FieldKernelTestBase {
/**
* Tests \Drupal\Core\Entity\Display\EntityFormDisplayInterface::extractFormValues().
*/
- function testEntityFormDisplayExtractFormValues() {
+ public function testEntityFormDisplayExtractFormValues() {
$this->createFieldWithStorage('_2');
$entity_type = 'entity_test';
diff --git a/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php b/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php
index 9f0eef3..03ed8cd 100644
--- a/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php
@@ -24,7 +24,7 @@ class FieldAttachStorageTest extends FieldKernelTestBase {
* Works independently of the underlying field storage backend. Inserts or
* updates random field data and then loads and verifies the data.
*/
- function testFieldAttachSaveLoad() {
+ public function testFieldAttachSaveLoad() {
$entity_type = 'entity_test_rev';
$this->createFieldWithStorage('', $entity_type);
$cardinality = $this->fieldTestData->field_storage->getCardinality();
@@ -72,7 +72,7 @@ class FieldAttachStorageTest extends FieldKernelTestBase {
/**
* Test the 'multiple' load feature.
*/
- function testFieldAttachLoadMultiple() {
+ public function testFieldAttachLoadMultiple() {
$entity_type = 'entity_test_rev';
// Define 2 bundles.
@@ -144,7 +144,7 @@ class FieldAttachStorageTest extends FieldKernelTestBase {
/**
* Tests insert and update with empty or NULL fields.
*/
- function testFieldAttachSaveEmptyData() {
+ public function testFieldAttachSaveEmptyData() {
$entity_type = 'entity_test';
$this->createFieldWithStorage('', $entity_type);
@@ -192,7 +192,7 @@ class FieldAttachStorageTest extends FieldKernelTestBase {
/**
* Test insert with empty or NULL fields, with default value.
*/
- function testFieldAttachSaveEmptyDataDefaultValue() {
+ public function testFieldAttachSaveEmptyDataDefaultValue() {
$entity_type = 'entity_test_rev';
$this->createFieldWithStorage('', $entity_type);
@@ -225,7 +225,7 @@ class FieldAttachStorageTest extends FieldKernelTestBase {
/**
* Test entity deletion.
*/
- function testFieldAttachDelete() {
+ public function testFieldAttachDelete() {
$entity_type = 'entity_test_rev';
$this->createFieldWithStorage('', $entity_type);
$cardinality = $this->fieldTestData->field_storage->getCardinality();
@@ -285,7 +285,7 @@ class FieldAttachStorageTest extends FieldKernelTestBase {
/**
* Test entity_bundle_create().
*/
- function testEntityCreateBundle() {
+ public function testEntityCreateBundle() {
$entity_type = 'entity_test_rev';
$this->createFieldWithStorage('', $entity_type);
$cardinality = $this->fieldTestData->field_storage->getCardinality();
@@ -313,7 +313,7 @@ class FieldAttachStorageTest extends FieldKernelTestBase {
/**
* Test entity_bundle_delete().
*/
- function testEntityDeleteBundle() {
+ public function testEntityDeleteBundle() {
$entity_type = 'entity_test_rev';
$this->createFieldWithStorage('', $entity_type);
diff --git a/core/modules/field/tests/src/Kernel/FieldCrudTest.php b/core/modules/field/tests/src/Kernel/FieldCrudTest.php
index 85121c9..87441dc 100644
--- a/core/modules/field/tests/src/Kernel/FieldCrudTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldCrudTest.php
@@ -37,7 +37,7 @@ class FieldCrudTest extends FieldKernelTestBase {
*/
protected $fieldDefinition;
- function setUp() {
+ public function setUp() {
parent::setUp();
$this->fieldStorageDefinition = [
@@ -63,7 +63,7 @@ class FieldCrudTest extends FieldKernelTestBase {
/**
* Test the creation of a field.
*/
- function testCreateField() {
+ public function testCreateField() {
// Set a state flag so that field_test.module knows to add an in-memory
// constraint for this field.
\Drupal::state()->set('field_test_add_constraint', $this->fieldStorage->getName());
@@ -174,7 +174,7 @@ class FieldCrudTest extends FieldKernelTestBase {
/**
* Test reading back a field definition.
*/
- function testReadField() {
+ public function testReadField() {
FieldConfig::create($this->fieldDefinition)->save();
// Read the field back.
@@ -187,7 +187,7 @@ class FieldCrudTest extends FieldKernelTestBase {
/**
* Test the update of a field.
*/
- function testUpdateField() {
+ public function testUpdateField() {
FieldConfig::create($this->fieldDefinition)->save();
// Check that basic changes are saved.
@@ -209,7 +209,7 @@ class FieldCrudTest extends FieldKernelTestBase {
/**
* Test the deletion of a field.
*/
- function testDeleteField() {
+ public function testDeleteField() {
// TODO: Test deletion of the data stored in the field also.
// Need to check that data for a 'deleted' field / storage doesn't get loaded
// Need to check data marked deleted is cleaned on cron (not implemented yet...)
@@ -243,7 +243,7 @@ class FieldCrudTest extends FieldKernelTestBase {
/**
* Tests the cross deletion behavior between field storages and fields.
*/
- function testDeleteFieldCrossDeletion() {
+ public function testDeleteFieldCrossDeletion() {
$field_definition_2 = $this->fieldDefinition;
$field_definition_2['bundle'] .= '_another_bundle';
entity_test_create_bundle($field_definition_2['bundle']);
diff --git a/core/modules/field/tests/src/Kernel/FieldImportChangeTest.php b/core/modules/field/tests/src/Kernel/FieldImportChangeTest.php
index 10eff6d..9b83919 100644
--- a/core/modules/field/tests/src/Kernel/FieldImportChangeTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldImportChangeTest.php
@@ -25,7 +25,7 @@ class FieldImportChangeTest extends FieldKernelTestBase {
/**
* Tests importing an updated field.
*/
- function testImportChange() {
+ public function testImportChange() {
$this->installConfig(['field_test_config']);
$field_storage_id = 'field_test_import';
$field_id = "entity_test.entity_test.$field_storage_id";
diff --git a/core/modules/field/tests/src/Kernel/FieldImportCreateTest.php b/core/modules/field/tests/src/Kernel/FieldImportCreateTest.php
index 007bb0f..5e15582 100644
--- a/core/modules/field/tests/src/Kernel/FieldImportCreateTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldImportCreateTest.php
@@ -16,7 +16,7 @@ class FieldImportCreateTest extends FieldKernelTestBase {
/**
* Tests creating field storages and fields during default config import.
*/
- function testImportCreateDefault() {
+ public function testImportCreateDefault() {
$field_name = 'field_test_import';
$field_storage_id = "entity_test.$field_name";
$field_id = "entity_test.entity_test.$field_name";
@@ -70,7 +70,7 @@ class FieldImportCreateTest extends FieldKernelTestBase {
/**
* Tests creating field storages and fields during config import.
*/
- function testImportCreate() {
+ public function testImportCreate() {
// A field storage with one single field.
$field_name = 'field_test_import_sync';
$field_storage_id = "entity_test.$field_name";
diff --git a/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php b/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
index 13091c4..f7993dc 100644
--- a/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
@@ -31,7 +31,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
/**
* Test the creation of a field storage.
*/
- function testCreate() {
+ public function testCreate() {
$field_storage_definition = [
'field_name' => 'field_2',
'entity_type' => 'entity_test',
@@ -186,7 +186,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
* This behavior is needed to allow field storage creation within updates,
* since plugin classes (and thus the field type schema) cannot be accessed.
*/
- function testCreateWithExplicitSchema() {
+ public function testCreateWithExplicitSchema() {
$schema = [
'dummy' => 'foobar'
];
@@ -202,7 +202,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
/**
* Tests reading field storage definitions.
*/
- function testRead() {
+ public function testRead() {
$field_storage_definition = [
'field_name' => 'field_1',
'entity_type' => 'entity_test',
@@ -234,7 +234,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
/**
* Test creation of indexes on data column.
*/
- function testIndexes() {
+ public function testIndexes() {
// Check that indexes specified by the field type are used by default.
$field_storage = FieldStorageConfig::create([
'field_name' => 'field_1',
@@ -284,7 +284,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
/**
* Test the deletion of a field storage.
*/
- function testDelete() {
+ public function testDelete() {
// TODO: Also test deletion of the data stored in the field ?
// Create two fields (so we can test that only one is deleted).
@@ -363,7 +363,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
}
}
- function testUpdateFieldType() {
+ public function testUpdateFieldType() {
$field_storage = FieldStorageConfig::create([
'field_name' => 'field_type',
'entity_type' => 'entity_test',
@@ -384,7 +384,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
/**
* Test updating a field storage.
*/
- function testUpdate() {
+ public function testUpdate() {
// Create a field with a defined cardinality, so that we can ensure it's
// respected. Since cardinality enforcement is consistent across database
// systems, it makes a good test case.
@@ -426,7 +426,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
/**
* Test field type modules forbidding an update.
*/
- function testUpdateForbid() {
+ public function testUpdateForbid() {
$field_storage = FieldStorageConfig::create([
'field_name' => 'forbidden',
'entity_type' => 'entity_test',
diff --git a/core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php b/core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php
index fe46a05..32b2964 100644
--- a/core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php
@@ -17,7 +17,7 @@ class FieldTypePluginManagerTest extends FieldKernelTestBase {
/**
* Tests the default settings convenience methods.
*/
- function testDefaultSettings() {
+ public function testDefaultSettings() {
$field_type_manager = \Drupal::service('plugin.manager.field.field_type');
foreach (['test_field', 'shape', 'hidden_test_field'] as $type) {
$definition = $field_type_manager->getDefinition($type);
diff --git a/core/modules/field/tests/src/Kernel/FieldValidationTest.php b/core/modules/field/tests/src/Kernel/FieldValidationTest.php
index 5eac773..92d3397 100644
--- a/core/modules/field/tests/src/Kernel/FieldValidationTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldValidationTest.php
@@ -42,7 +42,7 @@ class FieldValidationTest extends FieldKernelTestBase {
/**
* Tests that the number of values is validated against the field cardinality.
*/
- function testCardinalityConstraint() {
+ public function testCardinalityConstraint() {
$cardinality = $this->fieldTestData->field_storage->getCardinality();
$entity = $this->entity;
@@ -62,7 +62,7 @@ class FieldValidationTest extends FieldKernelTestBase {
/**
* Tests that constraints defined by the field type are validated.
*/
- function testFieldConstraints() {
+ public function testFieldConstraints() {
$cardinality = $this->fieldTestData->field_storage->getCardinality();
$entity = $this->entity;
diff --git a/core/modules/field/tests/src/Kernel/TranslationTest.php b/core/modules/field/tests/src/Kernel/TranslationTest.php
index f1fffe6..124fd94 100644
--- a/core/modules/field/tests/src/Kernel/TranslationTest.php
+++ b/core/modules/field/tests/src/Kernel/TranslationTest.php
@@ -106,7 +106,7 @@ class TranslationTest extends FieldKernelTestBase {
/**
* Test translatable fields storage/retrieval.
*/
- function testTranslatableFieldSaveLoad() {
+ public function testTranslatableFieldSaveLoad() {
// Enable field translations for nodes.
field_test_entity_info_translatable('node', TRUE);
$entity_type = \Drupal::entityManager()->getDefinition('node');
diff --git a/core/modules/field/tests/src/Kernel/WidgetPluginManagerTest.php b/core/modules/field/tests/src/Kernel/WidgetPluginManagerTest.php
index 47edb9f..de6f39b 100644
--- a/core/modules/field/tests/src/Kernel/WidgetPluginManagerTest.php
+++ b/core/modules/field/tests/src/Kernel/WidgetPluginManagerTest.php
@@ -13,7 +13,7 @@ class WidgetPluginManagerTest extends FieldKernelTestBase {
/**
* Tests that the widget definitions alter hook works.
*/
- function testWidgetDefinitionAlter() {
+ public function testWidgetDefinitionAlter() {
$widget_definition = \Drupal::service('plugin.manager.field.widget')->getDefinition('test_field_widget_multiple');
// Test if hook_field_widget_info_alter is being called.
diff --git a/core/modules/field_ui/src/Tests/FieldUIDeleteTest.php b/core/modules/field_ui/src/Tests/FieldUIDeleteTest.php
index 542a99c..2704157 100644
--- a/core/modules/field_ui/src/Tests/FieldUIDeleteTest.php
+++ b/core/modules/field_ui/src/Tests/FieldUIDeleteTest.php
@@ -48,7 +48,7 @@ class FieldUIDeleteTest extends WebTestBase {
/**
* Tests that deletion removes field storages and fields as expected.
*/
- function testDeleteField() {
+ public function testDeleteField() {
$field_label = $this->randomMachineName();
$field_name_input = 'test';
$field_name = 'field_test';
diff --git a/core/modules/field_ui/src/Tests/ManageDisplayTest.php b/core/modules/field_ui/src/Tests/ManageDisplayTest.php
index 3f6c480..7275478 100644
--- a/core/modules/field_ui/src/Tests/ManageDisplayTest.php
+++ b/core/modules/field_ui/src/Tests/ManageDisplayTest.php
@@ -60,7 +60,7 @@ class ManageDisplayTest extends WebTestBase {
/**
* Tests formatter settings.
*/
- function testFormatterUI() {
+ public function testFormatterUI() {
$manage_fields = 'admin/structure/types/manage/' . $this->type;
$manage_display = $manage_fields . '/display';
@@ -327,7 +327,7 @@ class ManageDisplayTest extends WebTestBase {
/**
* Tests switching view modes to use custom or 'default' settings'.
*/
- function testViewModeCustom() {
+ public function testViewModeCustom() {
// Create a field, and a node with some data for the field.
$this->fieldUIAddNewField('admin/structure/types/manage/' . $this->type, 'test', 'Test field');
\Drupal::entityManager()->clearCachedFieldDefinitions();
@@ -410,7 +410,7 @@ class ManageDisplayTest extends WebTestBase {
/**
* Tests that fields with no explicit display settings do not break.
*/
- function testNonInitializedFields() {
+ public function testNonInitializedFields() {
// Create a test field.
$this->fieldUIAddNewField('admin/structure/types/manage/' . $this->type, 'test', 'Test');
@@ -423,7 +423,7 @@ class ManageDisplayTest extends WebTestBase {
/**
* Tests hiding the view modes fieldset when there's only one available.
*/
- function testSingleViewMode() {
+ public function testSingleViewMode() {
$this->drupalGet('admin/structure/taxonomy/manage/' . $this->vocabulary . '/display');
$this->assertNoText('Use custom display settings for the following view modes', 'Custom display settings fieldset found.');
@@ -434,7 +434,7 @@ class ManageDisplayTest extends WebTestBase {
/**
* Tests that a message is shown when there are no fields.
*/
- function testNoFieldsDisplayOverview() {
+ public function testNoFieldsDisplayOverview() {
// Create a fresh content type without any fields.
NodeType::create([
'type' => 'no_fields',
@@ -460,7 +460,7 @@ class ManageDisplayTest extends WebTestBase {
* @return
* TRUE on pass, FALSE on fail.
*/
- function assertNodeViewText(EntityInterface $node, $view_mode, $text, $message) {
+ public function assertNodeViewText(EntityInterface $node, $view_mode, $text, $message) {
return $this->assertNodeViewTextHelper($node, $view_mode, $text, $message, FALSE);
}
@@ -478,7 +478,7 @@ class ManageDisplayTest extends WebTestBase {
* @return
* TRUE on pass, FALSE on fail.
*/
- function assertNodeViewNoText(EntityInterface $node, $view_mode, $text, $message) {
+ public function assertNodeViewNoText(EntityInterface $node, $view_mode, $text, $message) {
return $this->assertNodeViewTextHelper($node, $view_mode, $text, $message, TRUE);
}
@@ -502,7 +502,7 @@ class ManageDisplayTest extends WebTestBase {
* @return
* TRUE on pass, FALSE on fail.
*/
- function assertNodeViewTextHelper(EntityInterface $node, $view_mode, $text, $message, $not_exists) {
+ public function assertNodeViewTextHelper(EntityInterface $node, $view_mode, $text, $message, $not_exists) {
// Make sure caches on the tester side are refreshed after changes
// submitted on the tested side.
\Drupal::entityManager()->clearCachedFieldDefinitions();
diff --git a/core/modules/field_ui/src/Tests/ManageFieldsTest.php b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
index 6be1366..d08ab03 100644
--- a/core/modules/field_ui/src/Tests/ManageFieldsTest.php
+++ b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
@@ -111,7 +111,7 @@ class ManageFieldsTest extends WebTestBase {
* In order to act on the same fields, and not create the fields over and over
* again the following tests create, update and delete the same fields.
*/
- function testCRUDFields() {
+ public function testCRUDFields() {
$this->manageFieldsPage();
$this->createField();
$this->updateField();
@@ -128,7 +128,7 @@ class ManageFieldsTest extends WebTestBase {
* @param string $type
* (optional) The name of a content type.
*/
- function manageFieldsPage($type = '') {
+ public function manageFieldsPage($type = '') {
$type = empty($type) ? $this->contentType : $type;
$this->drupalGet('admin/structure/types/manage/' . $type . '/fields');
// Check all table columns.
@@ -178,7 +178,7 @@ class ManageFieldsTest extends WebTestBase {
* @todo Assert properties can bet set in the form and read back in
* $field_storage and $fields.
*/
- function createField() {
+ public function createField() {
// Create a test field.
$this->fieldUIAddNewField('admin/structure/types/manage/' . $this->contentType, $this->fieldNameInput, $this->fieldLabel);
}
@@ -186,7 +186,7 @@ class ManageFieldsTest extends WebTestBase {
/**
* Tests editing an existing field.
*/
- function updateField() {
+ public function updateField() {
$field_id = 'node.' . $this->contentType . '.' . $this->fieldName;
// Go to the field edit page.
$this->drupalGet('admin/structure/types/manage/' . $this->contentType . '/fields/' . $field_id . '/storage');
@@ -217,7 +217,7 @@ class ManageFieldsTest extends WebTestBase {
/**
* Tests adding an existing field in another content type.
*/
- function addExistingField() {
+ public function addExistingField() {
// Check "Re-use existing field" appears.
$this->drupalGet('admin/structure/types/manage/page/fields/add-field');
$this->assertRaw(t('Re-use an existing field'), '"Re-use existing field" was found.');
@@ -238,7 +238,7 @@ class ManageFieldsTest extends WebTestBase {
* We do not test if the number can be submitted with anything else than a
* numeric value. That is tested already in FormTest::testNumber().
*/
- function cardinalitySettings() {
+ public function cardinalitySettings() {
$field_edit_path = 'admin/structure/types/manage/article/fields/node.article.body/storage';
// Assert the cardinality other field cannot be empty when cardinality is
@@ -364,7 +364,7 @@ class ManageFieldsTest extends WebTestBase {
* @param $entity_type
* The entity type for the field.
*/
- function assertFieldSettings($bundle, $field_name, $string = 'dummy test string', $entity_type = 'node') {
+ public function assertFieldSettings($bundle, $field_name, $string = 'dummy test string', $entity_type = 'node') {
// Assert field storage settings.
$field_storage = FieldStorageConfig::loadByName($entity_type, $field_name);
$this->assertTrue($field_storage->getSetting('test_field_storage_setting') == $string, 'Field storage settings were found.');
@@ -377,7 +377,7 @@ class ManageFieldsTest extends WebTestBase {
/**
* Tests that the 'field_prefix' setting works on Field UI.
*/
- function testFieldPrefix() {
+ public function testFieldPrefix() {
// Change default field prefix.
$field_prefix = strtolower($this->randomMachineName(10));
$this->config('field_ui.settings')->set('field_prefix', $field_prefix)->save();
@@ -403,7 +403,7 @@ class ManageFieldsTest extends WebTestBase {
/**
* Tests that default value is correctly validated and saved.
*/
- function testDefaultValue() {
+ public function testDefaultValue() {
// Create a test field storage and field.
$field_name = 'test';
FieldStorageConfig::create([
@@ -479,7 +479,7 @@ class ManageFieldsTest extends WebTestBase {
/**
* Tests that deletion removes field storages and fields as expected.
*/
- function testDeleteField() {
+ public function testDeleteField() {
// Create a new field.
$bundle_path1 = 'admin/structure/types/manage/' . $this->contentType;
$this->fieldUIAddNewField($bundle_path1, $this->fieldNameInput, $this->fieldLabel);
@@ -513,7 +513,7 @@ class ManageFieldsTest extends WebTestBase {
/**
* Tests that Field UI respects disallowed field names.
*/
- function testDisallowedFieldNames() {
+ public function testDisallowedFieldNames() {
// Reset the field prefix so we can test properly.
$this->config('field_ui.settings')->set('field_prefix', '')->save();
@@ -539,7 +539,7 @@ class ManageFieldsTest extends WebTestBase {
/**
* Tests that Field UI respects locked fields.
*/
- function testLockedField() {
+ public function testLockedField() {
// Create a locked field and attach it to a bundle. We need to do this
// programmatically as there's no way to create a locked field through UI.
$field_name = strtolower($this->randomMachineName(8));
@@ -576,7 +576,7 @@ class ManageFieldsTest extends WebTestBase {
/**
* Tests that Field UI respects the 'no_ui' flag in the field type definition.
*/
- function testHiddenFields() {
+ public function testHiddenFields() {
// Check that the field type is not available in the 'add new field' row.
$this->drupalGet('admin/structure/types/manage/' . $this->contentType . '/fields/add-field');
$this->assertFalse($this->xpath('//select[@id="edit-new-storage-type"]//option[@value="hidden_test_field"]'), "The 'add new field' select respects field types 'no_ui' property.");
@@ -627,7 +627,7 @@ class ManageFieldsTest extends WebTestBase {
/**
* Tests that a duplicate field name is caught by validation.
*/
- function testDuplicateFieldName() {
+ public function testDuplicateFieldName() {
// field_tags already exists, so we're expecting an error when trying to
// create a new field with the same name.
$edit = [
@@ -659,7 +659,7 @@ class ManageFieldsTest extends WebTestBase {
/**
* Tests that deletion removes field storages and fields as expected for a term.
*/
- function testDeleteTaxonomyField() {
+ public function testDeleteTaxonomyField() {
// Create a new field.
$bundle_path = 'admin/structure/taxonomy/manage/tags/overview';
@@ -677,7 +677,7 @@ class ManageFieldsTest extends WebTestBase {
/**
* Tests that help descriptions render valid HTML.
*/
- function testHelpDescriptions() {
+ public function testHelpDescriptions() {
// Create an image field
FieldStorageConfig::create([
'field_name' => 'field_image',
@@ -717,7 +717,7 @@ class ManageFieldsTest extends WebTestBase {
/**
* Tests that the field list administration page operates correctly.
*/
- function fieldListAdminPage() {
+ public function fieldListAdminPage() {
$this->drupalGet('admin/reports/fields');
$this->assertText($this->fieldName, 'Field name is displayed in field list.');
$this->assertTrue($this->assertLinkByHref('admin/structure/types/manage/' . $this->contentType . '/fields'), 'Link to content type using field is displayed in field list.');
diff --git a/core/modules/field_ui/tests/src/Functional/FieldUIIndentationTest.php b/core/modules/field_ui/tests/src/Functional/FieldUIIndentationTest.php
index 3eb90d0..1f66c9a 100644
--- a/core/modules/field_ui/tests/src/Functional/FieldUIIndentationTest.php
+++ b/core/modules/field_ui/tests/src/Functional/FieldUIIndentationTest.php
@@ -33,7 +33,7 @@ class FieldUIIndentationTest extends BrowserTestBase {
}
- function testIndentation() {
+ public function testIndentation() {
$this->drupalGet('admin/structure/types/manage/page/display');
$this->assertRaw('js-indentation indentation');
}
diff --git a/core/modules/file/src/Tests/DownloadTest.php b/core/modules/file/src/Tests/DownloadTest.php
index bb871d4..c5189fa 100644
--- a/core/modules/file/src/Tests/DownloadTest.php
+++ b/core/modules/file/src/Tests/DownloadTest.php
@@ -17,7 +17,7 @@ class DownloadTest extends FileManagedTestBase {
/**
* Test the public file transfer system.
*/
- function testPublicFileTransfer() {
+ public function testPublicFileTransfer() {
// Test generating a URL to a created file.
$file = $this->createFile();
$url = file_create_url($file->getFileUri());
@@ -86,7 +86,7 @@ class DownloadTest extends FileManagedTestBase {
/**
* Test file_create_url().
*/
- function testFileCreateUrl() {
+ public function testFileCreateUrl() {
// Tilde (~) is excluded from this test because it is encoded by
// rawurlencode() in PHP 5.2 but not in PHP 5.3, as per RFC 3986.
diff --git a/core/modules/file/src/Tests/FileFieldDisplayTest.php b/core/modules/file/src/Tests/FileFieldDisplayTest.php
index f78cd7d..1b7e534 100644
--- a/core/modules/file/src/Tests/FileFieldDisplayTest.php
+++ b/core/modules/file/src/Tests/FileFieldDisplayTest.php
@@ -15,7 +15,7 @@ class FileFieldDisplayTest extends FileFieldTestBase {
/**
* Tests normal formatter display on node display.
*/
- function testNodeDisplay() {
+ public function testNodeDisplay() {
$field_name = strtolower($this->randomMachineName());
$type_name = 'article';
$field_storage_settings = [
@@ -110,7 +110,7 @@ class FileFieldDisplayTest extends FileFieldTestBase {
/**
* Tests default display of File Field.
*/
- function testDefaultFileFieldDisplay() {
+ public function testDefaultFileFieldDisplay() {
$field_name = strtolower($this->randomMachineName());
$type_name = 'article';
$field_storage_settings = [
@@ -137,7 +137,7 @@ class FileFieldDisplayTest extends FileFieldTestBase {
/**
* Tests description toggle for field instance configuration.
*/
- function testDescToggle() {
+ public function testDescToggle() {
$type_name = 'test';
$field_type = 'file';
$field_name = strtolower($this->randomMachineName());
diff --git a/core/modules/file/src/Tests/FileFieldPathTest.php b/core/modules/file/src/Tests/FileFieldPathTest.php
index f2498b5..300b92c 100644
--- a/core/modules/file/src/Tests/FileFieldPathTest.php
+++ b/core/modules/file/src/Tests/FileFieldPathTest.php
@@ -13,7 +13,7 @@ class FileFieldPathTest extends FileFieldTestBase {
/**
* Tests the normal formatter display on node display.
*/
- function testUploadPath() {
+ public function testUploadPath() {
/** @var \Drupal\node\NodeStorageInterface $node_storage */
$node_storage = $this->container->get('entity.manager')->getStorage('node');
$field_name = strtolower($this->randomMachineName());
@@ -79,7 +79,7 @@ class FileFieldPathTest extends FileFieldTestBase {
* @param string $message
* The message to display with this assertion.
*/
- function assertPathMatch($expected_path, $actual_path, $message) {
+ public function assertPathMatch($expected_path, $actual_path, $message) {
// Strip off the extension of the expected path to allow for _0, _1, etc.
// suffixes when the file hits a duplicate name.
$pos = strrpos($expected_path, '.');
diff --git a/core/modules/file/src/Tests/FileFieldRSSContentTest.php b/core/modules/file/src/Tests/FileFieldRSSContentTest.php
index e16e82e..af2b5f2 100644
--- a/core/modules/file/src/Tests/FileFieldRSSContentTest.php
+++ b/core/modules/file/src/Tests/FileFieldRSSContentTest.php
@@ -21,7 +21,7 @@ class FileFieldRSSContentTest extends FileFieldTestBase {
/**
* Tests RSS enclosure formatter display for RSS feeds.
*/
- function testFileFieldRSSContent() {
+ public function testFileFieldRSSContent() {
$node_storage = $this->container->get('entity.manager')->getStorage('node');
$field_name = strtolower($this->randomMachineName());
$type_name = 'article';
diff --git a/core/modules/file/src/Tests/FileFieldRevisionTest.php b/core/modules/file/src/Tests/FileFieldRevisionTest.php
index ef79041..7de496f 100644
--- a/core/modules/file/src/Tests/FileFieldRevisionTest.php
+++ b/core/modules/file/src/Tests/FileFieldRevisionTest.php
@@ -21,7 +21,7 @@ class FileFieldRevisionTest extends FileFieldTestBase {
* - When the last revision that uses a file is deleted, the original file
* should be deleted also.
*/
- function testRevisions() {
+ public function testRevisions() {
$node_storage = $this->container->get('entity.manager')->getStorage('node');
$type_name = 'article';
$field_name = strtolower($this->randomMachineName());
diff --git a/core/modules/file/src/Tests/FileFieldTestBase.php b/core/modules/file/src/Tests/FileFieldTestBase.php
index a9c96f3..73cc96a 100644
--- a/core/modules/file/src/Tests/FileFieldTestBase.php
+++ b/core/modules/file/src/Tests/FileFieldTestBase.php
@@ -42,7 +42,7 @@ abstract class FileFieldTestBase extends WebTestBase {
*
* @return \Drupal\file\FileInterface
*/
- function getTestFile($type_name, $size = NULL) {
+ public function getTestFile($type_name, $size = NULL) {
// Get a file to upload.
$file = current($this->drupalGetTestFiles($type_name, $size));
@@ -56,7 +56,7 @@ abstract class FileFieldTestBase extends WebTestBase {
/**
* Retrieves the fid of the last inserted file.
*/
- function getLastFileId() {
+ public function getLastFileId() {
return (int) db_query('SELECT MAX(fid) FROM {file_managed}')->fetchField();
}
@@ -76,7 +76,7 @@ abstract class FileFieldTestBase extends WebTestBase {
* @param array $widget_settings
* A list of widget settings that will be added to the widget defaults.
*/
- function createFileField($name, $entity_type, $bundle, $storage_settings = [], $field_settings = [], $widget_settings = []) {
+ public function createFileField($name, $entity_type, $bundle, $storage_settings = [], $field_settings = [], $widget_settings = []) {
$field_storage = FieldStorageConfig::create([
'entity_type' => $entity_type,
'field_name' => $name,
@@ -104,7 +104,7 @@ abstract class FileFieldTestBase extends WebTestBase {
* @param array $widget_settings
* A list of widget settings that will be added to the widget defaults.
*/
- function attachFileField($name, $entity_type, $bundle, $field_settings = [], $widget_settings = []) {
+ public function attachFileField($name, $entity_type, $bundle, $field_settings = [], $widget_settings = []) {
$field = [
'field_name' => $name,
'label' => $name,
@@ -133,7 +133,7 @@ abstract class FileFieldTestBase extends WebTestBase {
/**
* Updates an existing file field with new settings.
*/
- function updateFileField($name, $type_name, $field_settings = [], $widget_settings = []) {
+ public function updateFileField($name, $type_name, $field_settings = [], $widget_settings = []) {
$field = FieldConfig::loadByName('node', $type_name, $name);
$field->setSettings(array_merge($field->getSettings(), $field_settings));
$field->save();
@@ -163,7 +163,7 @@ abstract class FileFieldTestBase extends WebTestBase {
* @return int
* The node id.
*/
- function uploadNodeFile(FileInterface $file, $field_name, $nid_or_type, $new_revision = TRUE, array $extras = []) {
+ public function uploadNodeFile(FileInterface $file, $field_name, $nid_or_type, $new_revision = TRUE, array $extras = []) {
return $this->uploadNodeFiles([$file], $field_name, $nid_or_type, $new_revision, $extras);
}
@@ -185,7 +185,7 @@ abstract class FileFieldTestBase extends WebTestBase {
* @return int
* The node id.
*/
- function uploadNodeFiles(array $files, $field_name, $nid_or_type, $new_revision = TRUE, array $extras = []) {
+ public function uploadNodeFiles(array $files, $field_name, $nid_or_type, $new_revision = TRUE, array $extras = []) {
$edit = [
'title[0][value]' => $this->randomMachineName(),
'revision' => (string) (int) $new_revision,
@@ -237,7 +237,7 @@ abstract class FileFieldTestBase extends WebTestBase {
*
* Note that if replacing a file, it must first be removed then added again.
*/
- function removeNodeFile($nid, $new_revision = TRUE) {
+ public function removeNodeFile($nid, $new_revision = TRUE) {
$edit = [
'revision' => (string) (int) $new_revision,
];
@@ -249,7 +249,7 @@ abstract class FileFieldTestBase extends WebTestBase {
/**
* Replaces a file within a node.
*/
- function replaceNodeFile($file, $field_name, $nid, $new_revision = TRUE) {
+ public function replaceNodeFile($file, $field_name, $nid, $new_revision = TRUE) {
$edit = [
'files[' . $field_name . '_0]' => drupal_realpath($file->getFileUri()),
'revision' => (string) (int) $new_revision,
@@ -262,7 +262,7 @@ abstract class FileFieldTestBase extends WebTestBase {
/**
* Asserts that a file exists physically on disk.
*/
- function assertFileExists($file, $message = NULL) {
+ public function assertFileExists($file, $message = NULL) {
$message = isset($message) ? $message : format_string('File %file exists on the disk.', ['%file' => $file->getFileUri()]);
$this->assertTrue(is_file($file->getFileUri()), $message);
}
@@ -270,7 +270,7 @@ abstract class FileFieldTestBase extends WebTestBase {
/**
* Asserts that a file exists in the database.
*/
- function assertFileEntryExists($file, $message = NULL) {
+ public function assertFileEntryExists($file, $message = NULL) {
$this->container->get('entity.manager')->getStorage('file')->resetCache();
$db_file = File::load($file->id());
$message = isset($message) ? $message : format_string('File %file exists in database at the correct path.', ['%file' => $file->getFileUri()]);
@@ -280,7 +280,7 @@ abstract class FileFieldTestBase extends WebTestBase {
/**
* Asserts that a file does not exist on disk.
*/
- function assertFileNotExists($file, $message = NULL) {
+ public function assertFileNotExists($file, $message = NULL) {
$message = isset($message) ? $message : format_string('File %file exists on the disk.', ['%file' => $file->getFileUri()]);
$this->assertFalse(is_file($file->getFileUri()), $message);
}
@@ -288,7 +288,7 @@ abstract class FileFieldTestBase extends WebTestBase {
/**
* Asserts that a file does not exist in the database.
*/
- function assertFileEntryNotExists($file, $message) {
+ public function assertFileEntryNotExists($file, $message) {
$this->container->get('entity.manager')->getStorage('file')->resetCache();
$message = isset($message) ? $message : format_string('File %file exists in database at the correct path.', ['%file' => $file->getFileUri()]);
$this->assertFalse(File::load($file->id()), $message);
@@ -297,7 +297,7 @@ abstract class FileFieldTestBase extends WebTestBase {
/**
* Asserts that a file's status is set to permanent in the database.
*/
- function assertFileIsPermanent(FileInterface $file, $message = NULL) {
+ public function assertFileIsPermanent(FileInterface $file, $message = NULL) {
$message = isset($message) ? $message : format_string('File %file is permanent.', ['%file' => $file->getFileUri()]);
$this->assertTrue($file->isPermanent(), $message);
}
diff --git a/core/modules/file/src/Tests/FileFieldValidateTest.php b/core/modules/file/src/Tests/FileFieldValidateTest.php
index 0f8b1f1..5ddcdde 100644
--- a/core/modules/file/src/Tests/FileFieldValidateTest.php
+++ b/core/modules/file/src/Tests/FileFieldValidateTest.php
@@ -17,7 +17,7 @@ class FileFieldValidateTest extends FileFieldTestBase {
/**
* Tests the required property on file fields.
*/
- function testRequired() {
+ public function testRequired() {
$node_storage = $this->container->get('entity.manager')->getStorage('node');
$type_name = 'article';
$field_name = strtolower($this->randomMachineName());
@@ -65,7 +65,7 @@ class FileFieldValidateTest extends FileFieldTestBase {
/**
* Tests the max file size validator.
*/
- function testFileMaxSize() {
+ public function testFileMaxSize() {
$node_storage = $this->container->get('entity.manager')->getStorage('node');
$type_name = 'article';
$field_name = strtolower($this->randomMachineName());
@@ -114,7 +114,7 @@ class FileFieldValidateTest extends FileFieldTestBase {
/**
* Tests file extension checking.
*/
- function testFileExtension() {
+ public function testFileExtension() {
$node_storage = $this->container->get('entity.manager')->getStorage('node');
$type_name = 'article';
$field_name = strtolower($this->randomMachineName());
diff --git a/core/modules/file/src/Tests/FileFieldWidgetTest.php b/core/modules/file/src/Tests/FileFieldWidgetTest.php
index f132d70..ddfd8f4 100644
--- a/core/modules/file/src/Tests/FileFieldWidgetTest.php
+++ b/core/modules/file/src/Tests/FileFieldWidgetTest.php
@@ -73,7 +73,7 @@ class FileFieldWidgetTest extends FileFieldTestBase {
/**
* Tests upload and remove buttons for a single-valued File field.
*/
- function testSingleValuedWidget() {
+ public function testSingleValuedWidget() {
$node_storage = $this->container->get('entity.manager')->getStorage('node');
$type_name = 'article';
$field_name = strtolower($this->randomMachineName());
@@ -131,7 +131,7 @@ class FileFieldWidgetTest extends FileFieldTestBase {
/**
* Tests upload and remove buttons for multiple multi-valued File fields.
*/
- function testMultiValuedWidget() {
+ public function testMultiValuedWidget() {
$node_storage = $this->container->get('entity.manager')->getStorage('node');
$type_name = 'article';
// Use explicit names instead of random names for those fields, because of a
@@ -301,7 +301,7 @@ class FileFieldWidgetTest extends FileFieldTestBase {
/**
* Tests a file field with a "Private files" upload destination setting.
*/
- function testPrivateFileSetting() {
+ public function testPrivateFileSetting() {
$node_storage = $this->container->get('entity.manager')->getStorage('node');
// Grant the admin user required permissions.
user_role_grant_permissions($this->adminUser->roles[0]->target_id, ['administer node fields']);
@@ -341,7 +341,7 @@ class FileFieldWidgetTest extends FileFieldTestBase {
/**
* Tests that download restrictions on private files work on comments.
*/
- function testPrivateFileComment() {
+ public function testPrivateFileComment() {
$user = $this->drupalCreateUser(['access comments']);
// Grant the admin user required comment permissions.
@@ -413,7 +413,7 @@ class FileFieldWidgetTest extends FileFieldTestBase {
/**
* Tests validation with the Upload button.
*/
- function testWidgetValidation() {
+ public function testWidgetValidation() {
$type_name = 'article';
$field_name = strtolower($this->randomMachineName());
$this->createFileField($field_name, 'node', $type_name);
diff --git a/core/modules/file/src/Tests/FileListingTest.php b/core/modules/file/src/Tests/FileListingTest.php
index e163529..e348949 100644
--- a/core/modules/file/src/Tests/FileListingTest.php
+++ b/core/modules/file/src/Tests/FileListingTest.php
@@ -59,7 +59,7 @@ class FileListingTest extends FileFieldTestBase {
/**
* Tests file overview with different user permissions.
*/
- function testFileListingPages() {
+ public function testFileListingPages() {
$file_usage = $this->container->get('file.usage');
// Users without sufficient permissions should not see file listing.
$this->drupalLogin($this->baseUser);
@@ -148,7 +148,7 @@ class FileListingTest extends FileFieldTestBase {
/**
* Tests file listing usage page for entities with no canonical link template.
*/
- function testFileListingUsageNoLink() {
+ public function testFileListingUsageNoLink() {
// Login with user with right permissions and test listing.
$this->drupalLogin($this->adminUser);
diff --git a/core/modules/file/src/Tests/FileManagedFileElementTest.php b/core/modules/file/src/Tests/FileManagedFileElementTest.php
index 994803e..8abff25 100644
--- a/core/modules/file/src/Tests/FileManagedFileElementTest.php
+++ b/core/modules/file/src/Tests/FileManagedFileElementTest.php
@@ -13,7 +13,7 @@ class FileManagedFileElementTest extends FileFieldTestBase {
/**
* Tests the managed_file element type.
*/
- function testManagedFile() {
+ public function testManagedFile() {
// Check that $element['#size'] is passed to the child upload element.
$this->drupalGet('file/test');
$this->assertFieldByXpath('//input[@name="files[nested_file]" and @size="13"]', NULL, 'The custom #size attribute is passed to the child upload element.');
diff --git a/core/modules/file/src/Tests/FileManagedTestBase.php b/core/modules/file/src/Tests/FileManagedTestBase.php
index 8bd85bd..879e1c4 100644
--- a/core/modules/file/src/Tests/FileManagedTestBase.php
+++ b/core/modules/file/src/Tests/FileManagedTestBase.php
@@ -36,7 +36,7 @@ abstract class FileManagedTestBase extends WebTestBase {
* An array of strings containing with the hook name; for example, 'load',
* 'save', 'insert', etc.
*/
- function assertFileHooksCalled($expected) {
+ public function assertFileHooksCalled($expected) {
\Drupal::state()->resetCache();
// Determine which hooks were called.
@@ -71,7 +71,7 @@ abstract class FileManagedTestBase extends WebTestBase {
* @param string|null $message
* Optional translated string message.
*/
- function assertFileHookCalled($hook, $expected_count = 1, $message = NULL) {
+ public function assertFileHookCalled($hook, $expected_count = 1, $message = NULL) {
$actual_count = count(file_test_get_calls($hook));
if (!isset($message)) {
@@ -96,7 +96,7 @@ abstract class FileManagedTestBase extends WebTestBase {
* @param \Drupal\file\FileInterface $after
* File object to compare.
*/
- function assertFileUnchanged(FileInterface $before, FileInterface $after) {
+ public function assertFileUnchanged(FileInterface $before, FileInterface $after) {
$this->assertEqual($before->id(), $after->id(), t('File id is the same: %file1 == %file2.', ['%file1' => $before->id(), '%file2' => $after->id()]), 'File unchanged');
$this->assertEqual($before->getOwner()->id(), $after->getOwner()->id(), t('File owner is the same: %file1 == %file2.', ['%file1' => $before->getOwner()->id(), '%file2' => $after->getOwner()->id()]), 'File unchanged');
$this->assertEqual($before->getFilename(), $after->getFilename(), t('File name is the same: %file1 == %file2.', ['%file1' => $before->getFilename(), '%file2' => $after->getFilename()]), 'File unchanged');
@@ -114,7 +114,7 @@ abstract class FileManagedTestBase extends WebTestBase {
* @param \Drupal\file\FileInterface $file2
* File object to compare.
*/
- function assertDifferentFile(FileInterface $file1, FileInterface $file2) {
+ public function assertDifferentFile(FileInterface $file1, FileInterface $file2) {
$this->assertNotEqual($file1->id(), $file2->id(), t('Files have different ids: %file1 != %file2.', ['%file1' => $file1->id(), '%file2' => $file2->id()]), 'Different file');
$this->assertNotEqual($file1->getFileUri(), $file2->getFileUri(), t('Files have different paths: %file1 != %file2.', ['%file1' => $file1->getFileUri(), '%file2' => $file2->getFileUri()]), 'Different file');
}
@@ -127,7 +127,7 @@ abstract class FileManagedTestBase extends WebTestBase {
* @param \Drupal\file\FileInterface $file2
* File object to compare.
*/
- function assertSameFile(FileInterface $file1, FileInterface $file2) {
+ public function assertSameFile(FileInterface $file1, FileInterface $file2) {
$this->assertEqual($file1->id(), $file2->id(), t('Files have the same ids: %file1 == %file2.', ['%file1' => $file1->id(), '%file2-fid' => $file2->id()]), 'Same file');
$this->assertEqual($file1->getFileUri(), $file2->getFileUri(), t('Files have the same path: %file1 == %file2.', ['%file1' => $file1->getFileUri(), '%file2' => $file2->getFileUri()]), 'Same file');
}
@@ -148,7 +148,7 @@ abstract class FileManagedTestBase extends WebTestBase {
* @return \Drupal\file\FileInterface
* File entity.
*/
- function createFile($filepath = NULL, $contents = NULL, $scheme = NULL) {
+ public function createFile($filepath = NULL, $contents = NULL, $scheme = NULL) {
// Don't count hook invocations caused by creating the file.
\Drupal::state()->set('file_test.count_hook_invocations', FALSE);
$file = File::create([
@@ -180,7 +180,7 @@ abstract class FileManagedTestBase extends WebTestBase {
* @return string
* File URI.
*/
- function createUri($filepath = NULL, $contents = NULL, $scheme = NULL) {
+ public function createUri($filepath = NULL, $contents = NULL, $scheme = NULL) {
if (!isset($filepath)) {
// Prefix with non-latin characters to ensure that all file-related
// tests work with international filenames.
diff --git a/core/modules/file/src/Tests/FilePrivateTest.php b/core/modules/file/src/Tests/FilePrivateTest.php
index 9ed4a9e..3c9776f 100644
--- a/core/modules/file/src/Tests/FilePrivateTest.php
+++ b/core/modules/file/src/Tests/FilePrivateTest.php
@@ -31,7 +31,7 @@ class FilePrivateTest extends FileFieldTestBase {
/**
* Tests file access for file uploaded to a private node.
*/
- function testPrivateFile() {
+ public function testPrivateFile() {
$node_storage = $this->container->get('entity.manager')->getStorage('node');
$type_name = 'article';
$field_name = strtolower($this->randomMachineName());
diff --git a/core/modules/file/src/Tests/FileTokenReplaceTest.php b/core/modules/file/src/Tests/FileTokenReplaceTest.php
index 143ded4..5bfa07b 100644
--- a/core/modules/file/src/Tests/FileTokenReplaceTest.php
+++ b/core/modules/file/src/Tests/FileTokenReplaceTest.php
@@ -16,7 +16,7 @@ class FileTokenReplaceTest extends FileFieldTestBase {
/**
* Creates a file, then tests the tokens generated from it.
*/
- function testFileTokenReplacement() {
+ public function testFileTokenReplacement() {
$node_storage = $this->container->get('entity.manager')->getStorage('node');
$token_service = \Drupal::token();
$language_interface = \Drupal::languageManager()->getCurrentLanguage();
diff --git a/core/modules/file/src/Tests/SaveUploadTest.php b/core/modules/file/src/Tests/SaveUploadTest.php
index 1407173..a9f69c2 100644
--- a/core/modules/file/src/Tests/SaveUploadTest.php
+++ b/core/modules/file/src/Tests/SaveUploadTest.php
@@ -75,7 +75,7 @@ class SaveUploadTest extends FileManagedTestBase {
/**
* Test the file_save_upload() function.
*/
- function testNormal() {
+ public function testNormal() {
$max_fid_after = db_query('SELECT MAX(fid) AS fid FROM {file_managed}')->fetchField();
$this->assertTrue($max_fid_after > $this->maxFidBefore, 'A new file was created.');
$file1 = File::load($max_fid_after);
@@ -124,7 +124,7 @@ class SaveUploadTest extends FileManagedTestBase {
/**
* Test extension handling.
*/
- function testHandleExtension() {
+ public function testHandleExtension() {
// The file being tested is a .gif which is in the default safe list
// of extensions to allow when the extension validator isn't used. This is
// implicitly tested at the testNormal() test. Here we tell
@@ -185,7 +185,7 @@ class SaveUploadTest extends FileManagedTestBase {
/**
* Test dangerous file handling.
*/
- function testHandleDangerousFile() {
+ public function testHandleDangerousFile() {
$config = $this->config('system.file');
// Allow the .php extension and make sure it gets renamed to .txt for
// safety. Also check to make sure its MIME type was changed.
@@ -228,7 +228,7 @@ class SaveUploadTest extends FileManagedTestBase {
/**
* Test file munge handling.
*/
- function testHandleFileMunge() {
+ public function testHandleFileMunge() {
// Ensure insecure uploads are disabled for this test.
$this->config('system.file')->set('allow_insecure_uploads', 0)->save();
$this->image = file_move($this->image, $this->image->getFileUri() . '.foo.' . $this->imageExtension);
@@ -277,7 +277,7 @@ class SaveUploadTest extends FileManagedTestBase {
/**
* Test renaming when uploading over a file that already exists.
*/
- function testExistingRename() {
+ public function testExistingRename() {
$edit = [
'file_test_replace' => FILE_EXISTS_RENAME,
'files[file_test_upload]' => drupal_realpath($this->image->getFileUri())
@@ -293,7 +293,7 @@ class SaveUploadTest extends FileManagedTestBase {
/**
* Test replacement when uploading over a file that already exists.
*/
- function testExistingReplace() {
+ public function testExistingReplace() {
$edit = [
'file_test_replace' => FILE_EXISTS_REPLACE,
'files[file_test_upload]' => drupal_realpath($this->image->getFileUri())
@@ -309,7 +309,7 @@ class SaveUploadTest extends FileManagedTestBase {
/**
* Test for failure when uploading over a file that already exists.
*/
- function testExistingError() {
+ public function testExistingError() {
$edit = [
'file_test_replace' => FILE_EXISTS_ERROR,
'files[file_test_upload]' => drupal_realpath($this->image->getFileUri())
@@ -325,7 +325,7 @@ class SaveUploadTest extends FileManagedTestBase {
/**
* Test for no failures when not uploading a file.
*/
- function testNoUpload() {
+ public function testNoUpload() {
$this->drupalPostForm('file-test/upload', [], t('Submit'));
$this->assertNoRaw(t('Epic upload FAIL!'), 'Failure message not found.');
}
@@ -333,7 +333,7 @@ class SaveUploadTest extends FileManagedTestBase {
/**
* Tests for log entry on failing destination.
*/
- function testDrupalMovingUploadedFileError() {
+ public function testDrupalMovingUploadedFileError() {
// Create a directory and make it not writable.
$test_directory = 'test_drupal_move_uploaded_file_fail';
drupal_mkdir('temporary://' . $test_directory, 0000);
diff --git a/core/modules/file/tests/file_test/src/StreamWrapper/DummyReadOnlyStreamWrapper.php b/core/modules/file/tests/file_test/src/StreamWrapper/DummyReadOnlyStreamWrapper.php
index c0a7c05..c1c36af 100644
--- a/core/modules/file/tests/file_test/src/StreamWrapper/DummyReadOnlyStreamWrapper.php
+++ b/core/modules/file/tests/file_test/src/StreamWrapper/DummyReadOnlyStreamWrapper.php
@@ -25,7 +25,7 @@ class DummyReadOnlyStreamWrapper extends LocalReadOnlyStream {
return t('Dummy wrapper for simpletest (readonly).');
}
- function getDirectoryPath() {
+ public function getDirectoryPath() {
return \Drupal::service('site.path') . '/files';
}
@@ -34,7 +34,7 @@ class DummyReadOnlyStreamWrapper extends LocalReadOnlyStream {
*
* Return a dummy path for testing.
*/
- function getInternalUri() {
+ public function getInternalUri() {
return '/dummy/example.txt';
}
@@ -43,7 +43,7 @@ class DummyReadOnlyStreamWrapper extends LocalReadOnlyStream {
*
* Return the HTML URI of a public file.
*/
- function getExternalUrl() {
+ public function getExternalUrl() {
return '/dummy/example.txt';
}
diff --git a/core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php b/core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php
index 12019e6..9f18d2a 100644
--- a/core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php
+++ b/core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php
@@ -27,7 +27,7 @@ class DummyRemoteStreamWrapper extends PublicStream {
return t('Dummy wrapper for simpletest (remote).');
}
- function realpath() {
+ public function realpath() {
return FALSE;
}
diff --git a/core/modules/file/tests/file_test/src/StreamWrapper/DummyStreamWrapper.php b/core/modules/file/tests/file_test/src/StreamWrapper/DummyStreamWrapper.php
index 1428300..6ce8424 100644
--- a/core/modules/file/tests/file_test/src/StreamWrapper/DummyStreamWrapper.php
+++ b/core/modules/file/tests/file_test/src/StreamWrapper/DummyStreamWrapper.php
@@ -25,7 +25,7 @@ class DummyStreamWrapper extends LocalStream {
return t('Dummy wrapper for simpletest.');
}
- function getDirectoryPath() {
+ public function getDirectoryPath() {
return \Drupal::service('site.path') . '/files';
}
@@ -34,7 +34,7 @@ class DummyStreamWrapper extends LocalStream {
*
* Return a dummy path for testing.
*/
- function getInternalUri() {
+ public function getInternalUri() {
return '/dummy/example.txt';
}
@@ -43,7 +43,7 @@ class DummyStreamWrapper extends LocalStream {
*
* Return the HTML URI of a public file.
*/
- function getExternalUrl() {
+ public function getExternalUrl() {
return '/dummy/example.txt';
}
diff --git a/core/modules/file/tests/src/Functional/FileFieldTestBase.php b/core/modules/file/tests/src/Functional/FileFieldTestBase.php
index af3747b..9ed447a 100644
--- a/core/modules/file/tests/src/Functional/FileFieldTestBase.php
+++ b/core/modules/file/tests/src/Functional/FileFieldTestBase.php
@@ -39,7 +39,7 @@ abstract class FileFieldTestBase extends BrowserTestBase {
*
* @return \Drupal\file\FileInterface
*/
- function getTestFile($type_name, $size = NULL) {
+ public function getTestFile($type_name, $size = NULL) {
// Get a file to upload.
$file = current($this->drupalGetTestFiles($type_name, $size));
@@ -53,7 +53,7 @@ abstract class FileFieldTestBase extends BrowserTestBase {
/**
* Retrieves the fid of the last inserted file.
*/
- function getLastFileId() {
+ public function getLastFileId() {
return (int) db_query('SELECT MAX(fid) FROM {file_managed}')->fetchField();
}
@@ -73,7 +73,7 @@ abstract class FileFieldTestBase extends BrowserTestBase {
* @param array $widget_settings
* A list of widget settings that will be added to the widget defaults.
*/
- function createFileField($name, $entity_type, $bundle, $storage_settings = [], $field_settings = [], $widget_settings = []) {
+ public function createFileField($name, $entity_type, $bundle, $storage_settings = [], $field_settings = [], $widget_settings = []) {
$field_storage = FieldStorageConfig::create([
'entity_type' => $entity_type,
'field_name' => $name,
@@ -101,7 +101,7 @@ abstract class FileFieldTestBase extends BrowserTestBase {
* @param array $widget_settings
* A list of widget settings that will be added to the widget defaults.
*/
- function attachFileField($name, $entity_type, $bundle, $field_settings = [], $widget_settings = []) {
+ public function attachFileField($name, $entity_type, $bundle, $field_settings = [], $widget_settings = []) {
$field = [
'field_name' => $name,
'label' => $name,
@@ -130,7 +130,7 @@ abstract class FileFieldTestBase extends BrowserTestBase {
/**
* Updates an existing file field with new settings.
*/
- function updateFileField($name, $type_name, $field_settings = [], $widget_settings = []) {
+ public function updateFileField($name, $type_name, $field_settings = [], $widget_settings = []) {
$field = FieldConfig::loadByName('node', $type_name, $name);
$field->setSettings(array_merge($field->getSettings(), $field_settings));
$field->save();
@@ -160,7 +160,7 @@ abstract class FileFieldTestBase extends BrowserTestBase {
* @return int
* The node id.
*/
- function uploadNodeFile(FileInterface $file, $field_name, $nid_or_type, $new_revision = TRUE, array $extras = []) {
+ public function uploadNodeFile(FileInterface $file, $field_name, $nid_or_type, $new_revision = TRUE, array $extras = []) {
return $this->uploadNodeFiles([$file], $field_name, $nid_or_type, $new_revision, $extras);
}
@@ -182,7 +182,7 @@ abstract class FileFieldTestBase extends BrowserTestBase {
* @return int
* The node id.
*/
- function uploadNodeFiles(array $files, $field_name, $nid_or_type, $new_revision = TRUE, array $extras = []) {
+ public function uploadNodeFiles(array $files, $field_name, $nid_or_type, $new_revision = TRUE, array $extras = []) {
$edit = [
'title[0][value]' => $this->randomMachineName(),
'revision' => (string) (int) $new_revision,
@@ -234,7 +234,7 @@ abstract class FileFieldTestBase extends BrowserTestBase {
*
* Note that if replacing a file, it must first be removed then added again.
*/
- function removeNodeFile($nid, $new_revision = TRUE) {
+ public function removeNodeFile($nid, $new_revision = TRUE) {
$edit = [
'revision' => (string) (int) $new_revision,
];
@@ -246,7 +246,7 @@ abstract class FileFieldTestBase extends BrowserTestBase {
/**
* Replaces a file within a node.
*/
- function replaceNodeFile($file, $field_name, $nid, $new_revision = TRUE) {
+ public function replaceNodeFile($file, $field_name, $nid, $new_revision = TRUE) {
$edit = [
'files[' . $field_name . '_0]' => drupal_realpath($file->getFileUri()),
'revision' => (string) (int) $new_revision,
@@ -276,7 +276,7 @@ abstract class FileFieldTestBase extends BrowserTestBase {
/**
* Asserts that a file exists in the database.
*/
- function assertFileEntryExists($file, $message = NULL) {
+ public function assertFileEntryExists($file, $message = NULL) {
$this->container->get('entity.manager')->getStorage('file')->resetCache();
$db_file = File::load($file->id());
$message = isset($message) ? $message : format_string('File %file exists in database at the correct path.', ['%file' => $file->getFileUri()]);
@@ -303,7 +303,7 @@ abstract class FileFieldTestBase extends BrowserTestBase {
/**
* Asserts that a file does not exist in the database.
*/
- function assertFileEntryNotExists($file, $message) {
+ public function assertFileEntryNotExists($file, $message) {
$this->container->get('entity.manager')->getStorage('file')->resetCache();
$message = isset($message) ? $message : format_string('File %file exists in database at the correct path.', ['%file' => $file->getFileUri()]);
$this->assertFalse(File::load($file->id()), $message);
@@ -312,7 +312,7 @@ abstract class FileFieldTestBase extends BrowserTestBase {
/**
* Asserts that a file's status is set to permanent in the database.
*/
- function assertFileIsPermanent(FileInterface $file, $message = NULL) {
+ public function assertFileIsPermanent(FileInterface $file, $message = NULL) {
$message = isset($message) ? $message : format_string('File %file is permanent.', ['%file' => $file->getFileUri()]);
$this->assertTrue($file->isPermanent(), $message);
}
diff --git a/core/modules/file/tests/src/Functional/FileManagedAccessTest.php b/core/modules/file/tests/src/Functional/FileManagedAccessTest.php
index fc6d85c..01419d4 100644
--- a/core/modules/file/tests/src/Functional/FileManagedAccessTest.php
+++ b/core/modules/file/tests/src/Functional/FileManagedAccessTest.php
@@ -14,7 +14,7 @@ class FileManagedAccessTest extends FileManagedTestBase {
/**
* Tests if public file is always accessible.
*/
- function testFileAccess() {
+ public function testFileAccess() {
// Create a new file entity.
$file = File::create([
'uid' => 1,
diff --git a/core/modules/file/tests/src/Functional/FileManagedTestBase.php b/core/modules/file/tests/src/Functional/FileManagedTestBase.php
index 0adbe2c..e0da7d1 100644
--- a/core/modules/file/tests/src/Functional/FileManagedTestBase.php
+++ b/core/modules/file/tests/src/Functional/FileManagedTestBase.php
@@ -33,7 +33,7 @@ abstract class FileManagedTestBase extends BrowserTestBase {
* An array of strings containing with the hook name; for example, 'load',
* 'save', 'insert', etc.
*/
- function assertFileHooksCalled($expected) {
+ public function assertFileHooksCalled($expected) {
\Drupal::state()->resetCache();
// Determine which hooks were called.
@@ -68,7 +68,7 @@ abstract class FileManagedTestBase extends BrowserTestBase {
* @param string|null $message
* Optional translated string message.
*/
- function assertFileHookCalled($hook, $expected_count = 1, $message = NULL) {
+ public function assertFileHookCalled($hook, $expected_count = 1, $message = NULL) {
$actual_count = count(file_test_get_calls($hook));
if (!isset($message)) {
@@ -93,7 +93,7 @@ abstract class FileManagedTestBase extends BrowserTestBase {
* @param \Drupal\file\FileInterface $after
* File object to compare.
*/
- function assertFileUnchanged(FileInterface $before, FileInterface $after) {
+ public function assertFileUnchanged(FileInterface $before, FileInterface $after) {
$this->assertEqual($before->id(), $after->id(), t('File id is the same: %file1 == %file2.', ['%file1' => $before->id(), '%file2' => $after->id()]), 'File unchanged');
$this->assertEqual($before->getOwner()->id(), $after->getOwner()->id(), t('File owner is the same: %file1 == %file2.', ['%file1' => $before->getOwner()->id(), '%file2' => $after->getOwner()->id()]), 'File unchanged');
$this->assertEqual($before->getFilename(), $after->getFilename(), t('File name is the same: %file1 == %file2.', ['%file1' => $before->getFilename(), '%file2' => $after->getFilename()]), 'File unchanged');
@@ -111,7 +111,7 @@ abstract class FileManagedTestBase extends BrowserTestBase {
* @param \Drupal\file\FileInterface $file2
* File object to compare.
*/
- function assertDifferentFile(FileInterface $file1, FileInterface $file2) {
+ public function assertDifferentFile(FileInterface $file1, FileInterface $file2) {
$this->assertNotEqual($file1->id(), $file2->id(), t('Files have different ids: %file1 != %file2.', ['%file1' => $file1->id(), '%file2' => $file2->id()]), 'Different file');
$this->assertNotEqual($file1->getFileUri(), $file2->getFileUri(), t('Files have different paths: %file1 != %file2.', ['%file1' => $file1->getFileUri(), '%file2' => $file2->getFileUri()]), 'Different file');
}
@@ -124,7 +124,7 @@ abstract class FileManagedTestBase extends BrowserTestBase {
* @param \Drupal\file\FileInterface $file2
* File object to compare.
*/
- function assertSameFile(FileInterface $file1, FileInterface $file2) {
+ public function assertSameFile(FileInterface $file1, FileInterface $file2) {
$this->assertEqual($file1->id(), $file2->id(), t('Files have the same ids: %file1 == %file2.', ['%file1' => $file1->id(), '%file2-fid' => $file2->id()]), 'Same file');
$this->assertEqual($file1->getFileUri(), $file2->getFileUri(), t('Files have the same path: %file1 == %file2.', ['%file1' => $file1->getFileUri(), '%file2' => $file2->getFileUri()]), 'Same file');
}
@@ -145,7 +145,7 @@ abstract class FileManagedTestBase extends BrowserTestBase {
* @return \Drupal\file\FileInterface
* File entity.
*/
- function createFile($filepath = NULL, $contents = NULL, $scheme = NULL) {
+ public function createFile($filepath = NULL, $contents = NULL, $scheme = NULL) {
// Don't count hook invocations caused by creating the file.
\Drupal::state()->set('file_test.count_hook_invocations', FALSE);
$file = File::create([
@@ -177,7 +177,7 @@ abstract class FileManagedTestBase extends BrowserTestBase {
* @return string
* File URI.
*/
- function createUri($filepath = NULL, $contents = NULL, $scheme = NULL) {
+ public function createUri($filepath = NULL, $contents = NULL, $scheme = NULL) {
if (!isset($filepath)) {
// Prefix with non-latin characters to ensure that all file-related
// tests work with international filenames.
diff --git a/core/modules/file/tests/src/Kernel/CopyTest.php b/core/modules/file/tests/src/Kernel/CopyTest.php
index 4c8d41f..3193cb6 100644
--- a/core/modules/file/tests/src/Kernel/CopyTest.php
+++ b/core/modules/file/tests/src/Kernel/CopyTest.php
@@ -13,7 +13,7 @@ class CopyTest extends FileManagedUnitTestBase {
/**
* Test file copying in the normal, base case.
*/
- function testNormal() {
+ public function testNormal() {
$contents = $this->randomMachineName(10);
$source = $this->createFile(NULL, $contents);
$desired_uri = 'public://' . $this->randomMachineName();
@@ -42,7 +42,7 @@ class CopyTest extends FileManagedUnitTestBase {
/**
* Test renaming when copying over a file that already exists.
*/
- function testExistingRename() {
+ public function testExistingRename() {
// Setup a file to overwrite.
$contents = $this->randomMachineName(10);
$source = $this->createFile(NULL, $contents);
@@ -82,7 +82,7 @@ class CopyTest extends FileManagedUnitTestBase {
/**
* Test replacement when copying over a file that already exists.
*/
- function testExistingReplace() {
+ public function testExistingReplace() {
// Setup a file to overwrite.
$contents = $this->randomMachineName(10);
$source = $this->createFile(NULL, $contents);
@@ -121,7 +121,7 @@ class CopyTest extends FileManagedUnitTestBase {
* Test that copying over an existing file fails when FILE_EXISTS_ERROR is
* specified.
*/
- function testExistingError() {
+ public function testExistingError() {
$contents = $this->randomMachineName(10);
$source = $this->createFile();
$target = $this->createFile(NULL, $contents);
diff --git a/core/modules/file/tests/src/Kernel/DeleteTest.php b/core/modules/file/tests/src/Kernel/DeleteTest.php
index 6d992a5..3b868c0 100644
--- a/core/modules/file/tests/src/Kernel/DeleteTest.php
+++ b/core/modules/file/tests/src/Kernel/DeleteTest.php
@@ -13,7 +13,7 @@ class DeleteTest extends FileManagedUnitTestBase {
/**
* Tries deleting a normal file (as opposed to a directory, symlink, etc).
*/
- function testUnused() {
+ public function testUnused() {
$file = $this->createFile();
// Check that deletion removes the file and database record.
@@ -27,7 +27,7 @@ class DeleteTest extends FileManagedUnitTestBase {
/**
* Tries deleting a file that is in use.
*/
- function testInUse() {
+ public function testInUse() {
$file = $this->createFile();
$file_usage = $this->container->get('file.usage');
$file_usage->add($file, 'testing', 'test', 1);
diff --git a/core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php b/core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
index 3035b7c..7c43e9b 100644
--- a/core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
+++ b/core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
@@ -46,7 +46,7 @@ abstract class FileManagedUnitTestBase extends KernelTestBase {
* Array with string containing with the hook name, e.g. 'load', 'save',
* 'insert', etc.
*/
- function assertFileHooksCalled($expected) {
+ public function assertFileHooksCalled($expected) {
\Drupal::state()->resetCache();
// Determine which hooks were called.
@@ -81,7 +81,7 @@ abstract class FileManagedUnitTestBase extends KernelTestBase {
* @param string $message
* Optional translated string message.
*/
- function assertFileHookCalled($hook, $expected_count = 1, $message = NULL) {
+ public function assertFileHookCalled($hook, $expected_count = 1, $message = NULL) {
$actual_count = count(file_test_get_calls($hook));
if (!isset($message)) {
@@ -106,7 +106,7 @@ abstract class FileManagedUnitTestBase extends KernelTestBase {
* @param \Drupal\file\FileInterface $after
* File object to compare.
*/
- function assertFileUnchanged(FileInterface $before, FileInterface $after) {
+ public function assertFileUnchanged(FileInterface $before, FileInterface $after) {
$this->assertEqual($before->id(), $after->id(), t('File id is the same: %file1 == %file2.', ['%file1' => $before->id(), '%file2' => $after->id()]), 'File unchanged');
$this->assertEqual($before->getOwner()->id(), $after->getOwner()->id(), t('File owner is the same: %file1 == %file2.', ['%file1' => $before->getOwner()->id(), '%file2' => $after->getOwner()->id()]), 'File unchanged');
$this->assertEqual($before->getFilename(), $after->getFilename(), t('File name is the same: %file1 == %file2.', ['%file1' => $before->getFilename(), '%file2' => $after->getFilename()]), 'File unchanged');
@@ -124,7 +124,7 @@ abstract class FileManagedUnitTestBase extends KernelTestBase {
* @param \Drupal\file\FileInterface $file2
* File object to compare.
*/
- function assertDifferentFile(FileInterface $file1, FileInterface $file2) {
+ public function assertDifferentFile(FileInterface $file1, FileInterface $file2) {
$this->assertNotEqual($file1->id(), $file2->id(), t('Files have different ids: %file1 != %file2.', ['%file1' => $file1->id(), '%file2' => $file2->id()]), 'Different file');
$this->assertNotEqual($file1->getFileUri(), $file2->getFileUri(), t('Files have different paths: %file1 != %file2.', ['%file1' => $file1->getFileUri(), '%file2' => $file2->getFileUri()]), 'Different file');
}
@@ -137,7 +137,7 @@ abstract class FileManagedUnitTestBase extends KernelTestBase {
* @param \Drupal\file\FileInterface $file2
* File object to compare.
*/
- function assertSameFile(FileInterface $file1, FileInterface $file2) {
+ public function assertSameFile(FileInterface $file1, FileInterface $file2) {
$this->assertEqual($file1->id(), $file2->id(), t('Files have the same ids: %file1 == %file2.', ['%file1' => $file1->id(), '%file2-fid' => $file2->id()]), 'Same file');
$this->assertEqual($file1->getFileUri(), $file2->getFileUri(), t('Files have the same path: %file1 == %file2.', ['%file1' => $file1->getFileUri(), '%file2' => $file2->getFileUri()]), 'Same file');
}
@@ -158,7 +158,7 @@ abstract class FileManagedUnitTestBase extends KernelTestBase {
* @return \Drupal\file\FileInterface
* File entity.
*/
- function createFile($filepath = NULL, $contents = NULL, $scheme = NULL) {
+ public function createFile($filepath = NULL, $contents = NULL, $scheme = NULL) {
// Don't count hook invocations caused by creating the file.
\Drupal::state()->set('file_test.count_hook_invocations', FALSE);
$file = File::create([
@@ -190,7 +190,7 @@ abstract class FileManagedUnitTestBase extends KernelTestBase {
* @return string
* File URI.
*/
- function createUri($filepath = NULL, $contents = NULL, $scheme = NULL) {
+ public function createUri($filepath = NULL, $contents = NULL, $scheme = NULL) {
if (!isset($filepath)) {
// Prefix with non-latin characters to ensure that all file-related
// tests work with international filenames.
diff --git a/core/modules/file/tests/src/Kernel/LoadTest.php b/core/modules/file/tests/src/Kernel/LoadTest.php
index 8cbaccc..9d71539 100644
--- a/core/modules/file/tests/src/Kernel/LoadTest.php
+++ b/core/modules/file/tests/src/Kernel/LoadTest.php
@@ -13,7 +13,7 @@ class LoadTest extends FileManagedUnitTestBase {
/**
* Try to load a non-existent file by fid.
*/
- function testLoadMissingFid() {
+ public function testLoadMissingFid() {
$this->assertFalse(File::load(-1), 'Try to load an invalid fid fails.');
$this->assertFileHooksCalled([]);
}
@@ -21,7 +21,7 @@ class LoadTest extends FileManagedUnitTestBase {
/**
* Try to load a non-existent file by URI.
*/
- function testLoadMissingFilepath() {
+ public function testLoadMissingFilepath() {
$files = entity_load_multiple_by_properties('file', ['uri' => 'foobar://misc/druplicon.png']);
$this->assertFalse(reset($files), "Try to load a file that doesn't exist in the database fails.");
$this->assertFileHooksCalled([]);
@@ -30,7 +30,7 @@ class LoadTest extends FileManagedUnitTestBase {
/**
* Try to load a non-existent file by status.
*/
- function testLoadInvalidStatus() {
+ public function testLoadInvalidStatus() {
$files = entity_load_multiple_by_properties('file', ['status' => -99]);
$this->assertFalse(reset($files), 'Trying to load a file with an invalid status fails.');
$this->assertFileHooksCalled([]);
@@ -39,7 +39,7 @@ class LoadTest extends FileManagedUnitTestBase {
/**
* Load a single file and ensure that the correct values are returned.
*/
- function testSingleValues() {
+ public function testSingleValues() {
// Create a new file entity from scratch so we know the values.
$file = $this->createFile('druplicon.txt', NULL, 'public');
$by_fid_file = File::load($file->id());
@@ -56,7 +56,7 @@ class LoadTest extends FileManagedUnitTestBase {
/**
* This will test loading file data from the database.
*/
- function testMultiple() {
+ public function testMultiple() {
// Create a new file entity.
$file = $this->createFile('druplicon.txt', NULL, 'public');
diff --git a/core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadTest.php b/core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadTest.php
index 2ab104d..e511a21 100644
--- a/core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadTest.php
+++ b/core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadTest.php
@@ -57,7 +57,7 @@ class MigrateUploadTest extends MigrateDrupal6TestBase {
/**
* Test upload migration from Drupal 6 to Drupal 8.
*/
- function testUpload() {
+ public function testUpload() {
$this->container->get('entity.manager')
->getStorage('node')
->resetCache([1, 2]);
diff --git a/core/modules/file/tests/src/Kernel/MoveTest.php b/core/modules/file/tests/src/Kernel/MoveTest.php
index f2f1034..3183ecf 100644
--- a/core/modules/file/tests/src/Kernel/MoveTest.php
+++ b/core/modules/file/tests/src/Kernel/MoveTest.php
@@ -13,7 +13,7 @@ class MoveTest extends FileManagedUnitTestBase {
/**
* Move a normal file.
*/
- function testNormal() {
+ public function testNormal() {
$contents = $this->randomMachineName(10);
$source = $this->createFile(NULL, $contents);
$desired_filepath = 'public://' . $this->randomMachineName();
@@ -43,7 +43,7 @@ class MoveTest extends FileManagedUnitTestBase {
/**
* Test renaming when moving onto a file that already exists.
*/
- function testExistingRename() {
+ public function testExistingRename() {
// Setup a file to overwrite.
$contents = $this->randomMachineName(10);
$source = $this->createFile(NULL, $contents);
@@ -78,7 +78,7 @@ class MoveTest extends FileManagedUnitTestBase {
/**
* Test replacement when moving onto a file that already exists.
*/
- function testExistingReplace() {
+ public function testExistingReplace() {
// Setup a file to overwrite.
$contents = $this->randomMachineName(10);
$source = $this->createFile(NULL, $contents);
@@ -110,7 +110,7 @@ class MoveTest extends FileManagedUnitTestBase {
/**
* Test replacement when moving onto itself.
*/
- function testExistingReplaceSelf() {
+ public function testExistingReplaceSelf() {
// Setup a file to overwrite.
$contents = $this->randomMachineName(10);
$source = $this->createFile(NULL, $contents);
@@ -133,7 +133,7 @@ class MoveTest extends FileManagedUnitTestBase {
* Test that moving onto an existing file fails when FILE_EXISTS_ERROR is
* specified.
*/
- function testExistingError() {
+ public function testExistingError() {
$contents = $this->randomMachineName(10);
$source = $this->createFile();
$target = $this->createFile(NULL, $contents);
diff --git a/core/modules/file/tests/src/Kernel/SaveDataTest.php b/core/modules/file/tests/src/Kernel/SaveDataTest.php
index f92ef9a..747c7b1 100644
--- a/core/modules/file/tests/src/Kernel/SaveDataTest.php
+++ b/core/modules/file/tests/src/Kernel/SaveDataTest.php
@@ -13,7 +13,7 @@ class SaveDataTest extends FileManagedUnitTestBase {
/**
* Test the file_save_data() function when no filename is provided.
*/
- function testWithoutFilename() {
+ public function testWithoutFilename() {
$contents = $this->randomMachineName(8);
$result = file_save_data($contents);
@@ -35,7 +35,7 @@ class SaveDataTest extends FileManagedUnitTestBase {
/**
* Test the file_save_data() function when a filename is provided.
*/
- function testWithFilename() {
+ public function testWithFilename() {
$contents = $this->randomMachineName(8);
// Using filename with non-latin characters.
@@ -60,7 +60,7 @@ class SaveDataTest extends FileManagedUnitTestBase {
/**
* Test file_save_data() when renaming around an existing file.
*/
- function testExistingRename() {
+ public function testExistingRename() {
// Setup a file to overwrite.
$existing = $this->createFile();
$contents = $this->randomMachineName(8);
@@ -88,7 +88,7 @@ class SaveDataTest extends FileManagedUnitTestBase {
/**
* Test file_save_data() when replacing an existing file.
*/
- function testExistingReplace() {
+ public function testExistingReplace() {
// Setup a file to overwrite.
$existing = $this->createFile();
$contents = $this->randomMachineName(8);
@@ -115,7 +115,7 @@ class SaveDataTest extends FileManagedUnitTestBase {
/**
* Test that file_save_data() fails overwriting an existing file.
*/
- function testExistingError() {
+ public function testExistingError() {
$contents = $this->randomMachineName(8);
$existing = $this->createFile(NULL, $contents);
diff --git a/core/modules/file/tests/src/Kernel/SaveTest.php b/core/modules/file/tests/src/Kernel/SaveTest.php
index 8d91d81..87eb17b 100644
--- a/core/modules/file/tests/src/Kernel/SaveTest.php
+++ b/core/modules/file/tests/src/Kernel/SaveTest.php
@@ -10,7 +10,7 @@ use Drupal\file\Entity\File;
* @group file
*/
class SaveTest extends FileManagedUnitTestBase {
- function testFileSave() {
+ public function testFileSave() {
// Create a new file entity.
$file = File::create([
'uid' => 1,
diff --git a/core/modules/file/tests/src/Kernel/SpaceUsedTest.php b/core/modules/file/tests/src/Kernel/SpaceUsedTest.php
index f8752c4..7dbc7fd 100644
--- a/core/modules/file/tests/src/Kernel/SpaceUsedTest.php
+++ b/core/modules/file/tests/src/Kernel/SpaceUsedTest.php
@@ -52,7 +52,7 @@ class SpaceUsedTest extends FileManagedUnitTestBase {
/**
* Test different users with the default status.
*/
- function testFileSpaceUsed() {
+ public function testFileSpaceUsed() {
$file = $this->container->get('entity.manager')->getStorage('file');
// Test different users with default status.
$this->assertEqual($file->spaceUsed(2), 70);
diff --git a/core/modules/file/tests/src/Kernel/UsageTest.php b/core/modules/file/tests/src/Kernel/UsageTest.php
index 6752247..672de0f 100644
--- a/core/modules/file/tests/src/Kernel/UsageTest.php
+++ b/core/modules/file/tests/src/Kernel/UsageTest.php
@@ -18,7 +18,7 @@ class UsageTest extends FileManagedUnitTestBase {
/**
* Tests \Drupal\file\FileUsage\DatabaseFileUsageBackend::listUsage().
*/
- function testGetUsage() {
+ public function testGetUsage() {
$file = $this->createFile();
db_insert('file_usage')
->fields([
@@ -51,7 +51,7 @@ class UsageTest extends FileManagedUnitTestBase {
/**
* Tests \Drupal\file\FileUsage\DatabaseFileUsageBackend::add().
*/
- function testAddUsage() {
+ public function testAddUsage() {
$file = $this->createFile();
$file_usage = $this->container->get('file.usage');
$file_usage->add($file, 'testing', 'foo', 1);
@@ -77,7 +77,7 @@ class UsageTest extends FileManagedUnitTestBase {
/**
* Tests \Drupal\file\FileUsage\DatabaseFileUsageBackend::delete().
*/
- function testRemoveUsage() {
+ public function testRemoveUsage() {
$file = $this->createFile();
$file_usage = $this->container->get('file.usage');
db_insert('file_usage')
@@ -124,7 +124,7 @@ class UsageTest extends FileManagedUnitTestBase {
* We are using UPDATE statements because using the API would set the
* timestamp.
*/
- function createTempFiles() {
+ public function createTempFiles() {
// Temporary file that is old.
$temp_old = file_save_data('');
db_update('file_managed')
@@ -161,7 +161,7 @@ class UsageTest extends FileManagedUnitTestBase {
/**
* Ensure that temporary files are removed by default.
*/
- function testTempFileCleanupDefault() {
+ public function testTempFileCleanupDefault() {
list($temp_old, $temp_new, $perm_old, $perm_new) = $this->createTempFiles();
// Run cron and then ensure that only the old, temp file was deleted.
@@ -175,7 +175,7 @@ class UsageTest extends FileManagedUnitTestBase {
/**
* Ensure that temporary files are kept as configured.
*/
- function testTempFileNoCleanup() {
+ public function testTempFileNoCleanup() {
list($temp_old, $temp_new, $perm_old, $perm_new) = $this->createTempFiles();
// Set the max age to 0, meaning no temporary files will be deleted.
@@ -194,7 +194,7 @@ class UsageTest extends FileManagedUnitTestBase {
/**
* Ensure that temporary files are kept as configured.
*/
- function testTempFileCustomCleanup() {
+ public function testTempFileCustomCleanup() {
list($temp_old, $temp_new, $perm_old, $perm_new) = $this->createTempFiles();
// Set the max age to older than default.
diff --git a/core/modules/file/tests/src/Kernel/ValidateTest.php b/core/modules/file/tests/src/Kernel/ValidateTest.php
index 2fc8817..285cc86 100644
--- a/core/modules/file/tests/src/Kernel/ValidateTest.php
+++ b/core/modules/file/tests/src/Kernel/ValidateTest.php
@@ -12,7 +12,7 @@ class ValidateTest extends FileManagedUnitTestBase {
/**
* Test that the validators passed into are checked.
*/
- function testCallerValidation() {
+ public function testCallerValidation() {
$file = $this->createFile();
// Empty validators.
diff --git a/core/modules/file/tests/src/Kernel/ValidatorTest.php b/core/modules/file/tests/src/Kernel/ValidatorTest.php
index 30a6fe8..b645f39 100644
--- a/core/modules/file/tests/src/Kernel/ValidatorTest.php
+++ b/core/modules/file/tests/src/Kernel/ValidatorTest.php
@@ -40,7 +40,7 @@ class ValidatorTest extends FileManagedUnitTestBase {
/**
* Test the file_validate_extensions() function.
*/
- function testFileValidateExtensions() {
+ public function testFileValidateExtensions() {
$file = File::create(['filename' => 'asdf.txt']);
$errors = file_validate_extensions($file, 'asdf txt pork');
$this->assertEqual(count($errors), 0, 'Valid extension accepted.', 'File');
@@ -53,7 +53,7 @@ class ValidatorTest extends FileManagedUnitTestBase {
/**
* This ensures a specific file is actually an image.
*/
- function testFileValidateIsImage() {
+ public function testFileValidateIsImage() {
$this->assertTrue(file_exists($this->image->getFileUri()), 'The image being tested exists.', 'File');
$errors = file_validate_is_image($this->image);
$this->assertEqual(count($errors), 0, 'No error reported for our image file.', 'File');
@@ -68,7 +68,7 @@ class ValidatorTest extends FileManagedUnitTestBase {
*
* The image will be resized if it's too large.
*/
- function testFileValidateImageResolution() {
+ public function testFileValidateImageResolution() {
// Non-images.
$errors = file_validate_image_resolution($this->nonImage);
$this->assertEqual(count($errors), 0, 'Should not get any errors for a non-image file.', 'File');
@@ -116,7 +116,7 @@ class ValidatorTest extends FileManagedUnitTestBase {
/**
* This will ensure the filename length is valid.
*/
- function testFileValidateNameLength() {
+ public function testFileValidateNameLength() {
// Create a new file entity.
$file = File::create();
@@ -141,7 +141,7 @@ class ValidatorTest extends FileManagedUnitTestBase {
/**
* Test file_validate_size().
*/
- function testFileValidateSize() {
+ public function testFileValidateSize() {
// Create a file with a size of 1000 bytes, and quotas of only 1 byte.
$file = File::create(['filesize' => 1000]);
$errors = file_validate_size($file, 0, 0);
diff --git a/core/modules/filter/src/Controller/FilterController.php b/core/modules/filter/src/Controller/FilterController.php
index 09652b7..8052e4c 100644
--- a/core/modules/filter/src/Controller/FilterController.php
+++ b/core/modules/filter/src/Controller/FilterController.php
@@ -21,7 +21,7 @@ class FilterController {
*
* @see template_preprocess_filter_tips()
*/
- function filterTips(FilterFormatInterface $filter_format = NULL) {
+ public function filterTips(FilterFormatInterface $filter_format = NULL) {
$tips = $filter_format ? $filter_format->id() : -1;
$build = [
diff --git a/core/modules/filter/src/Tests/FilterAdminTest.php b/core/modules/filter/src/Tests/FilterAdminTest.php
index b967101..aceeff5 100644
--- a/core/modules/filter/src/Tests/FilterAdminTest.php
+++ b/core/modules/filter/src/Tests/FilterAdminTest.php
@@ -110,7 +110,7 @@ class FilterAdminTest extends WebTestBase {
/**
* Tests the format administration functionality.
*/
- function testFormatAdmin() {
+ public function testFormatAdmin() {
// Add text format.
$this->drupalGet('admin/config/content/formats');
$this->clickLink('Add text format');
@@ -185,7 +185,7 @@ class FilterAdminTest extends WebTestBase {
/**
* Tests filter administration functionality.
*/
- function testFilterAdmin() {
+ public function testFilterAdmin() {
$first_filter = 'filter_autop';
$second_filter = 'filter_url';
@@ -356,7 +356,7 @@ class FilterAdminTest extends WebTestBase {
/**
* Tests the URL filter settings form is properly validated.
*/
- function testUrlFilterAdmin() {
+ public function testUrlFilterAdmin() {
// The form does not save with an invalid filter URL length.
$edit = [
'filters[filter_url][settings][filter_url_length]' => $this->randomMachineName(4),
@@ -368,7 +368,7 @@ class FilterAdminTest extends WebTestBase {
/**
* Tests whether filter tips page is not HTML escaped.
*/
- function testFilterTipHtmlEscape() {
+ public function testFilterTipHtmlEscape() {
$this->drupalLogin($this->adminUser);
global $base_url;
diff --git a/core/modules/filter/src/Tests/FilterFormatAccessTest.php b/core/modules/filter/src/Tests/FilterFormatAccessTest.php
index c306585..a4c23b2 100644
--- a/core/modules/filter/src/Tests/FilterFormatAccessTest.php
+++ b/core/modules/filter/src/Tests/FilterFormatAccessTest.php
@@ -118,7 +118,7 @@ class FilterFormatAccessTest extends WebTestBase {
/**
* Tests the Filter format access permissions functionality.
*/
- function testFormatPermissions() {
+ public function testFormatPermissions() {
// Make sure that a regular user only has access to the text formats for
// which they were granted access.
$fallback_format = FilterFormat::load(filter_fallback_format());
@@ -182,7 +182,7 @@ class FilterFormatAccessTest extends WebTestBase {
/**
* Tests if text format is available to a role.
*/
- function testFormatRoles() {
+ public function testFormatRoles() {
// Get the role ID assigned to the regular user.
$roles = $this->webUser->getRoles(TRUE);
$rid = $roles[0];
@@ -212,7 +212,7 @@ class FilterFormatAccessTest extends WebTestBase {
* be edited by administrators only, but that the administrator is forced to
* choose a new format before saving the page.
*/
- function testFormatWidgetPermissions() {
+ public function testFormatWidgetPermissions() {
$body_value_key = 'body[0][value]';
$body_format_key = 'body[0][format]';
diff --git a/core/modules/filter/src/Tests/FilterHtmlImageSecureTest.php b/core/modules/filter/src/Tests/FilterHtmlImageSecureTest.php
index 5cbdbb0..249021a 100644
--- a/core/modules/filter/src/Tests/FilterHtmlImageSecureTest.php
+++ b/core/modules/filter/src/Tests/FilterHtmlImageSecureTest.php
@@ -74,7 +74,7 @@ class FilterHtmlImageSecureTest extends WebTestBase {
/**
* Tests removal of images having a non-local source.
*/
- function testImageSource() {
+ public function testImageSource() {
global $base_url;
$public_files_path = PublicStream::basePath();
diff --git a/core/modules/filter/tests/src/Functional/FilterCaptionTwigDebugTest.php b/core/modules/filter/tests/src/Functional/FilterCaptionTwigDebugTest.php
index ef520c7..f5423e7 100644
--- a/core/modules/filter/tests/src/Functional/FilterCaptionTwigDebugTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterCaptionTwigDebugTest.php
@@ -76,7 +76,7 @@ class FilterCaptionTwigDebugTest extends BrowserTestBase {
/**
* Test the caption filter with Twig debugging on.
*/
- function testCaptionFilter() {
+ public function testCaptionFilter() {
/** @var \Drupal\Core\Render\RendererInterface $renderer */
$renderer = \Drupal::service('renderer');
$filter = $this->filters['filter_caption'];
diff --git a/core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php b/core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php
index 4aee647..45c3711 100644
--- a/core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php
@@ -23,7 +23,7 @@ class FilterDefaultFormatTest extends BrowserTestBase {
/**
* Tests if the default text format is accessible to users.
*/
- function testDefaultTextFormats() {
+ public function testDefaultTextFormats() {
// Create two text formats, and two users. The first user has access to
// both formats, but the second user only has access to the second one.
$admin_user = $this->drupalCreateUser(['administer filters']);
diff --git a/core/modules/filter/tests/src/Functional/FilterHooksTest.php b/core/modules/filter/tests/src/Functional/FilterHooksTest.php
index 2ff3e43..c799460 100644
--- a/core/modules/filter/tests/src/Functional/FilterHooksTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterHooksTest.php
@@ -26,7 +26,7 @@ class FilterHooksTest extends BrowserTestBase {
* Tests that hooks run correctly on creating, editing, and deleting a text
* format.
*/
- function testFilterHooks() {
+ public function testFilterHooks() {
// Create content type, with underscores.
$type_name = 'test_' . strtolower($this->randomMachineName());
$type = $this->drupalCreateContentType(['name' => $type_name, 'type' => $type_name]);
diff --git a/core/modules/filter/tests/src/Functional/FilterNoFormatTest.php b/core/modules/filter/tests/src/Functional/FilterNoFormatTest.php
index 22b3ac6..19c57ac 100644
--- a/core/modules/filter/tests/src/Functional/FilterNoFormatTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterNoFormatTest.php
@@ -24,7 +24,7 @@ class FilterNoFormatTest extends BrowserTestBase {
* Tests if text with no format is filtered the same way as text in the
* fallback format.
*/
- function testCheckMarkupNoFormat() {
+ public function testCheckMarkupNoFormat() {
// Create some text. Include some HTML and line breaks, so we get a good
// test of the filtering that is applied to it.
$text = "<strong>" . $this->randomMachineName(32) . "</strong>\n\n<div>" . $this->randomMachineName(32) . "</div>";
diff --git a/core/modules/filter/tests/src/Functional/FilterSecurityTest.php b/core/modules/filter/tests/src/Functional/FilterSecurityTest.php
index af1240e..4a5b7c4 100644
--- a/core/modules/filter/tests/src/Functional/FilterSecurityTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterSecurityTest.php
@@ -51,7 +51,7 @@ class FilterSecurityTest extends BrowserTestBase {
* Tests that filtered content is emptied when an actively used filter module
* is disabled.
*/
- function testDisableFilterModule() {
+ public function testDisableFilterModule() {
// Create a new node.
$node = $this->drupalCreateNode(['promote' => 1]);
$body_raw = $node->body->value;
@@ -81,7 +81,7 @@ class FilterSecurityTest extends BrowserTestBase {
/**
* Tests that security filters are enforced even when marked to be skipped.
*/
- function testSkipSecurityFilters() {
+ public function testSkipSecurityFilters() {
$text = "Text with some disallowed tags: <script />, <p><object>unicorn</object></p>, <i><table></i>.";
$expected_filtered_text = "Text with some disallowed tags: , <p>unicorn</p>, .";
$this->assertEqual(check_markup($text, 'filtered_html', '', []), $expected_filtered_text, 'Expected filter result.');
diff --git a/core/modules/filter/tests/src/Kernel/FilterAPITest.php b/core/modules/filter/tests/src/Kernel/FilterAPITest.php
index 85ea05e..2203bbe 100644
--- a/core/modules/filter/tests/src/Kernel/FilterAPITest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterAPITest.php
@@ -30,7 +30,7 @@ class FilterAPITest extends EntityKernelTestBase {
/**
* Tests that the filter order is respected.
*/
- function testCheckMarkupFilterOrder() {
+ public function testCheckMarkupFilterOrder() {
// Create crazy HTML format.
$crazy_format = FilterFormat::create([
'format' => 'crazy',
@@ -61,7 +61,7 @@ class FilterAPITest extends EntityKernelTestBase {
/**
* Tests the ability to apply only a subset of filters.
*/
- function testCheckMarkupFilterSubset() {
+ public function testCheckMarkupFilterSubset() {
$text = "Text with <marquee>evil content and</marquee> a URL: https://www.drupal.org!";
$expected_filtered_text = "Text with evil content and a URL: <a href=\"https://www.drupal.org\">https://www.drupal.org</a>!";
$expected_filter_text_without_html_generators = "Text with evil content and a URL: https://www.drupal.org!";
@@ -98,7 +98,7 @@ class FilterAPITest extends EntityKernelTestBase {
* - \Drupal\filter\Entity\FilterFormatInterface::getHtmlRestrictions()
* - \Drupal\filter\Entity\FilterFormatInterface::getFilterTypes()
*/
- function testFilterFormatAPI() {
+ public function testFilterFormatAPI() {
// Test on filtered_html.
$filtered_html_format = FilterFormat::load('filtered_html');
$this->assertIdentical(
@@ -249,7 +249,7 @@ class FilterAPITest extends EntityKernelTestBase {
* #lazy_builder callbacks.
* This test focuses solely on those advanced features.
*/
- function testProcessedTextElement() {
+ public function testProcessedTextElement() {
FilterFormat::create([
'format' => 'element_test',
'name' => 'processed_text element test format',
@@ -327,7 +327,7 @@ class FilterAPITest extends EntityKernelTestBase {
/**
* Tests the function of the typed data type.
*/
- function testTypedDataAPI() {
+ public function testTypedDataAPI() {
$definition = DataDefinition::create('filter_format');
$data = \Drupal::typedDataManager()->create($definition);
diff --git a/core/modules/filter/tests/src/Kernel/FilterCrudTest.php b/core/modules/filter/tests/src/Kernel/FilterCrudTest.php
index 87ea076..b73b180 100644
--- a/core/modules/filter/tests/src/Kernel/FilterCrudTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterCrudTest.php
@@ -22,7 +22,7 @@ class FilterCrudTest extends KernelTestBase {
/**
* Tests CRUD operations for text formats and filters.
*/
- function testTextFormatCrud() {
+ public function testTextFormatCrud() {
// Add a text format with minimum data only.
$format = FilterFormat::create([
'format' => 'empty_format',
@@ -88,7 +88,7 @@ class FilterCrudTest extends KernelTestBase {
/**
* Verifies that a text format is properly stored.
*/
- function verifyTextFormat($format) {
+ public function verifyTextFormat($format) {
$t_args = ['%format' => $format->label()];
$default_langcode = \Drupal::languageManager()->getDefaultLanguage()->getId();
diff --git a/core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php b/core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php
index eb8106c..e16bdda 100644
--- a/core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php
@@ -30,7 +30,7 @@ class FilterDefaultConfigTest extends KernelTestBase {
/**
* Tests installation of default formats.
*/
- function testInstallation() {
+ public function testInstallation() {
// Verify that the format was installed correctly.
$format = FilterFormat::load('filter_test');
$this->assertTrue((bool) $format);
@@ -70,7 +70,7 @@ class FilterDefaultConfigTest extends KernelTestBase {
/**
* Tests that changes to FilterFormat::$roles do not have an effect.
*/
- function testUpdateRoles() {
+ public function testUpdateRoles() {
// Verify role permissions declared in default config.
$format = FilterFormat::load('filter_test');
$this->assertEqual(array_keys(filter_get_roles_by_format($format)), [
diff --git a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
index bbac916..cf72bbe 100644
--- a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
@@ -41,7 +41,7 @@ class FilterKernelTest extends KernelTestBase {
/**
* Tests the align filter.
*/
- function testAlignFilter() {
+ public function testAlignFilter() {
$filter = $this->filters['filter_align'];
$test = function($input) use ($filter) {
@@ -96,7 +96,7 @@ class FilterKernelTest extends KernelTestBase {
/**
* Tests the caption filter.
*/
- function testCaptionFilter() {
+ public function testCaptionFilter() {
/** @var \Drupal\Core\Render\RendererInterface $renderer */
$renderer = \Drupal::service('renderer');
$filter = $this->filters['filter_caption'];
@@ -260,7 +260,7 @@ class FilterKernelTest extends KernelTestBase {
/**
* Tests the combination of the align and caption filters.
*/
- function testAlignAndCaptionFilters() {
+ public function testAlignAndCaptionFilters() {
/** @var \Drupal\Core\Render\RendererInterface $renderer */
$renderer = \Drupal::service('renderer');
$align_filter = $this->filters['filter_align'];
@@ -315,7 +315,7 @@ class FilterKernelTest extends KernelTestBase {
/**
* Tests the line break filter.
*/
- function testLineBreakFilter() {
+ public function testLineBreakFilter() {
// Get FilterAutoP object.
$filter = $this->filters['filter_autop'];
@@ -403,7 +403,7 @@ class FilterKernelTest extends KernelTestBase {
* @todo Class, id, name and xmlns should be added to disallowed attributes,
* or better a whitelist approach should be used for that too.
*/
- function testHtmlFilter() {
+ public function testHtmlFilter() {
// Get FilterHtml object.
$filter = $this->filters['filter_html'];
$filter->setConfiguration([
@@ -493,7 +493,7 @@ class FilterKernelTest extends KernelTestBase {
/**
* Tests the spam deterrent.
*/
- function testNoFollowFilter() {
+ public function testNoFollowFilter() {
// Get FilterHtml object.
$filter = $this->filters['filter_html'];
$filter->setConfiguration([
@@ -526,7 +526,7 @@ class FilterKernelTest extends KernelTestBase {
/**
* Tests the HTML escaping filter.
*/
- function testHtmlEscapeFilter() {
+ public function testHtmlEscapeFilter() {
// Get FilterHtmlEscape object.
$filter = $this->filters['filter_html_escape'];
@@ -543,7 +543,7 @@ class FilterKernelTest extends KernelTestBase {
/**
* Tests the URL filter.
*/
- function testUrlFilter() {
+ public function testUrlFilter() {
// Get FilterUrl object.
$filter = $this->filters['filter_url'];
$filter->setConfiguration([
@@ -871,7 +871,7 @@ www.example.com with a newline in comments -->
* );
* @endcode
*/
- function assertFilteredString($filter, $tests) {
+ public function assertFilteredString($filter, $tests) {
foreach ($tests as $source => $tasks) {
$result = $filter->process($source, $filter)->getProcessedText();
foreach ($tasks as $value => $is_expected) {
@@ -918,7 +918,7 @@ www.example.com with a newline in comments -->
* - Empty HTML tags (BR, IMG).
* - Mix of absolute and partial URLs, and email addresses in one content.
*/
- function testUrlFilterContent() {
+ public function testUrlFilterContent() {
// Get FilterUrl object.
$filter = $this->filters['filter_url'];
$filter->setConfiguration([
@@ -939,7 +939,7 @@ www.example.com with a newline in comments -->
*
* @todo This test could really use some validity checking function.
*/
- function testHtmlCorrectorFilter() {
+ public function testHtmlCorrectorFilter() {
// Tag closing.
$f = Html::normalize('<p>text');
$this->assertEqual($f, '<p>text</p>', 'HTML corrector -- tag closing at the end of input.');
@@ -1146,7 +1146,7 @@ body {color:red}
* @return bool
* TRUE on pass, FALSE on fail.
*/
- function assertNormalized($haystack, $needle, $message = '', $group = 'Other') {
+ public function assertNormalized($haystack, $needle, $message = '', $group = 'Other') {
return $this->assertTrue(strpos(strtolower(Html::decodeEntities($haystack)), $needle) !== FALSE, $message, $group);
}
@@ -1171,7 +1171,7 @@ body {color:red}
* @return bool
* TRUE on pass, FALSE on fail.
*/
- function assertNoNormalized($haystack, $needle, $message = '', $group = 'Other') {
+ public function assertNoNormalized($haystack, $needle, $message = '', $group = 'Other') {
return $this->assertTrue(strpos(strtolower(Html::decodeEntities($haystack)), $needle) === FALSE, $message, $group);
}
diff --git a/core/modules/filter/tests/src/Kernel/FilterSettingsTest.php b/core/modules/filter/tests/src/Kernel/FilterSettingsTest.php
index 829840c..f77efac 100644
--- a/core/modules/filter/tests/src/Kernel/FilterSettingsTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterSettingsTest.php
@@ -22,7 +22,7 @@ class FilterSettingsTest extends KernelTestBase {
/**
* Tests explicit and implicit default settings for filters.
*/
- function testFilterDefaults() {
+ public function testFilterDefaults() {
$filter_info = $this->container->get('plugin.manager.filter')->getDefinitions();
// Create text format using filter default settings.
diff --git a/core/modules/forum/src/ForumIndexStorage.php b/core/modules/forum/src/ForumIndexStorage.php
index d644ca9..7994574 100644
--- a/core/modules/forum/src/ForumIndexStorage.php
+++ b/core/modules/forum/src/ForumIndexStorage.php
@@ -23,7 +23,7 @@ class ForumIndexStorage implements ForumIndexStorageInterface {
* @param \Drupal\Core\Database\Connection $database
* The current database connection.
*/
- function __construct(Connection $database) {
+ public function __construct(Connection $database) {
$this->database = $database;
}
diff --git a/core/modules/forum/tests/src/Functional/ForumIndexTest.php b/core/modules/forum/tests/src/Functional/ForumIndexTest.php
index 3fd74b6..53c8364 100644
--- a/core/modules/forum/tests/src/Functional/ForumIndexTest.php
+++ b/core/modules/forum/tests/src/Functional/ForumIndexTest.php
@@ -29,7 +29,7 @@ class ForumIndexTest extends BrowserTestBase {
/**
* Tests the forum index for published and unpublished nodes.
*/
- function testForumIndexStatus() {
+ public function testForumIndexStatus() {
// The forum ID to use.
$tid = 1;
diff --git a/core/modules/forum/tests/src/Functional/ForumNodeAccessTest.php b/core/modules/forum/tests/src/Functional/ForumNodeAccessTest.php
index 83523e6..fb9da66 100644
--- a/core/modules/forum/tests/src/Functional/ForumNodeAccessTest.php
+++ b/core/modules/forum/tests/src/Functional/ForumNodeAccessTest.php
@@ -32,7 +32,7 @@ class ForumNodeAccessTest extends BrowserTestBase {
* Adds both active forum topics and new forum topics blocks to the sidebar.
* Tests to ensure private node/public node access is respected on blocks.
*/
- function testForumNodeAccess() {
+ public function testForumNodeAccess() {
// Create some users.
$access_user = $this->drupalCreateUser(['node test view']);
$no_access_user = $this->drupalCreateUser();
diff --git a/core/modules/forum/tests/src/Functional/ForumTest.php b/core/modules/forum/tests/src/Functional/ForumTest.php
index 25ecc9d..76823a7 100644
--- a/core/modules/forum/tests/src/Functional/ForumTest.php
+++ b/core/modules/forum/tests/src/Functional/ForumTest.php
@@ -117,7 +117,7 @@ class ForumTest extends BrowserTestBase {
/**
* Tests forum functionality through the admin and user interfaces.
*/
- function testForum() {
+ public function testForum() {
//Check that the basic forum install creates a default forum topic
$this->drupalGet('/forum');
// Look for the "General discussion" default forum
@@ -251,7 +251,7 @@ class ForumTest extends BrowserTestBase {
* Verifies that forum nodes are not created without choosing "forum" from the
* select list.
*/
- function testAddOrphanTopic() {
+ public function testAddOrphanTopic() {
// Must remove forum topics to test creating orphan topics.
$vid = $this->config('forum.settings')->get('vocabulary');
$tids = \Drupal::entityQuery('taxonomy_term')
@@ -356,7 +356,7 @@ class ForumTest extends BrowserTestBase {
/**
* Edits the forum taxonomy.
*/
- function editForumVocabulary() {
+ public function editForumVocabulary() {
// Backup forum taxonomy.
$vid = $this->config('forum.settings')->get('vocabulary');
$original_vocabulary = Vocabulary::load($vid);
@@ -399,7 +399,7 @@ class ForumTest extends BrowserTestBase {
* @return \Drupal\Core\Database\StatementInterface
* The created taxonomy term data.
*/
- function createForum($type, $parent = 0) {
+ public function createForum($type, $parent = 0) {
// Generate a random name/description.
$name = $this->randomMachineName(10);
$description = $this->randomMachineName(100);
@@ -447,7 +447,7 @@ class ForumTest extends BrowserTestBase {
* @param int $tid
* The forum ID.
*/
- function deleteForum($tid) {
+ public function deleteForum($tid) {
// Delete the forum.
$this->drupalGet('admin/structure/forum/edit/forum/' . $tid);
$this->clickLink(t('Delete'));
@@ -483,7 +483,7 @@ class ForumTest extends BrowserTestBase {
/**
* Tests a forum with a new post displays properly.
*/
- function testForumWithNewPost() {
+ public function testForumWithNewPost() {
// Log in as the first user.
$this->drupalLogin($this->adminUser);
// Create a forum container.
@@ -528,7 +528,7 @@ class ForumTest extends BrowserTestBase {
* @return object
* The created topic node.
*/
- function createForumTopic($forum, $container = FALSE) {
+ public function createForumTopic($forum, $container = FALSE) {
// Generate a random subject/body.
$title = $this->randomMachineName(20);
$body = $this->randomMachineName(200);
diff --git a/core/modules/history/src/Tests/HistoryTest.php b/core/modules/history/src/Tests/HistoryTest.php
index d08d211..b74ba6b 100644
--- a/core/modules/history/src/Tests/HistoryTest.php
+++ b/core/modules/history/src/Tests/HistoryTest.php
@@ -101,7 +101,7 @@ class HistoryTest extends WebTestBase {
/**
* Verifies that the history endpoints work.
*/
- function testHistory() {
+ public function testHistory() {
$nid = $this->testNode->id();
// Retrieve "last read" timestamp for test node, for the current user.
diff --git a/core/modules/image/src/Tests/FileMoveTest.php b/core/modules/image/src/Tests/FileMoveTest.php
index ce28a0b..d9ce27f 100644
--- a/core/modules/image/src/Tests/FileMoveTest.php
+++ b/core/modules/image/src/Tests/FileMoveTest.php
@@ -23,7 +23,7 @@ class FileMoveTest extends WebTestBase {
/**
* Tests moving a randomly generated image.
*/
- function testNormal() {
+ public function testNormal() {
// Pick a file for testing.
$file = File::create((array) current($this->drupalGetTestFiles('image')));
diff --git a/core/modules/image/src/Tests/ImageAdminStylesTest.php b/core/modules/image/src/Tests/ImageAdminStylesTest.php
index c8e92d3..5313b7f 100644
--- a/core/modules/image/src/Tests/ImageAdminStylesTest.php
+++ b/core/modules/image/src/Tests/ImageAdminStylesTest.php
@@ -19,7 +19,7 @@ class ImageAdminStylesTest extends ImageFieldTestBase {
/**
* Given an image style, generate an image.
*/
- function createSampleImage(ImageStyleInterface $style) {
+ public function createSampleImage(ImageStyleInterface $style) {
static $file_path;
// First, we need to make sure we have an image in our testing
@@ -36,7 +36,7 @@ class ImageAdminStylesTest extends ImageFieldTestBase {
/**
* Count the number of images currently create for a style.
*/
- function getImageCount(ImageStyleInterface $style) {
+ public function getImageCount(ImageStyleInterface $style) {
return count(file_scan_directory('public://styles/' . $style->id(), '/.*/'));
}
@@ -44,7 +44,7 @@ class ImageAdminStylesTest extends ImageFieldTestBase {
* Test creating an image style with a numeric name and ensuring it can be
* applied to an image.
*/
- function testNumericStyleName() {
+ public function testNumericStyleName() {
$style_name = rand();
$style_label = $this->randomString();
$edit = [
@@ -60,7 +60,7 @@ class ImageAdminStylesTest extends ImageFieldTestBase {
/**
* General test to add a style, add/remove/edit effects to it, then delete it.
*/
- function testStyle() {
+ public function testStyle() {
$admin_path = 'admin/config/media/image-styles';
// Setup a style to be created and effects to add to it.
@@ -330,7 +330,7 @@ class ImageAdminStylesTest extends ImageFieldTestBase {
/**
* Test deleting a style and choosing a replacement style.
*/
- function testStyleReplacement() {
+ public function testStyleReplacement() {
// Create a new style.
$style_name = strtolower($this->randomMachineName(10));
$style_label = $this->randomString();
@@ -392,7 +392,7 @@ class ImageAdminStylesTest extends ImageFieldTestBase {
/**
* Verifies that editing an image effect does not cause it to be duplicated.
*/
- function testEditEffect() {
+ public function testEditEffect() {
// Add a scale effect.
$style_name = 'test_style_effect_edit';
$this->drupalGet('admin/config/media/image-styles/add');
@@ -465,7 +465,7 @@ class ImageAdminStylesTest extends ImageFieldTestBase {
/**
* Tests image style configuration import that does a delete.
*/
- function testConfigImport() {
+ public function testConfigImport() {
// Create a new style.
$style_name = strtolower($this->randomMachineName(10));
$style_label = $this->randomString();
diff --git a/core/modules/image/src/Tests/ImageDimensionsTest.php b/core/modules/image/src/Tests/ImageDimensionsTest.php
index 365a6aa..b3e100d 100644
--- a/core/modules/image/src/Tests/ImageDimensionsTest.php
+++ b/core/modules/image/src/Tests/ImageDimensionsTest.php
@@ -24,7 +24,7 @@ class ImageDimensionsTest extends WebTestBase {
/**
* Test styled image dimensions cumulatively.
*/
- function testImageDimensions() {
+ public function testImageDimensions() {
$image_factory = $this->container->get('image.factory');
// Create a working copy of the file.
$files = $this->drupalGetTestFiles('image');
diff --git a/core/modules/image/src/Tests/ImageFieldDisplayTest.php b/core/modules/image/src/Tests/ImageFieldDisplayTest.php
index d2b4ffe..9c105c1 100644
--- a/core/modules/image/src/Tests/ImageFieldDisplayTest.php
+++ b/core/modules/image/src/Tests/ImageFieldDisplayTest.php
@@ -26,14 +26,14 @@ class ImageFieldDisplayTest extends ImageFieldTestBase {
/**
* Test image formatters on node display for public files.
*/
- function testImageFieldFormattersPublic() {
+ public function testImageFieldFormattersPublic() {
$this->_testImageFieldFormatters('public');
}
/**
* Test image formatters on node display for private files.
*/
- function testImageFieldFormattersPrivate() {
+ public function testImageFieldFormattersPrivate() {
// Remove access content permission from anonymous users.
user_role_change_permissions(RoleInterface::ANONYMOUS_ID, ['access content' => FALSE]);
$this->_testImageFieldFormatters('private');
@@ -42,7 +42,7 @@ class ImageFieldDisplayTest extends ImageFieldTestBase {
/**
* Test image formatters on node display.
*/
- function _testImageFieldFormatters($scheme) {
+ public function _testImageFieldFormatters($scheme) {
/** @var \Drupal\Core\Render\RendererInterface $renderer */
$renderer = $this->container->get('renderer');
$node_storage = $this->container->get('entity.manager')->getStorage('node');
@@ -217,7 +217,7 @@ class ImageFieldDisplayTest extends ImageFieldTestBase {
/**
* Tests for image field settings.
*/
- function testImageFieldSettings() {
+ public function testImageFieldSettings() {
/** @var \Drupal\Core\Render\RendererInterface $renderer */
$renderer = $this->container->get('renderer');
$node_storage = $this->container->get('entity.manager')->getStorage('node');
@@ -332,7 +332,7 @@ class ImageFieldDisplayTest extends ImageFieldTestBase {
/**
* Test use of a default image with an image field.
*/
- function testImageFieldDefaultImage() {
+ public function testImageFieldDefaultImage() {
/** @var \Drupal\Core\Render\RendererInterface $renderer */
$renderer = $this->container->get('renderer');
diff --git a/core/modules/image/src/Tests/ImageFieldTestBase.php b/core/modules/image/src/Tests/ImageFieldTestBase.php
index ed45278..eec7f7b 100644
--- a/core/modules/image/src/Tests/ImageFieldTestBase.php
+++ b/core/modules/image/src/Tests/ImageFieldTestBase.php
@@ -65,7 +65,7 @@ abstract class ImageFieldTestBase extends WebTestBase {
* @param string $type
* The type of node to create.
*/
- function previewNodeImage($image, $field_name, $type) {
+ public function previewNodeImage($image, $field_name, $type) {
$edit = [
'title[0][value]' => $this->randomMachineName(),
];
@@ -85,7 +85,7 @@ abstract class ImageFieldTestBase extends WebTestBase {
* @param $alt
* The alt text for the image. Use if the field settings require alt text.
*/
- function uploadNodeImage($image, $field_name, $type, $alt = '') {
+ public function uploadNodeImage($image, $field_name, $type, $alt = '') {
$edit = [
'title[0][value]' => $this->randomMachineName(),
];
diff --git a/core/modules/image/src/Tests/ImageFieldValidateTest.php b/core/modules/image/src/Tests/ImageFieldValidateTest.php
index 4e8e0c1..7e5ee9b 100644
--- a/core/modules/image/src/Tests/ImageFieldValidateTest.php
+++ b/core/modules/image/src/Tests/ImageFieldValidateTest.php
@@ -11,7 +11,7 @@ class ImageFieldValidateTest extends ImageFieldTestBase {
/**
* Test min/max resolution settings.
*/
- function testResolution() {
+ public function testResolution() {
$field_names = [
0 => strtolower($this->randomMachineName()),
1 => strtolower($this->randomMachineName()),
@@ -85,7 +85,7 @@ class ImageFieldValidateTest extends ImageFieldTestBase {
/**
* Test that required alt/title fields gets validated right.
*/
- function testRequiredAttributes() {
+ public function testRequiredAttributes() {
$field_name = strtolower($this->randomMachineName());
$field_settings = [
'alt_field' => 1,
diff --git a/core/modules/image/src/Tests/ImageStyleFlushTest.php b/core/modules/image/src/Tests/ImageStyleFlushTest.php
index ad837e8..4e8cd2c 100644
--- a/core/modules/image/src/Tests/ImageStyleFlushTest.php
+++ b/core/modules/image/src/Tests/ImageStyleFlushTest.php
@@ -14,7 +14,7 @@ class ImageStyleFlushTest extends ImageFieldTestBase {
/**
* Given an image style and a wrapper, generate an image.
*/
- function createSampleImage($style, $wrapper) {
+ public function createSampleImage($style, $wrapper) {
static $file;
if (!isset($file)) {
@@ -34,14 +34,14 @@ class ImageStyleFlushTest extends ImageFieldTestBase {
/**
* Count the number of images currently created for a style in a wrapper.
*/
- function getImageCount($style, $wrapper) {
+ public function getImageCount($style, $wrapper) {
return count(file_scan_directory($wrapper . '://styles/' . $style->id(), '/.*/'));
}
/**
* General test to flush a style.
*/
- function testFlush() {
+ public function testFlush() {
// Setup a style to be created and effects to add to it.
$style_name = strtolower($this->randomMachineName(10));
diff --git a/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php b/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php
index 28a78cd..44254c6 100644
--- a/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php
+++ b/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php
@@ -34,7 +34,7 @@ class ImageStylesPathAndUrlTest extends WebTestBase {
/**
* Tests \Drupal\image\ImageStyleInterface::buildUri().
*/
- function testImageStylePath() {
+ public function testImageStylePath() {
$scheme = 'public';
$actual = $this->style->buildUri("$scheme://foo/bar.gif");
$expected = "$scheme://styles/" . $this->style->id() . "/$scheme/foo/bar.gif";
@@ -48,42 +48,42 @@ class ImageStylesPathAndUrlTest extends WebTestBase {
/**
* Tests an image style URL using the "public://" scheme.
*/
- function testImageStyleUrlAndPathPublic() {
+ public function testImageStyleUrlAndPathPublic() {
$this->doImageStyleUrlAndPathTests('public');
}
/**
* Tests an image style URL using the "private://" scheme.
*/
- function testImageStyleUrlAndPathPrivate() {
+ public function testImageStyleUrlAndPathPrivate() {
$this->doImageStyleUrlAndPathTests('private');
}
/**
* Tests an image style URL with the "public://" scheme and unclean URLs.
*/
- function testImageStyleUrlAndPathPublicUnclean() {
+ public function testImageStyleUrlAndPathPublicUnclean() {
$this->doImageStyleUrlAndPathTests('public', FALSE);
}
/**
* Tests an image style URL with the "private://" schema and unclean URLs.
*/
- function testImageStyleUrlAndPathPrivateUnclean() {
+ public function testImageStyleUrlAndPathPrivateUnclean() {
$this->doImageStyleUrlAndPathTests('private', FALSE);
}
/**
* Tests an image style URL with a file URL that has an extra slash in it.
*/
- function testImageStyleUrlExtraSlash() {
+ public function testImageStyleUrlExtraSlash() {
$this->doImageStyleUrlAndPathTests('public', TRUE, TRUE);
}
/**
* Tests that an invalid source image returns a 404.
*/
- function testImageStyleUrlForMissingSourceImage() {
+ public function testImageStyleUrlForMissingSourceImage() {
$non_existent_uri = 'public://foo.png';
$generated_url = $this->style->buildUrl($non_existent_uri);
$this->drupalGet($generated_url);
@@ -93,7 +93,7 @@ class ImageStylesPathAndUrlTest extends WebTestBase {
/**
* Tests building an image style URL.
*/
- function doImageStyleUrlAndPathTests($scheme, $clean_url = TRUE, $extra_slash = FALSE) {
+ public function doImageStyleUrlAndPathTests($scheme, $clean_url = TRUE, $extra_slash = FALSE) {
$this->prepareRequestForGenerator($clean_url);
// Make the default scheme neither "public" nor "private" to verify the
diff --git a/core/modules/image/src/Tests/ImageThemeFunctionTest.php b/core/modules/image/src/Tests/ImageThemeFunctionTest.php
index b5b42ff..54c5c64 100644
--- a/core/modules/image/src/Tests/ImageThemeFunctionTest.php
+++ b/core/modules/image/src/Tests/ImageThemeFunctionTest.php
@@ -62,7 +62,7 @@ class ImageThemeFunctionTest extends WebTestBase {
/**
* Tests usage of the image field formatters.
*/
- function testImageFormatterTheme() {
+ public function testImageFormatterTheme() {
/** @var \Drupal\Core\Render\RendererInterface $renderer */
$renderer = $this->container->get('renderer');
@@ -124,7 +124,7 @@ class ImageThemeFunctionTest extends WebTestBase {
/**
* Tests usage of the image style theme function.
*/
- function testImageStyleTheme() {
+ public function testImageStyleTheme() {
/** @var \Drupal\Core\Render\RendererInterface $renderer */
$renderer = $this->container->get('renderer');
@@ -161,7 +161,7 @@ class ImageThemeFunctionTest extends WebTestBase {
/**
* Tests image alt attribute functionality.
*/
- function testImageAltFunctionality() {
+ public function testImageAltFunctionality() {
/** @var \Drupal\Core\Render\RendererInterface $renderer */
$renderer = $this->container->get('renderer');
diff --git a/core/modules/image/src/Tests/QuickEditImageControllerTest.php b/core/modules/image/src/Tests/QuickEditImageControllerTest.php
index 348ee2d..870c1bb 100644
--- a/core/modules/image/src/Tests/QuickEditImageControllerTest.php
+++ b/core/modules/image/src/Tests/QuickEditImageControllerTest.php
@@ -65,7 +65,7 @@ class QuickEditImageControllerTest extends WebTestBase {
/**
* Tests that routes restrict access for un-privileged users.
*/
- function testAccess() {
+ public function testAccess() {
// Create an anonymous user.
$user = $this->createUser();
$this->drupalLogin($user);
@@ -84,7 +84,7 @@ class QuickEditImageControllerTest extends WebTestBase {
/**
* Tests that the field info route returns expected data.
*/
- function testFieldInfo() {
+ public function testFieldInfo() {
// Create a test Node.
$node = $this->drupalCreateNode([
'type' => 'article',
@@ -100,7 +100,7 @@ class QuickEditImageControllerTest extends WebTestBase {
/**
* Tests that uploading a valid image works.
*/
- function testValidImageUpload() {
+ public function testValidImageUpload() {
// Create a test Node.
$node = $this->drupalCreateNode([
'type' => 'article',
@@ -125,7 +125,7 @@ class QuickEditImageControllerTest extends WebTestBase {
/**
* Tests that uploading a invalid image does not work.
*/
- function testInvalidUpload() {
+ public function testInvalidUpload() {
// Create a test Node.
$node = $this->drupalCreateNode([
'type' => 'article',
@@ -164,7 +164,7 @@ class QuickEditImageControllerTest extends WebTestBase {
* @return mixed
* The content returned from the call to $this->curlExec().
*/
- function uploadImage($image, $nid, $field_name, $langcode) {
+ public function uploadImage($image, $nid, $field_name, $langcode) {
$filepath = $this->container->get('file_system')->realpath($image->uri);
$data = [
'files[image]' => curl_file_create($filepath),
diff --git a/core/modules/image/tests/src/Functional/ImageEffectsTest.php b/core/modules/image/tests/src/Functional/ImageEffectsTest.php
index 6e719d8..e9cb157 100644
--- a/core/modules/image/tests/src/Functional/ImageEffectsTest.php
+++ b/core/modules/image/tests/src/Functional/ImageEffectsTest.php
@@ -34,7 +34,7 @@ class ImageEffectsTest extends ToolkitTestBase {
/**
* Test the image_resize_effect() function.
*/
- function testResizeEffect() {
+ public function testResizeEffect() {
$this->assertImageEffect('image_resize', [
'width' => 1,
'height' => 2,
@@ -50,7 +50,7 @@ class ImageEffectsTest extends ToolkitTestBase {
/**
* Test the image_scale_effect() function.
*/
- function testScaleEffect() {
+ public function testScaleEffect() {
// @todo: need to test upscaling.
$this->assertImageEffect('image_scale', [
'width' => 10,
@@ -67,7 +67,7 @@ class ImageEffectsTest extends ToolkitTestBase {
/**
* Test the image_crop_effect() function.
*/
- function testCropEffect() {
+ public function testCropEffect() {
// @todo should test the keyword offsets.
$this->assertImageEffect('image_crop', [
'anchor' => 'top-1',
@@ -87,7 +87,7 @@ class ImageEffectsTest extends ToolkitTestBase {
/**
* Tests the ConvertImageEffect plugin.
*/
- function testConvertEffect() {
+ public function testConvertEffect() {
// Test jpeg.
$this->assertImageEffect('image_convert', [
'extension' => 'jpeg',
@@ -102,7 +102,7 @@ class ImageEffectsTest extends ToolkitTestBase {
/**
* Test the image_scale_and_crop_effect() function.
*/
- function testScaleAndCropEffect() {
+ public function testScaleAndCropEffect() {
$this->assertImageEffect('image_scale_and_crop', [
'width' => 5,
'height' => 10,
@@ -118,7 +118,7 @@ class ImageEffectsTest extends ToolkitTestBase {
/**
* Test the image_desaturate_effect() function.
*/
- function testDesaturateEffect() {
+ public function testDesaturateEffect() {
$this->assertImageEffect('image_desaturate', []);
$this->assertToolkitOperationsCalled(['desaturate']);
@@ -130,7 +130,7 @@ class ImageEffectsTest extends ToolkitTestBase {
/**
* Test the image_rotate_effect() function.
*/
- function testRotateEffect() {
+ public function testRotateEffect() {
// @todo: need to test with 'random' => TRUE
$this->assertImageEffect('image_rotate', [
'degrees' => 90,
@@ -147,7 +147,7 @@ class ImageEffectsTest extends ToolkitTestBase {
/**
* Test image effect caching.
*/
- function testImageEffectsCaching() {
+ public function testImageEffectsCaching() {
$image_effect_definitions_called = &drupal_static('image_module_test_image_effect_info_alter');
// First call should grab a fresh copy of the data.
diff --git a/core/modules/image/tests/src/Functional/ImageFieldTestBase.php b/core/modules/image/tests/src/Functional/ImageFieldTestBase.php
index 0764954..5fa0614 100644
--- a/core/modules/image/tests/src/Functional/ImageFieldTestBase.php
+++ b/core/modules/image/tests/src/Functional/ImageFieldTestBase.php
@@ -62,7 +62,7 @@ abstract class ImageFieldTestBase extends BrowserTestBase {
* @param string $type
* The type of node to create.
*/
- function previewNodeImage($image, $field_name, $type) {
+ public function previewNodeImage($image, $field_name, $type) {
$edit = [
'title[0][value]' => $this->randomMachineName(),
];
@@ -82,7 +82,7 @@ abstract class ImageFieldTestBase extends BrowserTestBase {
* @param $alt
* The alt text for the image. Use if the field settings require alt text.
*/
- function uploadNodeImage($image, $field_name, $type, $alt = '') {
+ public function uploadNodeImage($image, $field_name, $type, $alt = '') {
$edit = [
'title[0][value]' => $this->randomMachineName(),
];
diff --git a/core/modules/image/tests/src/Kernel/ImageFormatterTest.php b/core/modules/image/tests/src/Kernel/ImageFormatterTest.php
index cd8a45b..f001743 100644
--- a/core/modules/image/tests/src/Kernel/ImageFormatterTest.php
+++ b/core/modules/image/tests/src/Kernel/ImageFormatterTest.php
@@ -84,7 +84,7 @@ class ImageFormatterTest extends FieldKernelTestBase {
/**
* Tests the cache tags from image formatters.
*/
- function testImageFormatterCacheTags() {
+ public function testImageFormatterCacheTags() {
// Create a test entity with the image field set.
$entity = EntityTest::create([
'name' => $this->randomMachineName(),
diff --git a/core/modules/language/src/EventSubscriber/ConfigSubscriber.php b/core/modules/language/src/EventSubscriber/ConfigSubscriber.php
index 103f912..e071406 100644
--- a/core/modules/language/src/EventSubscriber/ConfigSubscriber.php
+++ b/core/modules/language/src/EventSubscriber/ConfigSubscriber.php
@@ -140,7 +140,7 @@ class ConfigSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[ConfigEvents::SAVE][] = ['onConfigSave', 0];
return $events;
}
diff --git a/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php b/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php
index fd925dd..37a6048 100644
--- a/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php
+++ b/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php
@@ -89,7 +89,7 @@ class LanguageRequestSubscriber implements EventSubscriberInterface {
* @return array
* An array of event listener definitions.
*/
- static function getSubscribedEvents() {
+ public static function getSubscribedEvents() {
$events[KernelEvents::REQUEST][] = ['onKernelRequestLanguage', 255];
return $events;
diff --git a/core/modules/language/src/LanguageNegotiator.php b/core/modules/language/src/LanguageNegotiator.php
index d9d4c5d..db55899 100644
--- a/core/modules/language/src/LanguageNegotiator.php
+++ b/core/modules/language/src/LanguageNegotiator.php
@@ -245,7 +245,7 @@ class LanguageNegotiator implements LanguageNegotiatorInterface {
/**
* {@inheritdoc}
*/
- function saveConfiguration($type, $enabled_methods) {
+ public function saveConfiguration($type, $enabled_methods) {
// As configurable language types might have changed, we reset the cache.
$this->languageManager->reset();
$definitions = $this->getNegotiationMethods();
@@ -274,7 +274,7 @@ class LanguageNegotiator implements LanguageNegotiatorInterface {
/**
* {@inheritdoc}
*/
- function purgeConfiguration() {
+ public function purgeConfiguration() {
// Ensure that we are getting the defined language negotiation information.
// An invocation of \Drupal\Core\Extension\ModuleInstaller::install() or
// \Drupal\Core\Extension\ModuleInstaller::uninstall() could invalidate the
@@ -289,7 +289,7 @@ class LanguageNegotiator implements LanguageNegotiatorInterface {
/**
* {@inheritdoc}
*/
- function updateConfiguration(array $types) {
+ public function updateConfiguration(array $types) {
// Ensure that we are getting the defined language negotiation information.
// An invocation of \Drupal\Core\Extension\ModuleInstaller::install() or
// \Drupal\Core\Extension\ModuleInstaller::uninstall() could invalidate the
diff --git a/core/modules/language/src/LanguageNegotiatorInterface.php b/core/modules/language/src/LanguageNegotiatorInterface.php
index 2792169..71f44b5 100644
--- a/core/modules/language/src/LanguageNegotiatorInterface.php
+++ b/core/modules/language/src/LanguageNegotiatorInterface.php
@@ -187,12 +187,12 @@ interface LanguageNegotiatorInterface {
* @param int[] $enabled_methods
* An array of language negotiation method weights keyed by method ID.
*/
- function saveConfiguration($type, $enabled_methods);
+ public function saveConfiguration($type, $enabled_methods);
/**
* Resave the configuration to purge missing negotiation methods.
*/
- function purgeConfiguration();
+ public function purgeConfiguration();
/**
* Updates the configuration based on the given language types.
@@ -204,6 +204,6 @@ interface LanguageNegotiatorInterface {
* @param string[] $types
* An array of configurable language types.
*/
- function updateConfiguration(array $types);
+ public function updateConfiguration(array $types);
}
diff --git a/core/modules/language/src/Tests/LanguageConfigurationTest.php b/core/modules/language/src/Tests/LanguageConfigurationTest.php
index 611b479..46d5ed7 100644
--- a/core/modules/language/src/Tests/LanguageConfigurationTest.php
+++ b/core/modules/language/src/Tests/LanguageConfigurationTest.php
@@ -23,7 +23,7 @@ class LanguageConfigurationTest extends WebTestBase {
/**
* Functional tests for adding, editing and deleting languages.
*/
- function testLanguageConfiguration() {
+ public function testLanguageConfiguration() {
// Ensure the after installing the language module the weight of the English
// language is still 0.
$this->assertEqual(ConfigurableLanguage::load('en')->getWeight(), 0, 'The English language has a weight of 0.');
@@ -148,7 +148,7 @@ class LanguageConfigurationTest extends WebTestBase {
/**
* Functional tests for setting system language weight on adding, editing and deleting languages.
*/
- function testLanguageConfigurationWeight() {
+ public function testLanguageConfigurationWeight() {
// User to add and remove language.
$admin_user = $this->drupalCreateUser(['administer languages', 'access administration pages']);
$this->drupalLogin($admin_user);
diff --git a/core/modules/language/src/Tests/LanguageListTest.php b/core/modules/language/src/Tests/LanguageListTest.php
index 2ed4962..641ddc4 100644
--- a/core/modules/language/src/Tests/LanguageListTest.php
+++ b/core/modules/language/src/Tests/LanguageListTest.php
@@ -24,7 +24,7 @@ class LanguageListTest extends WebTestBase {
/**
* Functional tests for adding, editing and deleting languages.
*/
- function testLanguageList() {
+ public function testLanguageList() {
// User to add and remove language.
$admin_user = $this->drupalCreateUser(['administer languages', 'access administration pages']);
@@ -186,7 +186,7 @@ class LanguageListTest extends WebTestBase {
/**
* Functional tests for the language states (locked or configurable).
*/
- function testLanguageStates() {
+ public function testLanguageStates() {
// Add some languages, and also lock some of them.
ConfigurableLanguage::create(['label' => $this->randomMachineName(), 'id' => 'l1'])->save();
ConfigurableLanguage::create(['label' => $this->randomMachineName(), 'id' => 'l2', 'locked' => TRUE])->save();
diff --git a/core/modules/language/src/Tests/LanguageLocaleListTest.php b/core/modules/language/src/Tests/LanguageLocaleListTest.php
index 022a072..5f96d89 100644
--- a/core/modules/language/src/Tests/LanguageLocaleListTest.php
+++ b/core/modules/language/src/Tests/LanguageLocaleListTest.php
@@ -30,7 +30,7 @@ class LanguageLocaleListTest extends WebTestBase {
/**
* Tests adding, editing, and deleting languages.
*/
- function testLanguageLocaleList() {
+ public function testLanguageLocaleList() {
// User to add and remove language.
$admin_user = $this->drupalCreateUser(['administer languages', 'access administration pages']);
$this->drupalLogin($admin_user);
diff --git a/core/modules/language/src/Tests/LanguageSwitchingTest.php b/core/modules/language/src/Tests/LanguageSwitchingTest.php
index 3d04a64..4001521 100644
--- a/core/modules/language/src/Tests/LanguageSwitchingTest.php
+++ b/core/modules/language/src/Tests/LanguageSwitchingTest.php
@@ -33,7 +33,7 @@ class LanguageSwitchingTest extends WebTestBase {
/**
* Functional tests for the language switcher block.
*/
- function testLanguageBlock() {
+ public function testLanguageBlock() {
// Add language.
$edit = [
'predefined_langcode' => 'fr',
@@ -160,7 +160,7 @@ class LanguageSwitchingTest extends WebTestBase {
/**
* Test language switcher links for domain based negotiation.
*/
- function testLanguageBlockWithDomain() {
+ public function testLanguageBlockWithDomain() {
// Add the Italian language.
ConfigurableLanguage::createFromLangcode('it')->save();
@@ -222,7 +222,7 @@ class LanguageSwitchingTest extends WebTestBase {
/**
* Test active class on links when switching languages.
*/
- function testLanguageLinkActiveClass() {
+ public function testLanguageLinkActiveClass() {
// Add language.
$edit = [
'predefined_langcode' => 'fr',
@@ -240,7 +240,7 @@ class LanguageSwitchingTest extends WebTestBase {
/**
* Check the path-admin class, as same as on default language.
*/
- function testLanguageBodyClass() {
+ public function testLanguageBodyClass() {
$searched_class = 'path-admin';
// Add language.
diff --git a/core/modules/language/src/Tests/LanguageUILanguageNegotiationTest.php b/core/modules/language/src/Tests/LanguageUILanguageNegotiationTest.php
index 0008186..3f54cf9 100644
--- a/core/modules/language/src/Tests/LanguageUILanguageNegotiationTest.php
+++ b/core/modules/language/src/Tests/LanguageUILanguageNegotiationTest.php
@@ -60,7 +60,7 @@ class LanguageUILanguageNegotiationTest extends WebTestBase {
/**
* Tests for language switching by URL path.
*/
- function testUILanguageNegotiation() {
+ public function testUILanguageNegotiation() {
// A few languages to switch to.
// This one is unknown, should get the default lang version.
$langcode_unknown = 'blah-blah';
@@ -364,7 +364,7 @@ class LanguageUILanguageNegotiationTest extends WebTestBase {
/**
* Test URL language detection when the requested URL has no language.
*/
- function testUrlLanguageFallback() {
+ public function testUrlLanguageFallback() {
// Add the Italian language.
$langcode_browser_fallback = 'it';
ConfigurableLanguage::createFromLangcode($langcode_browser_fallback)->save();
@@ -416,7 +416,7 @@ class LanguageUILanguageNegotiationTest extends WebTestBase {
/**
* Tests URL handling when separate domains are used for multiple languages.
*/
- function testLanguageDomain() {
+ public function testLanguageDomain() {
global $base_url;
// Get the current host URI we're running on.
diff --git a/core/modules/language/src/Tests/LanguageUrlRewritingTest.php b/core/modules/language/src/Tests/LanguageUrlRewritingTest.php
index de1b1a3..65ae64c 100644
--- a/core/modules/language/src/Tests/LanguageUrlRewritingTest.php
+++ b/core/modules/language/src/Tests/LanguageUrlRewritingTest.php
@@ -54,7 +54,7 @@ class LanguageUrlRewritingTest extends WebTestBase {
/**
* Check that non-installed languages are not considered.
*/
- function testUrlRewritingEdgeCases() {
+ public function testUrlRewritingEdgeCases() {
// Check URL rewriting with a non-installed language.
$non_existing = new Language(['id' => $this->randomMachineName()]);
$this->checkUrl($non_existing, 'Path language is ignored if language is not installed.', 'URL language negotiation does not work with non-installed languages');
@@ -101,7 +101,7 @@ class LanguageUrlRewritingTest extends WebTestBase {
/**
* Check URL rewriting when using a domain name and a non-standard port.
*/
- function testDomainNameNegotiationPort() {
+ public function testDomainNameNegotiationPort() {
global $base_url;
$language_domain = 'example.fr';
// Get the current host URI we're running on.
diff --git a/core/modules/language/tests/src/Functional/LanguageBrowserDetectionTest.php b/core/modules/language/tests/src/Functional/LanguageBrowserDetectionTest.php
index b32909b..a63ff45 100644
--- a/core/modules/language/tests/src/Functional/LanguageBrowserDetectionTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageBrowserDetectionTest.php
@@ -17,7 +17,7 @@ class LanguageBrowserDetectionTest extends BrowserTestBase {
* Tests for adding, editing and deleting mappings between browser language
* codes and Drupal language codes.
*/
- function testUIBrowserLanguageMappings() {
+ public function testUIBrowserLanguageMappings() {
// User to manage languages.
$admin_user = $this->drupalCreateUser(['administer languages', 'access administration pages']);
$this->drupalLogin($admin_user);
diff --git a/core/modules/language/tests/src/Functional/LanguageConfigSchemaTest.php b/core/modules/language/tests/src/Functional/LanguageConfigSchemaTest.php
index 200131a..e19fe53 100644
--- a/core/modules/language/tests/src/Functional/LanguageConfigSchemaTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageConfigSchemaTest.php
@@ -42,7 +42,7 @@ class LanguageConfigSchemaTest extends BrowserTestBase {
/**
* Tests whether the language config schema is valid.
*/
- function testValidLanguageConfigSchema() {
+ public function testValidLanguageConfigSchema() {
// Make sure no language configuration available by default.
$config_data = $this->config('language.settings')->get();
$this->assertTrue(empty($config_data));
diff --git a/core/modules/language/tests/src/Functional/LanguageListModuleInstallTest.php b/core/modules/language/tests/src/Functional/LanguageListModuleInstallTest.php
index bcd664d..013d00d 100644
--- a/core/modules/language/tests/src/Functional/LanguageListModuleInstallTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageListModuleInstallTest.php
@@ -22,7 +22,7 @@ class LanguageListModuleInstallTest extends BrowserTestBase {
/**
* Tests enabling Language.
*/
- function testModuleInstallLanguageList() {
+ public function testModuleInstallLanguageList() {
// Since LanguageManager::getLanguages() uses static caches we need to do
// this by enabling the module using the UI.
$admin_user = $this->drupalCreateUser(['access administration pages', 'administer modules']);
diff --git a/core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php b/core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php
index ebcd580..9133a12 100644
--- a/core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageNegotiationInfoTest.php
@@ -61,7 +61,7 @@ class LanguageNegotiationInfoTest extends BrowserTestBase {
/**
* Tests alterations to language types/negotiation info.
*/
- function testInfoAlterations() {
+ public function testInfoAlterations() {
$this->stateSet([
// Enable language_test type info.
'language_test.language_types' => TRUE,
diff --git a/core/modules/language/tests/src/Functional/LanguagePathMonolingualTest.php b/core/modules/language/tests/src/Functional/LanguagePathMonolingualTest.php
index 952f748..17ff3f9 100644
--- a/core/modules/language/tests/src/Functional/LanguagePathMonolingualTest.php
+++ b/core/modules/language/tests/src/Functional/LanguagePathMonolingualTest.php
@@ -57,7 +57,7 @@ class LanguagePathMonolingualTest extends BrowserTestBase {
/**
* Verifies that links do not have language prefixes in them.
*/
- function testPageLinks() {
+ public function testPageLinks() {
// Navigate to 'admin/config' path.
$this->drupalGet('admin/config');
diff --git a/core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php b/core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php
index d41d19e..287ab95 100644
--- a/core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php
+++ b/core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php
@@ -18,7 +18,7 @@ class LanguageDependencyInjectionTest extends LanguageTestBase {
*
* @see \Drupal\Core\Language\LanguageInterface
*/
- function testDependencyInjectedNewLanguage() {
+ public function testDependencyInjectedNewLanguage() {
$expected = $this->languageManager->getDefaultLanguage();
$result = $this->languageManager->getCurrentLanguage();
foreach ($expected as $property => $value) {
@@ -32,7 +32,7 @@ class LanguageDependencyInjectionTest extends LanguageTestBase {
*
* @see \Drupal\Core\Language\Language
*/
- function testDependencyInjectedNewDefaultLanguage() {
+ public function testDependencyInjectedNewDefaultLanguage() {
$default_language = ConfigurableLanguage::load(\Drupal::languageManager()->getDefaultLanguage()->getId());
// Change the language default object to different values.
ConfigurableLanguage::createFromLangcode('fr')->save();
diff --git a/core/modules/link/src/Tests/LinkFieldTest.php b/core/modules/link/src/Tests/LinkFieldTest.php
index f25066f..9e2f433 100644
--- a/core/modules/link/src/Tests/LinkFieldTest.php
+++ b/core/modules/link/src/Tests/LinkFieldTest.php
@@ -52,7 +52,7 @@ class LinkFieldTest extends WebTestBase {
/**
* Tests link field URL validation.
*/
- function testURLValidation() {
+ public function testURLValidation() {
$field_name = Unicode::strtolower($this->randomMachineName());
// Create a field with settings to validate.
$this->fieldStorage = FieldStorageConfig::create([
@@ -223,7 +223,7 @@ class LinkFieldTest extends WebTestBase {
/**
* Tests the link title settings of a link field.
*/
- function testLinkTitle() {
+ public function testLinkTitle() {
$field_name = Unicode::strtolower($this->randomMachineName());
// Create a field with settings to validate.
$this->fieldStorage = FieldStorageConfig::create([
@@ -337,7 +337,7 @@ class LinkFieldTest extends WebTestBase {
/**
* Tests the default 'link' formatter.
*/
- function testLinkFormatter() {
+ public function testLinkFormatter() {
$field_name = Unicode::strtolower($this->randomMachineName());
// Create a field with settings to validate.
$this->fieldStorage = FieldStorageConfig::create([
@@ -492,7 +492,7 @@ class LinkFieldTest extends WebTestBase {
* This test is mostly the same as testLinkFormatter(), but they cannot be
* merged, since they involve different configuration and output.
*/
- function testLinkSeparateFormatter() {
+ public function testLinkSeparateFormatter() {
$field_name = Unicode::strtolower($this->randomMachineName());
// Create a field with settings to validate.
$this->fieldStorage = FieldStorageConfig::create([
diff --git a/core/modules/link/tests/src/Functional/LinkFieldUITest.php b/core/modules/link/tests/src/Functional/LinkFieldUITest.php
index c990e64..0da3938 100644
--- a/core/modules/link/tests/src/Functional/LinkFieldUITest.php
+++ b/core/modules/link/tests/src/Functional/LinkFieldUITest.php
@@ -44,7 +44,7 @@ class LinkFieldUITest extends BrowserTestBase {
/**
* Tests the link field UI.
*/
- function testFieldUI() {
+ public function testFieldUI() {
// Add a content type.
$type = $this->drupalCreateContentType();
$type_path = 'admin/structure/types/manage/' . $type->id();
diff --git a/core/modules/locale/src/LocaleProjectStorage.php b/core/modules/locale/src/LocaleProjectStorage.php
index 5b352f2..05faa17 100644
--- a/core/modules/locale/src/LocaleProjectStorage.php
+++ b/core/modules/locale/src/LocaleProjectStorage.php
@@ -36,7 +36,7 @@ class LocaleProjectStorage implements LocaleProjectStorageInterface {
* @param \Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory
* The key value store to use.
*/
- function __construct(KeyValueFactoryInterface $key_value_factory) {
+ public function __construct(KeyValueFactoryInterface $key_value_factory) {
$this->keyValueStore = $key_value_factory->get('locale.project');
}
diff --git a/core/modules/locale/src/StreamWrapper/TranslationsStream.php b/core/modules/locale/src/StreamWrapper/TranslationsStream.php
index 8a1c1c9..e7cb278 100644
--- a/core/modules/locale/src/StreamWrapper/TranslationsStream.php
+++ b/core/modules/locale/src/StreamWrapper/TranslationsStream.php
@@ -36,7 +36,7 @@ class TranslationsStream extends LocalStream {
/**
* {@inheritdoc}
*/
- function getDirectoryPath() {
+ public function getDirectoryPath() {
return \Drupal::config('locale.settings')->get('translation.path');
}
@@ -45,7 +45,7 @@ class TranslationsStream extends LocalStream {
* @throws \LogicException
* PO files URL should not be public.
*/
- function getExternalUrl() {
+ public function getExternalUrl() {
throw new \LogicException('PO files URL should not be public.');
}
diff --git a/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php b/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php
index 9e80c7b..479a600 100644
--- a/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php
+++ b/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php
@@ -130,7 +130,7 @@ class LocaleConfigTranslationImportTest extends WebTestBase {
/**
* Test removing a string from Locale deletes configuration translations.
*/
- function testLocaleRemovalAndConfigOverrideDelete() {
+ public function testLocaleRemovalAndConfigOverrideDelete() {
// Enable the locale module.
$this->container->get('module_installer')->install(['locale']);
$this->resetAll();
@@ -167,7 +167,7 @@ class LocaleConfigTranslationImportTest extends WebTestBase {
/**
* Test removing a string from Locale changes configuration translations.
*/
- function testLocaleRemovalAndConfigOverridePreserve() {
+ public function testLocaleRemovalAndConfigOverridePreserve() {
// Enable the locale module.
$this->container->get('module_installer')->install(['locale']);
$this->resetAll();
diff --git a/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php b/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php
index e25ec40..3ac296a 100644
--- a/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php
+++ b/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php
@@ -30,7 +30,7 @@ class LocaleFileSystemFormTest extends WebTestBase {
/**
* Tests translation directory settings on the file settings form.
*/
- function testFileConfigurationPage() {
+ public function testFileConfigurationPage() {
// By default there should be no setting for the translation directory.
$this->drupalGet('admin/config/media/file-system');
$this->assertNoFieldByName('translation_path');
diff --git a/core/modules/locale/tests/src/Functional/LocaleTranslatedSchemaDefinitionTest.php b/core/modules/locale/tests/src/Functional/LocaleTranslatedSchemaDefinitionTest.php
index 7efb73a..39d7c3d 100644
--- a/core/modules/locale/tests/src/Functional/LocaleTranslatedSchemaDefinitionTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleTranslatedSchemaDefinitionTest.php
@@ -36,7 +36,7 @@ class LocaleTranslatedSchemaDefinitionTest extends BrowserTestBase {
/**
* Tests that translated field descriptions do not affect the update system.
*/
- function testTranslatedSchemaDefinition() {
+ public function testTranslatedSchemaDefinition() {
/** @var \Drupal\locale\StringDatabaseStorage $stringStorage */
$stringStorage = \Drupal::service('locale.storage');
@@ -60,7 +60,7 @@ class LocaleTranslatedSchemaDefinitionTest extends BrowserTestBase {
/**
* Tests that translations do not affect the update system.
*/
- function testTranslatedUpdate() {
+ public function testTranslatedUpdate() {
// Visit the update page to collect any strings that may be translatable.
$user = $this->drupalCreateUser(['administer software updates']);
$this->drupalLogin($user);
diff --git a/core/modules/menu_link_content/src/Tests/MenuLinkContentTranslationUITest.php b/core/modules/menu_link_content/src/Tests/MenuLinkContentTranslationUITest.php
index 4aeb637..b041956 100644
--- a/core/modules/menu_link_content/src/Tests/MenuLinkContentTranslationUITest.php
+++ b/core/modules/menu_link_content/src/Tests/MenuLinkContentTranslationUITest.php
@@ -79,7 +79,7 @@ class MenuLinkContentTranslationUITest extends ContentTranslationUITestBase {
/**
* Tests that translation page inherits admin status of edit page.
*/
- function testTranslationLinkTheme() {
+ public function testTranslationLinkTheme() {
$this->drupalLogin($this->administrator);
$entityId = $this->createEntity([], 'en');
diff --git a/core/modules/menu_link_content/tests/src/Functional/LinksTest.php b/core/modules/menu_link_content/tests/src/Functional/LinksTest.php
index 14aa4f2..5a7121a 100644
--- a/core/modules/menu_link_content/tests/src/Functional/LinksTest.php
+++ b/core/modules/menu_link_content/tests/src/Functional/LinksTest.php
@@ -46,7 +46,7 @@ class LinksTest extends BrowserTestBase {
/**
* Create a simple hierarchy of links.
*/
- function createLinkHierarchy($module = 'menu_test') {
+ public function createLinkHierarchy($module = 'menu_test') {
// First remove all the menu links in the menu.
$this->menuLinkManager->deleteLinksInMenu('menu_test');
@@ -107,7 +107,7 @@ class LinksTest extends BrowserTestBase {
/**
* Assert that at set of links is properly parented.
*/
- function assertMenuLinkParents($links, $expected_hierarchy) {
+ public function assertMenuLinkParents($links, $expected_hierarchy) {
foreach ($expected_hierarchy as $id => $parent) {
/* @var \Drupal\Core\Menu\MenuLinkInterface $menu_link_plugin */
$menu_link_plugin = $this->menuLinkManager->createInstance($links[$id]);
@@ -143,7 +143,7 @@ class LinksTest extends BrowserTestBase {
/**
* Test automatic reparenting of menu links.
*/
- function testMenuLinkReparenting($module = 'menu_test') {
+ public function testMenuLinkReparenting($module = 'menu_test') {
// Check the initial hierarchy.
$links = $this->createLinkHierarchy($module);
diff --git a/core/modules/menu_ui/src/Tests/MenuLanguageTest.php b/core/modules/menu_ui/src/Tests/MenuLanguageTest.php
index 856f408..4c48f05 100644
--- a/core/modules/menu_ui/src/Tests/MenuLanguageTest.php
+++ b/core/modules/menu_ui/src/Tests/MenuLanguageTest.php
@@ -40,7 +40,7 @@ class MenuLanguageTest extends MenuWebTestBase {
/**
* Tests menu language settings and the defaults for menu link items.
*/
- function testMenuLanguage() {
+ public function testMenuLanguage() {
// Create a test menu to test the various language-related settings.
// Machine name has to be lowercase.
$menu_name = Unicode::strtolower($this->randomMachineName(16));
diff --git a/core/modules/menu_ui/src/Tests/MenuNodeTest.php b/core/modules/menu_ui/src/Tests/MenuNodeTest.php
index 26f6e4f..3f1bba0 100644
--- a/core/modules/menu_ui/src/Tests/MenuNodeTest.php
+++ b/core/modules/menu_ui/src/Tests/MenuNodeTest.php
@@ -54,7 +54,7 @@ class MenuNodeTest extends WebTestBase {
/**
* Test creating, editing, deleting menu links via node form widget.
*/
- function testMenuNodeFormWidget() {
+ public function testMenuNodeFormWidget() {
// Verify that cacheability metadata is bubbled from the menu link tree
// access checking that is performed when determining the "default parent
// item" options in menu_ui_form_node_type_form_alter(). The "log out" link
@@ -240,7 +240,7 @@ class MenuNodeTest extends WebTestBase {
/**
* Testing correct loading and saving of menu links via node form widget in a multilingual environment.
*/
- function testMultilingualMenuNodeFormWidget() {
+ public function testMultilingualMenuNodeFormWidget() {
// Setup languages.
$langcodes = ['de'];
foreach ($langcodes as $langcode) {
diff --git a/core/modules/menu_ui/src/Tests/MenuTest.php b/core/modules/menu_ui/src/Tests/MenuTest.php
index c9df569..dde9502 100644
--- a/core/modules/menu_ui/src/Tests/MenuTest.php
+++ b/core/modules/menu_ui/src/Tests/MenuTest.php
@@ -77,7 +77,7 @@ class MenuTest extends MenuWebTestBase {
/**
* Tests menu functionality using the admin and user interfaces.
*/
- function testMenu() {
+ public function testMenu() {
// Log in the user.
$this->drupalLogin($this->adminUser);
$this->items = [];
@@ -148,7 +148,7 @@ class MenuTest extends MenuWebTestBase {
/**
* Adds a custom menu using CRUD functions.
*/
- function addCustomMenuCRUD() {
+ public function addCustomMenuCRUD() {
// Add a new custom menu.
$menu_name = substr(hash('sha256', $this->randomMachineName(16)), 0, MENU_MAX_MENU_NAME_LENGTH_UI);
$label = $this->randomMachineName(16);
@@ -178,7 +178,7 @@ class MenuTest extends MenuWebTestBase {
* @return \Drupal\system\Entity\Menu
* The custom menu that has been created.
*/
- function addCustomMenu() {
+ public function addCustomMenu() {
// Try adding a menu using a menu_name that is too long.
$this->drupalGet('admin/structure/menu/add');
$menu_name = substr(hash('sha256', $this->randomMachineName(16)), 0, MENU_MAX_MENU_NAME_LENGTH_UI + 1);
@@ -231,7 +231,7 @@ class MenuTest extends MenuWebTestBase {
* This deletes the custom menu that is stored in $this->menu and performs
* tests on the menu delete user interface.
*/
- function deleteCustomMenu() {
+ public function deleteCustomMenu() {
$menu_name = $this->menu->id();
$label = $this->menu->label();
@@ -257,7 +257,7 @@ class MenuTest extends MenuWebTestBase {
/**
* Tests menu functionality.
*/
- function doMenuTests() {
+ public function doMenuTests() {
$menu_name = $this->menu->id();
// Test the 'Add link' local action.
@@ -489,7 +489,7 @@ class MenuTest extends MenuWebTestBase {
/**
* Adds and removes a menu link with a query string and fragment.
*/
- function testMenuQueryAndFragment() {
+ public function testMenuQueryAndFragment() {
$this->drupalLogin($this->adminUser);
// Make a path with query and fragment on.
@@ -521,7 +521,7 @@ class MenuTest extends MenuWebTestBase {
/**
* Tests renaming the built-in menu.
*/
- function testSystemMenuRename() {
+ public function testSystemMenuRename() {
$this->drupalLogin($this->adminUser);
$edit = [
'label' => $this->randomMachineName(16),
@@ -538,7 +538,7 @@ class MenuTest extends MenuWebTestBase {
/**
* Tests that menu items pointing to unpublished nodes are editable.
*/
- function testUnpublishedNodeMenuItem() {
+ public function testUnpublishedNodeMenuItem() {
$this->drupalLogin($this->drupalCreateUser(['access administration pages', 'administer blocks', 'administer menu', 'create article content', 'bypass node access']));
// Create an unpublished node.
$node = $this->drupalCreateNode([
@@ -602,7 +602,7 @@ class MenuTest extends MenuWebTestBase {
* @return \Drupal\menu_link_content\Entity\MenuLinkContent
* A menu link entity.
*/
- function addMenuLink($parent = '', $path = '/', $menu_name = 'tools', $expanded = FALSE, $weight = '0') {
+ public function addMenuLink($parent = '', $path = '/', $menu_name = 'tools', $expanded = FALSE, $weight = '0') {
// View add menu link page.
$this->drupalGet("admin/structure/menu/manage/$menu_name/add");
$this->assertResponse(200);
@@ -635,7 +635,7 @@ class MenuTest extends MenuWebTestBase {
/**
* Attempts to add menu link with invalid path or no access permission.
*/
- function addInvalidMenuLink() {
+ public function addInvalidMenuLink() {
foreach (['access' => '/admin/people/permissions'] as $type => $link_path) {
$edit = [
'link[0][uri]' => $link_path,
@@ -649,7 +649,7 @@ class MenuTest extends MenuWebTestBase {
/**
* Tests that parent options are limited by depth when adding menu links.
*/
- function checkInvalidParentMenuLinks() {
+ public function checkInvalidParentMenuLinks() {
$last_link = NULL;
$created_links = [];
@@ -700,7 +700,7 @@ class MenuTest extends MenuWebTestBase {
* @param object $parent_node
* Parent menu link content node.
*/
- function verifyMenuLink(MenuLinkContent $item, $item_node, MenuLinkContent $parent = NULL, $parent_node = NULL) {
+ public function verifyMenuLink(MenuLinkContent $item, $item_node, MenuLinkContent $parent = NULL, $parent_node = NULL) {
// View home page.
$this->drupalGet('');
$this->assertResponse(200);
@@ -737,7 +737,7 @@ class MenuTest extends MenuWebTestBase {
* @param string $menu_name
* The menu the menu link will be moved to.
*/
- function moveMenuLink(MenuLinkContent $item, $parent, $menu_name) {
+ public function moveMenuLink(MenuLinkContent $item, $parent, $menu_name) {
$mlid = $item->id();
$edit = [
@@ -753,7 +753,7 @@ class MenuTest extends MenuWebTestBase {
* @param \Drupal\menu_link_content\Entity\MenuLinkContent $item
* Menu link entity.
*/
- function modifyMenuLink(MenuLinkContent $item) {
+ public function modifyMenuLink(MenuLinkContent $item) {
$item->title->value = $this->randomMachineName(16);
$mlid = $item->id();
@@ -778,7 +778,7 @@ class MenuTest extends MenuWebTestBase {
* @param int $old_weight
* Original title for menu link.
*/
- function resetMenuLink(MenuLinkInterface $menu_link, $old_weight) {
+ public function resetMenuLink(MenuLinkInterface $menu_link, $old_weight) {
// Reset menu link.
$this->drupalPostForm("admin/structure/menu/link/{$menu_link->getPluginId()}/reset", [], t('Reset'));
$this->assertResponse(200);
@@ -795,7 +795,7 @@ class MenuTest extends MenuWebTestBase {
* @param \Drupal\menu_link_content\Entity\MenuLinkContent $item
* Menu link.
*/
- function deleteMenuLink(MenuLinkContent $item) {
+ public function deleteMenuLink(MenuLinkContent $item) {
$mlid = $item->id();
$title = $item->getTitle();
@@ -815,7 +815,7 @@ class MenuTest extends MenuWebTestBase {
* @param \Drupal\menu_link_content\Entity\MenuLinkContent $item
* Menu link.
*/
- function toggleMenuLink(MenuLinkContent $item) {
+ public function toggleMenuLink(MenuLinkContent $item) {
$this->disableMenuLink($item);
// Verify menu link is absent.
@@ -834,7 +834,7 @@ class MenuTest extends MenuWebTestBase {
* @param \Drupal\menu_link_content\Entity\MenuLinkContent $item
* Menu link.
*/
- function disableMenuLink(MenuLinkContent $item) {
+ public function disableMenuLink(MenuLinkContent $item) {
$mlid = $item->id();
$edit['enabled[value]'] = FALSE;
$this->drupalPostForm("admin/structure/menu/item/$mlid/edit", $edit, t('Save'));
@@ -850,7 +850,7 @@ class MenuTest extends MenuWebTestBase {
* @param \Drupal\menu_link_content\Entity\MenuLinkContent $item
* Menu link.
*/
- function enableMenuLink(MenuLinkContent $item) {
+ public function enableMenuLink(MenuLinkContent $item) {
$mlid = $item->id();
$edit['enabled[value]'] = TRUE;
$this->drupalPostForm("admin/structure/menu/item/$mlid/edit", $edit, t('Save'));
diff --git a/core/modules/menu_ui/src/Tests/MenuWebTestBase.php b/core/modules/menu_ui/src/Tests/MenuWebTestBase.php
index bda38ba..e0ee98f 100644
--- a/core/modules/menu_ui/src/Tests/MenuWebTestBase.php
+++ b/core/modules/menu_ui/src/Tests/MenuWebTestBase.php
@@ -24,7 +24,7 @@ abstract class MenuWebTestBase extends WebTestBase {
* @param array $expected_item
* Array containing properties to verify.
*/
- function assertMenuLink($menu_plugin_id, array $expected_item) {
+ public function assertMenuLink($menu_plugin_id, array $expected_item) {
// Retrieve menu link.
/** @var \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager */
$menu_link_manager = \Drupal::service('plugin.manager.menu.link');
diff --git a/core/modules/menu_ui/tests/src/Functional/MenuLinkReorderTest.php b/core/modules/menu_ui/tests/src/Functional/MenuLinkReorderTest.php
index 163853d..4d2bba6 100644
--- a/core/modules/menu_ui/tests/src/Functional/MenuLinkReorderTest.php
+++ b/core/modules/menu_ui/tests/src/Functional/MenuLinkReorderTest.php
@@ -28,7 +28,7 @@ class MenuLinkReorderTest extends BrowserTestBase {
/**
* Test creating, editing, deleting menu links via node form widget.
*/
- function testDefaultMenuLinkReorder() {
+ public function testDefaultMenuLinkReorder() {
// Add the main menu block.
$this->drupalPlaceBlock('system_menu_block:main');
diff --git a/core/modules/node/src/NodeForm.php b/core/modules/node/src/NodeForm.php
index 9d2ce6d..203c2e6 100644
--- a/core/modules/node/src/NodeForm.php
+++ b/core/modules/node/src/NodeForm.php
@@ -166,7 +166,7 @@ class NodeForm extends ContentEntityForm {
*
* @see \Drupal\node\NodeForm::form()
*/
- function updateStatus($entity_type_id, NodeInterface $node, array $form, FormStateInterface $form_state) {
+ public function updateStatus($entity_type_id, NodeInterface $node, array $form, FormStateInterface $form_state) {
$element = $form_state->getTriggeringElement();
if (isset($element['#published_status'])) {
$node->setPublished($element['#published_status']);
diff --git a/core/modules/node/src/Plugin/views/argument/Type.php b/core/modules/node/src/Plugin/views/argument/Type.php
index 641b163..760397a 100644
--- a/core/modules/node/src/Plugin/views/argument/Type.php
+++ b/core/modules/node/src/Plugin/views/argument/Type.php
@@ -63,11 +63,11 @@ class Type extends StringArgument {
* Override the behavior of title(). Get the user friendly version of the
* node type.
*/
- function title() {
+ public function title() {
return $this->node_type($this->argument);
}
- function node_type($type_name) {
+ public function node_type($type_name) {
$type = $this->nodeTypeStorage->load($type_name);
$output = $type ? $type->label() : $this->t('Unknown content type');
return $output;
diff --git a/core/modules/node/src/Tests/NodeAccessBaseTableTest.php b/core/modules/node/src/Tests/NodeAccessBaseTableTest.php
index ef3ea90..8eb9c9e 100644
--- a/core/modules/node/src/Tests/NodeAccessBaseTableTest.php
+++ b/core/modules/node/src/Tests/NodeAccessBaseTableTest.php
@@ -83,7 +83,7 @@ class NodeAccessBaseTableTest extends NodeTestBase {
* - Test that user 4 can view all content created above.
* - Test that user 4 can view all content on taxonomy listing.
*/
- function testNodeAccessBasic() {
+ public function testNodeAccessBasic() {
$num_simple_users = 2;
$simple_users = [];
diff --git a/core/modules/node/src/Tests/NodeAdminTest.php b/core/modules/node/src/Tests/NodeAdminTest.php
index 7357d23..8bf54cc 100644
--- a/core/modules/node/src/Tests/NodeAdminTest.php
+++ b/core/modules/node/src/Tests/NodeAdminTest.php
@@ -62,7 +62,7 @@ class NodeAdminTest extends NodeTestBase {
/**
* Tests that the table sorting works on the content admin pages.
*/
- function testContentAdminSort() {
+ public function testContentAdminSort() {
$this->drupalLogin($this->adminUser);
$changed = REQUEST_TIME;
@@ -110,7 +110,7 @@ class NodeAdminTest extends NodeTestBase {
*
* @see TaxonomyNodeFilterTestCase
*/
- function testContentAdminPages() {
+ public function testContentAdminPages() {
$this->drupalLogin($this->adminUser);
// Use an explicit changed time to ensure the expected order in the content
diff --git a/core/modules/node/src/Tests/NodeEntityViewModeAlterTest.php b/core/modules/node/src/Tests/NodeEntityViewModeAlterTest.php
index 79baf9b..901887b 100644
--- a/core/modules/node/src/Tests/NodeEntityViewModeAlterTest.php
+++ b/core/modules/node/src/Tests/NodeEntityViewModeAlterTest.php
@@ -19,7 +19,7 @@ class NodeEntityViewModeAlterTest extends NodeTestBase {
/**
* Create a "Basic page" node and verify its consistency in the database.
*/
- function testNodeViewModeChange() {
+ public function testNodeViewModeChange() {
$web_user = $this->drupalCreateUser(['create page content', 'edit own page content']);
$this->drupalLogin($web_user);
diff --git a/core/modules/node/src/Tests/NodeFieldMultilingualTest.php b/core/modules/node/src/Tests/NodeFieldMultilingualTest.php
index ff01dee..edd01b2 100644
--- a/core/modules/node/src/Tests/NodeFieldMultilingualTest.php
+++ b/core/modules/node/src/Tests/NodeFieldMultilingualTest.php
@@ -55,7 +55,7 @@ class NodeFieldMultilingualTest extends WebTestBase {
/**
* Tests whether field languages are correctly set through the node form.
*/
- function testMultilingualNodeForm() {
+ public function testMultilingualNodeForm() {
// Create "Basic page" content.
$langcode = language_get_default_langcode('node', 'page');
$title_key = 'title[0][value]';
@@ -100,7 +100,7 @@ class NodeFieldMultilingualTest extends WebTestBase {
/**
* Tests multilingual field display settings.
*/
- function testMultilingualDisplaySettings() {
+ public function testMultilingualDisplaySettings() {
// Create "Basic page" content.
$title_key = 'title[0][value]';
$title_value = $this->randomMachineName(8);
diff --git a/core/modules/node/src/Tests/NodeFormButtonsTest.php b/core/modules/node/src/Tests/NodeFormButtonsTest.php
index 9f98007..ed2bb8f 100644
--- a/core/modules/node/src/Tests/NodeFormButtonsTest.php
+++ b/core/modules/node/src/Tests/NodeFormButtonsTest.php
@@ -37,7 +37,7 @@ class NodeFormButtonsTest extends NodeTestBase {
/**
* Tests that the right buttons are displayed for saving nodes.
*/
- function testNodeFormButtons() {
+ public function testNodeFormButtons() {
$node_storage = $this->container->get('entity.manager')->getStorage('node');
// Log in as administrative user.
$this->drupalLogin($this->adminUser);
diff --git a/core/modules/node/src/Tests/NodeQueryAlterTest.php b/core/modules/node/src/Tests/NodeQueryAlterTest.php
index ad63d6b..c502d6c 100644
--- a/core/modules/node/src/Tests/NodeQueryAlterTest.php
+++ b/core/modules/node/src/Tests/NodeQueryAlterTest.php
@@ -50,7 +50,7 @@ class NodeQueryAlterTest extends NodeTestBase {
* Verifies that a non-standard table alias can be used, and that a user with
* node access can view the nodes.
*/
- function testNodeQueryAlterLowLevelWithAccess() {
+ public function testNodeQueryAlterLowLevelWithAccess() {
// User with access should be able to view 4 nodes.
try {
$query = db_select('node', 'mytab')
@@ -91,7 +91,7 @@ class NodeQueryAlterTest extends NodeTestBase {
* Verifies that a non-standard table alias can be used, and that a user
* without node access cannot view the nodes.
*/
- function testNodeQueryAlterLowLevelNoAccess() {
+ public function testNodeQueryAlterLowLevelNoAccess() {
// User without access should be able to view 0 nodes.
try {
$query = db_select('node', 'mytab')
@@ -114,7 +114,7 @@ class NodeQueryAlterTest extends NodeTestBase {
* Verifies that a non-standard table alias can be used, and that a user with
* view-only node access cannot edit the nodes.
*/
- function testNodeQueryAlterLowLevelEditAccess() {
+ public function testNodeQueryAlterLowLevelEditAccess() {
// User with view-only access should not be able to edit nodes.
try {
$query = db_select('node', 'mytab')
@@ -142,7 +142,7 @@ class NodeQueryAlterTest extends NodeTestBase {
* add a record to {node_access} paired with a corresponding privilege in
* hook_node_grants().
*/
- function testNodeQueryAlterOverride() {
+ public function testNodeQueryAlterOverride() {
$record = [
'nid' => 0,
'gid' => 0,
diff --git a/core/modules/node/src/Tests/NodeRevisionPermissionsTest.php b/core/modules/node/src/Tests/NodeRevisionPermissionsTest.php
index 6f1409d..93f21fe 100644
--- a/core/modules/node/src/Tests/NodeRevisionPermissionsTest.php
+++ b/core/modules/node/src/Tests/NodeRevisionPermissionsTest.php
@@ -61,7 +61,7 @@ class NodeRevisionPermissionsTest extends NodeTestBase {
/**
* Tests general revision access permissions.
*/
- function testNodeRevisionAccessAnyType() {
+ public function testNodeRevisionAccessAnyType() {
// Create three users, one with each revision permission.
foreach ($this->map as $op => $permission) {
// Create the user.
@@ -119,7 +119,7 @@ class NodeRevisionPermissionsTest extends NodeTestBase {
/**
* Tests revision access permissions for a specific content type.
*/
- function testNodeRevisionAccessPerType() {
+ public function testNodeRevisionAccessPerType() {
// Create three users, one with each revision permission.
foreach ($this->typeMap as $op => $permission) {
// Create the user.
diff --git a/core/modules/node/src/Tests/NodeRevisionsTest.php b/core/modules/node/src/Tests/NodeRevisionsTest.php
index 1979863..c50110d 100644
--- a/core/modules/node/src/Tests/NodeRevisionsTest.php
+++ b/core/modules/node/src/Tests/NodeRevisionsTest.php
@@ -128,7 +128,7 @@ class NodeRevisionsTest extends NodeTestBase {
/**
* Checks node revision related operations.
*/
- function testRevisions() {
+ public function testRevisions() {
$node_storage = $this->container->get('entity.manager')->getStorage('node');
$nodes = $this->nodes;
$logs = $this->revisionLogs;
@@ -297,7 +297,7 @@ class NodeRevisionsTest extends NodeTestBase {
/**
* Checks that revisions are correctly saved without log messages.
*/
- function testNodeRevisionWithoutLogMessage() {
+ public function testNodeRevisionWithoutLogMessage() {
$node_storage = $this->container->get('entity.manager')->getStorage('node');
// Create a node with an initial log message.
$revision_log = $this->randomMachineName(10);
diff --git a/core/modules/node/src/Tests/NodeTestBase.php b/core/modules/node/src/Tests/NodeTestBase.php
index d5a349d..2dcaba5 100644
--- a/core/modules/node/src/Tests/NodeTestBase.php
+++ b/core/modules/node/src/Tests/NodeTestBase.php
@@ -59,7 +59,7 @@ abstract class NodeTestBase extends WebTestBase {
* @param \Drupal\Core\Session\AccountInterface $account
* The user account for which to check access.
*/
- function assertNodeAccess(array $ops, NodeInterface $node, AccountInterface $account) {
+ public function assertNodeAccess(array $ops, NodeInterface $node, AccountInterface $account) {
foreach ($ops as $op => $result) {
$this->assertEqual($result, $this->accessHandler->access($node, $op, $account), $this->nodeAccessAssertMessage($op, $result, $node->language()->getId()));
}
@@ -78,7 +78,7 @@ abstract class NodeTestBase extends WebTestBase {
* (optional) The language code indicating which translation of the node
* to check. If NULL, the untranslated (fallback) access is checked.
*/
- function assertNodeCreateAccess($bundle, $result, AccountInterface $account, $langcode = NULL) {
+ public function assertNodeCreateAccess($bundle, $result, AccountInterface $account, $langcode = NULL) {
$this->assertEqual($result, $this->accessHandler->createAccess($bundle, $account, [
'langcode' => $langcode,
]), $this->nodeAccessAssertMessage('create', $result, $langcode));
@@ -99,7 +99,7 @@ abstract class NodeTestBase extends WebTestBase {
* An assert message string which contains information in plain English
* about the node access permission test that was performed.
*/
- function nodeAccessAssertMessage($operation, $result, $langcode = NULL) {
+ public function nodeAccessAssertMessage($operation, $result, $langcode = NULL) {
return format_string(
'Node access returns @result with operation %op, language code %langcode.',
[
diff --git a/core/modules/node/src/Tests/NodeTitleTest.php b/core/modules/node/src/Tests/NodeTitleTest.php
index 986be79..f9e74bc 100644
--- a/core/modules/node/src/Tests/NodeTitleTest.php
+++ b/core/modules/node/src/Tests/NodeTitleTest.php
@@ -43,7 +43,7 @@ class NodeTitleTest extends NodeTestBase {
/**
* Creates one node and tests if the node title has the correct value.
*/
- function testNodeTitle() {
+ public function testNodeTitle() {
// Create "Basic page" content with title.
// Add the node to the frontpage so we can test if teaser links are
// clickable.
diff --git a/core/modules/node/src/Tests/NodeTitleXSSTest.php b/core/modules/node/src/Tests/NodeTitleXSSTest.php
index 7b4890e..c5bbe95 100644
--- a/core/modules/node/src/Tests/NodeTitleXSSTest.php
+++ b/core/modules/node/src/Tests/NodeTitleXSSTest.php
@@ -14,7 +14,7 @@ class NodeTitleXSSTest extends NodeTestBase {
/**
* Tests XSS functionality with a node entity.
*/
- function testNodeTitleXSS() {
+ public function testNodeTitleXSS() {
// Prepare a user to do the stuff.
$web_user = $this->drupalCreateUser(['create page content', 'edit any page content']);
$this->drupalLogin($web_user);
diff --git a/core/modules/node/src/Tests/NodeTypeTest.php b/core/modules/node/src/Tests/NodeTypeTest.php
index bc42852..d7ebf2b 100644
--- a/core/modules/node/src/Tests/NodeTypeTest.php
+++ b/core/modules/node/src/Tests/NodeTypeTest.php
@@ -25,7 +25,7 @@ class NodeTypeTest extends NodeTestBase {
*
* Load available node types and validate the returned data.
*/
- function testNodeTypeGetFunctions() {
+ public function testNodeTypeGetFunctions() {
$node_types = NodeType::loadMultiple();
$node_names = node_type_get_names();
@@ -42,7 +42,7 @@ class NodeTypeTest extends NodeTestBase {
/**
* Tests creating a content type programmatically and via a form.
*/
- function testNodeTypeCreation() {
+ public function testNodeTypeCreation() {
// Create a content type programmatically.
$type = $this->drupalCreateContentType();
@@ -83,7 +83,7 @@ class NodeTypeTest extends NodeTestBase {
/**
* Tests editing a node type using the UI.
*/
- function testNodeTypeEditing() {
+ public function testNodeTypeEditing() {
$web_user = $this->drupalCreateUser(['bypass node access', 'administer content types', 'administer node fields']);
$this->drupalLogin($web_user);
@@ -142,7 +142,7 @@ class NodeTypeTest extends NodeTestBase {
/**
* Tests deleting a content type that still has content.
*/
- function testNodeTypeDeletion() {
+ public function testNodeTypeDeletion() {
// Create a content type programmatically.
$type = $this->drupalCreateContentType();
diff --git a/core/modules/node/src/Tests/PagePreviewTest.php b/core/modules/node/src/Tests/PagePreviewTest.php
index aa4bcdb..37b00d3 100644
--- a/core/modules/node/src/Tests/PagePreviewTest.php
+++ b/core/modules/node/src/Tests/PagePreviewTest.php
@@ -158,7 +158,7 @@ class PagePreviewTest extends NodeTestBase {
/**
* Checks the node preview functionality.
*/
- function testPagePreview() {
+ public function testPagePreview() {
$title_key = 'title[0][value]';
$body_key = 'body[0][value]';
$term_key = $this->fieldName . '[target_id]';
@@ -394,7 +394,7 @@ class PagePreviewTest extends NodeTestBase {
/**
* Checks the node preview functionality, when using revisions.
*/
- function testPagePreviewWithRevisions() {
+ public function testPagePreviewWithRevisions() {
$title_key = 'title[0][value]';
$body_key = 'body[0][value]';
$term_key = $this->fieldName . '[target_id]';
diff --git a/core/modules/node/src/Tests/Views/NodeFieldFilterTest.php b/core/modules/node/src/Tests/Views/NodeFieldFilterTest.php
index 048c7a9..86ff676 100644
--- a/core/modules/node/src/Tests/Views/NodeFieldFilterTest.php
+++ b/core/modules/node/src/Tests/Views/NodeFieldFilterTest.php
@@ -30,7 +30,7 @@ class NodeFieldFilterTest extends NodeTestBase {
*/
public $nodeTitles = [];
- function setUp() {
+ public function setUp() {
parent::setUp();
// Create Page content type.
diff --git a/core/modules/node/tests/src/Functional/MultiStepNodeFormBasicOptionsTest.php b/core/modules/node/tests/src/Functional/MultiStepNodeFormBasicOptionsTest.php
index 2712c0c..46b803e 100644
--- a/core/modules/node/tests/src/Functional/MultiStepNodeFormBasicOptionsTest.php
+++ b/core/modules/node/tests/src/Functional/MultiStepNodeFormBasicOptionsTest.php
@@ -22,7 +22,7 @@ class MultiStepNodeFormBasicOptionsTest extends NodeTestBase {
/**
* Tests changing the default values of basic options to ensure they persist.
*/
- function testMultiStepNodeFormBasicOptions() {
+ public function testMultiStepNodeFormBasicOptions() {
// Prepare a user to create the node.
$web_user = $this->drupalCreateUser(['administer nodes', 'create page content']);
$this->drupalLogin($web_user);
diff --git a/core/modules/node/tests/src/Functional/NodeAccessFieldTest.php b/core/modules/node/tests/src/Functional/NodeAccessFieldTest.php
index af14546..082f288 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessFieldTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessFieldTest.php
@@ -72,7 +72,7 @@ class NodeAccessFieldTest extends NodeTestBase {
/**
* Tests administering fields when node access is restricted.
*/
- function testNodeAccessAdministerField() {
+ public function testNodeAccessAdministerField() {
// Create a page node.
$fieldData = [];
$value = $fieldData[0]['value'] = $this->randomMachineName();
diff --git a/core/modules/node/tests/src/Functional/NodeAccessLanguageAwareCombinationTest.php b/core/modules/node/tests/src/Functional/NodeAccessLanguageAwareCombinationTest.php
index ff4d1a2..e388afc 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessLanguageAwareCombinationTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessLanguageAwareCombinationTest.php
@@ -192,7 +192,7 @@ class NodeAccessLanguageAwareCombinationTest extends NodeTestBase {
/**
* Tests node access and node access queries with multiple node languages.
*/
- function testNodeAccessLanguageAwareCombination() {
+ public function testNodeAccessLanguageAwareCombination() {
$expected_node_access = ['view' => TRUE, 'update' => FALSE, 'delete' => FALSE];
$expected_node_access_no_access = ['view' => FALSE, 'update' => FALSE, 'delete' => FALSE];
diff --git a/core/modules/node/tests/src/Functional/NodeAccessLanguageAwareTest.php b/core/modules/node/tests/src/Functional/NodeAccessLanguageAwareTest.php
index 9338e5d..48f9dfa 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessLanguageAwareTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessLanguageAwareTest.php
@@ -148,7 +148,7 @@ class NodeAccessLanguageAwareTest extends NodeTestBase {
/**
* Tests node access and node access queries with multiple node languages.
*/
- function testNodeAccessLanguageAware() {
+ public function testNodeAccessLanguageAware() {
// The node_access_test_language module only grants view access.
$expected_node_access = ['view' => TRUE, 'update' => FALSE, 'delete' => FALSE];
$expected_node_access_no_access = ['view' => FALSE, 'update' => FALSE, 'delete' => FALSE];
diff --git a/core/modules/node/tests/src/Functional/NodeAccessLanguageTest.php b/core/modules/node/tests/src/Functional/NodeAccessLanguageTest.php
index 2c9bcc3..1af5660 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessLanguageTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessLanguageTest.php
@@ -42,7 +42,7 @@ class NodeAccessLanguageTest extends NodeTestBase {
/**
* Tests node access with multiple node languages and no private nodes.
*/
- function testNodeAccess() {
+ public function testNodeAccess() {
$web_user = $this->drupalCreateUser(['access content']);
$expected_node_access = ['view' => TRUE, 'update' => FALSE, 'delete' => FALSE];
@@ -112,7 +112,7 @@ class NodeAccessLanguageTest extends NodeTestBase {
/**
* Tests node access with multiple node languages and private nodes.
*/
- function testNodeAccessPrivate() {
+ public function testNodeAccessPrivate() {
$web_user = $this->drupalCreateUser(['access content']);
$expected_node_access = ['view' => TRUE, 'update' => FALSE, 'delete' => FALSE];
$expected_node_access_no_access = ['view' => FALSE, 'update' => FALSE, 'delete' => FALSE];
@@ -175,7 +175,7 @@ class NodeAccessLanguageTest extends NodeTestBase {
/**
* Tests db_select() with a 'node_access' tag and langcode metadata.
*/
- function testNodeAccessQueryTag() {
+ public function testNodeAccessQueryTag() {
// Create a normal authenticated user.
$web_user = $this->drupalCreateUser(['access content']);
diff --git a/core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php b/core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php
index ce6326d..6c5bcd4 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php
@@ -42,7 +42,7 @@ class NodeAccessMenuLinkTest extends NodeTestBase {
/**
* SA-CORE-2015-003: Tests menu links to nodes when node access is restricted.
*/
- function testNodeAccessMenuLink() {
+ public function testNodeAccessMenuLink() {
$menu_link_title = $this->randomString();
diff --git a/core/modules/node/tests/src/Functional/NodeAccessRecordsTest.php b/core/modules/node/tests/src/Functional/NodeAccessRecordsTest.php
index 13ec111..259ed83 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessRecordsTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessRecordsTest.php
@@ -21,7 +21,7 @@ class NodeAccessRecordsTest extends NodeTestBase {
/**
* Creates a node and tests the creation of node access rules.
*/
- function testNodeAccessRecords() {
+ public function testNodeAccessRecords() {
// Create an article node.
$node1 = $this->drupalCreateNode(['type' => 'article']);
$this->assertTrue(Node::load($node1->id()), 'Article node created.');
diff --git a/core/modules/node/tests/src/Functional/NodeCreationTest.php b/core/modules/node/tests/src/Functional/NodeCreationTest.php
index 8f5fb35..4d24901 100644
--- a/core/modules/node/tests/src/Functional/NodeCreationTest.php
+++ b/core/modules/node/tests/src/Functional/NodeCreationTest.php
@@ -33,7 +33,7 @@ class NodeCreationTest extends NodeTestBase {
/**
* Creates a "Basic page" node and verifies its consistency in the database.
*/
- function testNodeCreation() {
+ public function testNodeCreation() {
$node_type_storage = \Drupal::entityManager()->getStorage('node_type');
// Test /node/add page with only one content type.
@@ -83,7 +83,7 @@ class NodeCreationTest extends NodeTestBase {
/**
* Verifies that a transaction rolls back the failed creation.
*/
- function testFailedPageCreation() {
+ public function testFailedPageCreation() {
// Create a node.
$edit = [
'uid' => $this->loggedInUser->id(),
@@ -126,7 +126,7 @@ class NodeCreationTest extends NodeTestBase {
/**
* Creates an unpublished node and confirms correct redirect behavior.
*/
- function testUnpublishedNodeCreation() {
+ public function testUnpublishedNodeCreation() {
// Set the front page to the test page.
$this->config('system.site')->set('page.front', '/test-page')->save();
@@ -178,7 +178,7 @@ class NodeCreationTest extends NodeTestBase {
/**
* Check node/add when no node types exist.
*/
- function testNodeAddWithoutContentTypes() {
+ public function testNodeAddWithoutContentTypes() {
$this->drupalGet('node/add');
$this->assertResponse(200);
$this->assertNoLinkByHref('/admin/structure/types/add');
diff --git a/core/modules/node/tests/src/Functional/NodeLoadMultipleTest.php b/core/modules/node/tests/src/Functional/NodeLoadMultipleTest.php
index b5d991b..2da5d1b 100644
--- a/core/modules/node/tests/src/Functional/NodeLoadMultipleTest.php
+++ b/core/modules/node/tests/src/Functional/NodeLoadMultipleTest.php
@@ -27,7 +27,7 @@ class NodeLoadMultipleTest extends NodeTestBase {
/**
* Creates four nodes and ensures that they are loaded correctly.
*/
- function testNodeMultipleLoad() {
+ public function testNodeMultipleLoad() {
$node1 = $this->drupalCreateNode(['type' => 'article', 'promote' => 1]);
$node2 = $this->drupalCreateNode(['type' => 'article', 'promote' => 1]);
$node3 = $this->drupalCreateNode(['type' => 'article', 'promote' => 0]);
diff --git a/core/modules/node/tests/src/Functional/NodePostSettingsTest.php b/core/modules/node/tests/src/Functional/NodePostSettingsTest.php
index 9699261..4716b30 100644
--- a/core/modules/node/tests/src/Functional/NodePostSettingsTest.php
+++ b/core/modules/node/tests/src/Functional/NodePostSettingsTest.php
@@ -20,7 +20,7 @@ class NodePostSettingsTest extends NodeTestBase {
/**
* Confirms "Basic page" content type and post information is on a new node.
*/
- function testPagePostInfo() {
+ public function testPagePostInfo() {
// Set "Basic page" content type to display post information.
$edit = [];
diff --git a/core/modules/node/tests/src/Functional/NodeRSSContentTest.php b/core/modules/node/tests/src/Functional/NodeRSSContentTest.php
index 2d154e2..0efa336 100644
--- a/core/modules/node/tests/src/Functional/NodeRSSContentTest.php
+++ b/core/modules/node/tests/src/Functional/NodeRSSContentTest.php
@@ -35,7 +35,7 @@ class NodeRSSContentTest extends NodeTestBase {
/**
* Ensures that a new node includes the custom data when added to an RSS feed.
*/
- function testNodeRSSContent() {
+ public function testNodeRSSContent() {
// Create a node.
$node = $this->drupalCreateNode(['type' => 'article', 'promote' => 1]);
diff --git a/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php b/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php
index 85d33cd..d826a49 100644
--- a/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php
+++ b/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php
@@ -80,7 +80,7 @@ class NodeRevisionsAllTest extends NodeTestBase {
/**
* Checks node revision operations.
*/
- function testRevisions() {
+ public function testRevisions() {
$node_storage = $this->container->get('entity.manager')->getStorage('node');
$nodes = $this->nodes;
$logs = $this->revisionLogs;
diff --git a/core/modules/node/tests/src/Functional/NodeRevisionsUiBypassAccessTest.php b/core/modules/node/tests/src/Functional/NodeRevisionsUiBypassAccessTest.php
index d1cbfb8..a3a575d 100644
--- a/core/modules/node/tests/src/Functional/NodeRevisionsUiBypassAccessTest.php
+++ b/core/modules/node/tests/src/Functional/NodeRevisionsUiBypassAccessTest.php
@@ -46,7 +46,7 @@ class NodeRevisionsUiBypassAccessTest extends NodeTestBase {
/**
* Checks that the Revision tab is displayed correctly.
*/
- function testDisplayRevisionTab() {
+ public function testDisplayRevisionTab() {
$this->drupalPlaceBlock('local_tasks_block');
$this->drupalLogin($this->editor);
diff --git a/core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php b/core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php
index 443f75f..cc364cd 100644
--- a/core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php
+++ b/core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php
@@ -36,7 +36,7 @@ class NodeRevisionsUiTest extends NodeTestBase {
/**
* Checks that unchecking 'Create new revision' works when editing a node.
*/
- function testNodeFormSaveWithoutRevision() {
+ public function testNodeFormSaveWithoutRevision() {
$this->drupalLogin($this->editor);
$node_storage = $this->container->get('entity.manager')->getStorage('node');
diff --git a/core/modules/node/tests/src/Functional/NodeSaveTest.php b/core/modules/node/tests/src/Functional/NodeSaveTest.php
index 9f57a5e..ced9957 100644
--- a/core/modules/node/tests/src/Functional/NodeSaveTest.php
+++ b/core/modules/node/tests/src/Functional/NodeSaveTest.php
@@ -42,7 +42,7 @@ class NodeSaveTest extends NodeTestBase {
* - save the content
* - check if node exists
*/
- function testImport() {
+ public function testImport() {
// Node ID must be a number that is not in the database.
$nids = \Drupal::entityManager()->getStorage('node')->getQuery()
->sort('nid', 'DESC')
@@ -76,7 +76,7 @@ class NodeSaveTest extends NodeTestBase {
/**
* Verifies accuracy of the "created" and "changed" timestamp functionality.
*/
- function testTimestamps() {
+ public function testTimestamps() {
// Use the default timestamps.
$edit = [
'uid' => $this->webUser->id(),
@@ -137,7 +137,7 @@ class NodeSaveTest extends NodeTestBase {
* This test determines changes in hook_ENTITY_TYPE_presave() and verifies
* that the static node load cache is cleared upon save.
*/
- function testDeterminingChanges() {
+ public function testDeterminingChanges() {
// Initial creation.
$node = Node::create([
'uid' => $this->webUser->id(),
@@ -172,7 +172,7 @@ class NodeSaveTest extends NodeTestBase {
*
* @see node_test_node_insert()
*/
- function testNodeSaveOnInsert() {
+ public function testNodeSaveOnInsert() {
// node_test_node_insert() triggers a save on insert if the title equals
// 'new'.
$node = $this->drupalCreateNode(['title' => 'new']);
diff --git a/core/modules/node/tests/src/Functional/NodeTemplateSuggestionsTest.php b/core/modules/node/tests/src/Functional/NodeTemplateSuggestionsTest.php
index 7b99338..dcadf93 100644
--- a/core/modules/node/tests/src/Functional/NodeTemplateSuggestionsTest.php
+++ b/core/modules/node/tests/src/Functional/NodeTemplateSuggestionsTest.php
@@ -12,7 +12,7 @@ class NodeTemplateSuggestionsTest extends NodeTestBase {
/**
* Tests if template_preprocess_node() generates the correct suggestions.
*/
- function testNodeThemeHookSuggestions() {
+ public function testNodeThemeHookSuggestions() {
// Create node to be rendered.
$node = $this->drupalCreateNode();
$view_mode = 'full';
diff --git a/core/modules/node/tests/src/Functional/NodeTestBase.php b/core/modules/node/tests/src/Functional/NodeTestBase.php
index 2341b9e..2ef0d73 100644
--- a/core/modules/node/tests/src/Functional/NodeTestBase.php
+++ b/core/modules/node/tests/src/Functional/NodeTestBase.php
@@ -56,7 +56,7 @@ abstract class NodeTestBase extends BrowserTestBase {
* @param \Drupal\Core\Session\AccountInterface $account
* The user account for which to check access.
*/
- function assertNodeAccess(array $ops, NodeInterface $node, AccountInterface $account) {
+ public function assertNodeAccess(array $ops, NodeInterface $node, AccountInterface $account) {
foreach ($ops as $op => $result) {
$this->assertEqual($result, $this->accessHandler->access($node, $op, $account), $this->nodeAccessAssertMessage($op, $result, $node->language()->getId()));
}
@@ -75,7 +75,7 @@ abstract class NodeTestBase extends BrowserTestBase {
* (optional) The language code indicating which translation of the node
* to check. If NULL, the untranslated (fallback) access is checked.
*/
- function assertNodeCreateAccess($bundle, $result, AccountInterface $account, $langcode = NULL) {
+ public function assertNodeCreateAccess($bundle, $result, AccountInterface $account, $langcode = NULL) {
$this->assertEqual($result, $this->accessHandler->createAccess($bundle, $account, [
'langcode' => $langcode,
]), $this->nodeAccessAssertMessage('create', $result, $langcode));
@@ -96,7 +96,7 @@ abstract class NodeTestBase extends BrowserTestBase {
* An assert message string which contains information in plain English
* about the node access permission test that was performed.
*/
- function nodeAccessAssertMessage($operation, $result, $langcode = NULL) {
+ public function nodeAccessAssertMessage($operation, $result, $langcode = NULL) {
return format_string(
'Node access returns @result with operation %op, language code %langcode.',
[
diff --git a/core/modules/node/tests/src/Functional/NodeTypeInitialLanguageTest.php b/core/modules/node/tests/src/Functional/NodeTypeInitialLanguageTest.php
index 3295e2b..9c442fd 100644
--- a/core/modules/node/tests/src/Functional/NodeTypeInitialLanguageTest.php
+++ b/core/modules/node/tests/src/Functional/NodeTypeInitialLanguageTest.php
@@ -31,7 +31,7 @@ class NodeTypeInitialLanguageTest extends NodeTestBase {
* The default initial language must be the site's default, and the language
* locked option must be on.
*/
- function testNodeTypeInitialLanguageDefaults() {
+ public function testNodeTypeInitialLanguageDefaults() {
$this->drupalGet('admin/structure/types/manage/article');
$this->assertOptionSelected('edit-language-configuration-langcode', LanguageInterface::LANGCODE_SITE_DEFAULT, 'The default initial language is the site default.');
$this->assertNoFieldChecked('edit-language-configuration-language-alterable', 'Language selector is hidden by default.');
@@ -89,7 +89,7 @@ class NodeTypeInitialLanguageTest extends NodeTestBase {
/**
* Tests language field visibility features.
*/
- function testLanguageFieldVisibility() {
+ public function testLanguageFieldVisibility() {
// Creates a node to test Language field visibility feature.
$edit = [
'title[0][value]' => $this->randomMachineName(8),
diff --git a/core/modules/node/tests/src/Functional/PageViewTest.php b/core/modules/node/tests/src/Functional/PageViewTest.php
index 1c6231f..9f7e414 100644
--- a/core/modules/node/tests/src/Functional/PageViewTest.php
+++ b/core/modules/node/tests/src/Functional/PageViewTest.php
@@ -13,7 +13,7 @@ class PageViewTest extends NodeTestBase {
/**
* Tests an anonymous and unpermissioned user attempting to edit the node.
*/
- function testPageView() {
+ public function testPageView() {
// Create a node to view.
$node = $this->drupalCreateNode();
$this->assertTrue(Node::load($node->id()), 'Node created.');
diff --git a/core/modules/node/tests/src/Kernel/NodeConditionTest.php b/core/modules/node/tests/src/Kernel/NodeConditionTest.php
index 5bf7c73..a30867c 100644
--- a/core/modules/node/tests/src/Kernel/NodeConditionTest.php
+++ b/core/modules/node/tests/src/Kernel/NodeConditionTest.php
@@ -30,7 +30,7 @@ class NodeConditionTest extends EntityKernelTestBase {
/**
* Tests conditions.
*/
- function testConditions() {
+ public function testConditions() {
$manager = $this->container->get('plugin.manager.condition', $this->container->get('container.namespaces'));
$this->createUser();
diff --git a/core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php b/core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php
index f57768e..ae66dca 100644
--- a/core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php
+++ b/core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php
@@ -44,7 +44,7 @@ class NodeFieldAccessTest extends EntityKernelTestBase {
/**
* Test permissions on nodes status field.
*/
- function testAccessToAdministrativeFields() {
+ public function testAccessToAdministrativeFields() {
// Create the page node type with revisions disabled.
$page = NodeType::create([
diff --git a/core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php b/core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php
index 829bf4d..dd39b6d 100644
--- a/core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php
+++ b/core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php
@@ -39,7 +39,7 @@ class NodeTokenReplaceTest extends TokenReplaceKernelTestBase {
/**
* Creates a node, then tests the tokens generated from it.
*/
- function testNodeTokenReplacement() {
+ public function testNodeTokenReplacement() {
$url_options = [
'absolute' => TRUE,
'language' => $this->interfaceLanguage,
diff --git a/core/modules/options/src/Tests/OptionsDynamicValuesValidationTest.php b/core/modules/options/src/Tests/OptionsDynamicValuesValidationTest.php
index 0ad479b..a7d7f3f 100644
--- a/core/modules/options/src/Tests/OptionsDynamicValuesValidationTest.php
+++ b/core/modules/options/src/Tests/OptionsDynamicValuesValidationTest.php
@@ -11,7 +11,7 @@ class OptionsDynamicValuesValidationTest extends OptionsDynamicValuesTestBase {
/**
* Test that allowed values function gets the entity.
*/
- function testDynamicAllowedValues() {
+ public function testDynamicAllowedValues() {
// Verify that validation passes against every value we had.
foreach ($this->test as $key => $value) {
$this->entity->test_options->value = $value;
diff --git a/core/modules/options/src/Tests/OptionsFieldUITest.php b/core/modules/options/src/Tests/OptionsFieldUITest.php
index 76e076e..1ba4cdd 100644
--- a/core/modules/options/src/Tests/OptionsFieldUITest.php
+++ b/core/modules/options/src/Tests/OptionsFieldUITest.php
@@ -64,7 +64,7 @@ class OptionsFieldUITest extends FieldTestBase {
/**
* Options (integer) : test 'allowed values' input.
*/
- function testOptionsAllowedValuesInteger() {
+ public function testOptionsAllowedValuesInteger() {
$this->fieldName = 'field_options_integer';
$this->createOptionsField('list_integer');
@@ -120,7 +120,7 @@ class OptionsFieldUITest extends FieldTestBase {
/**
* Options (float) : test 'allowed values' input.
*/
- function testOptionsAllowedValuesFloat() {
+ public function testOptionsAllowedValuesFloat() {
$this->fieldName = 'field_options_float';
$this->createOptionsField('list_float');
@@ -180,7 +180,7 @@ class OptionsFieldUITest extends FieldTestBase {
/**
* Options (text) : test 'allowed values' input.
*/
- function testOptionsAllowedValuesText() {
+ public function testOptionsAllowedValuesText() {
$this->fieldName = 'field_options_text';
$this->createOptionsField('list_string');
@@ -245,7 +245,7 @@ class OptionsFieldUITest extends FieldTestBase {
/**
* Options (text) : test 'trimmed values' input.
*/
- function testOptionsTrimmedValuesText() {
+ public function testOptionsTrimmedValuesText() {
$this->fieldName = 'field_options_trimmed_text';
$this->createOptionsField('list_string');
@@ -291,7 +291,7 @@ class OptionsFieldUITest extends FieldTestBase {
* @param $message
* Message to display.
*/
- function assertAllowedValuesInput($input_string, $result, $message) {
+ public function assertAllowedValuesInput($input_string, $result, $message) {
$edit = ['settings[allowed_values]' => $input_string];
$this->drupalPostForm($this->adminPath, $edit, t('Save field settings'));
$this->assertNoRaw('&amp;lt;', 'The page does not have double escaped HTML tags.');
@@ -308,7 +308,7 @@ class OptionsFieldUITest extends FieldTestBase {
/**
* Tests normal and key formatter display on node display.
*/
- function testNodeDisplay() {
+ public function testNodeDisplay() {
$this->fieldName = strtolower($this->randomMachineName());
$this->createOptionsField('list_integer');
$node = $this->drupalCreateNode(['type' => $this->type]);
diff --git a/core/modules/options/src/Tests/OptionsSelectDynamicValuesTest.php b/core/modules/options/src/Tests/OptionsSelectDynamicValuesTest.php
index 72c0d55..e526da3 100644
--- a/core/modules/options/src/Tests/OptionsSelectDynamicValuesTest.php
+++ b/core/modules/options/src/Tests/OptionsSelectDynamicValuesTest.php
@@ -11,7 +11,7 @@ class OptionsSelectDynamicValuesTest extends OptionsDynamicValuesTestBase {
/**
* Tests the 'options_select' widget (single select).
*/
- function testSelectListDynamic() {
+ public function testSelectListDynamic() {
// Create an entity.
$this->entity->save();
diff --git a/core/modules/options/src/Tests/OptionsWidgetsTest.php b/core/modules/options/src/Tests/OptionsWidgetsTest.php
index 8a907c2..48f9c1a 100644
--- a/core/modules/options/src/Tests/OptionsWidgetsTest.php
+++ b/core/modules/options/src/Tests/OptionsWidgetsTest.php
@@ -84,7 +84,7 @@ class OptionsWidgetsTest extends FieldTestBase {
/**
* Tests the 'options_buttons' widget (single select).
*/
- function testRadioButtons() {
+ public function testRadioButtons() {
// Create an instance of the 'single value' field.
$field = FieldConfig::create([
'field_storage' => $this->card1,
@@ -141,7 +141,7 @@ class OptionsWidgetsTest extends FieldTestBase {
/**
* Tests the 'options_buttons' widget (multiple select).
*/
- function testCheckBoxes() {
+ public function testCheckBoxes() {
// Create an instance of the 'multiple values' field.
$field = FieldConfig::create([
'field_storage' => $this->card2,
@@ -230,7 +230,7 @@ class OptionsWidgetsTest extends FieldTestBase {
/**
* Tests the 'options_select' widget (single select).
*/
- function testSelectListSingle() {
+ public function testSelectListSingle() {
// Create an instance of the 'single value' field.
$field = FieldConfig::create([
'field_storage' => $this->card1,
@@ -330,7 +330,7 @@ class OptionsWidgetsTest extends FieldTestBase {
/**
* Tests the 'options_select' widget (multiple select).
*/
- function testSelectListMultiple() {
+ public function testSelectListMultiple() {
// Create an instance of the 'multiple values' field.
$field = FieldConfig::create([
'field_storage' => $this->card2,
@@ -451,7 +451,7 @@ class OptionsWidgetsTest extends FieldTestBase {
/**
* Tests the 'options_select' and 'options_button' widget for empty value.
*/
- function testEmptyValue() {
+ public function testEmptyValue() {
// Create an instance of the 'single value' field.
$field = FieldConfig::create([
'field_storage' => $this->card1,
diff --git a/core/modules/options/tests/src/Kernel/OptionsFieldTest.php b/core/modules/options/tests/src/Kernel/OptionsFieldTest.php
index d3912a2..401d6bc 100644
--- a/core/modules/options/tests/src/Kernel/OptionsFieldTest.php
+++ b/core/modules/options/tests/src/Kernel/OptionsFieldTest.php
@@ -24,7 +24,7 @@ class OptionsFieldTest extends OptionsFieldUnitTestBase {
/**
* Test that allowed values can be updated.
*/
- function testUpdateAllowedValues() {
+ public function testUpdateAllowedValues() {
// All three options appear.
$entity = EntityTest::create();
$form = \Drupal::service('entity.form_builder')->getForm($entity);
diff --git a/core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php b/core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php
index c3aeb84..6ec8a29 100644
--- a/core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php
+++ b/core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php
@@ -36,7 +36,7 @@ class PageCacheTagsIntegrationTest extends WebTestBase {
/**
* Test that cache tags are properly bubbled up to the page level.
*/
- function testPageCacheTags() {
+ public function testPageCacheTags() {
// Create two nodes.
$author_1 = $this->drupalCreateUser();
$node_1 = $this->drupalCreateNode([
diff --git a/core/modules/page_cache/src/Tests/PageCacheTest.php b/core/modules/page_cache/src/Tests/PageCacheTest.php
index aec0451..c1ee854 100644
--- a/core/modules/page_cache/src/Tests/PageCacheTest.php
+++ b/core/modules/page_cache/src/Tests/PageCacheTest.php
@@ -44,7 +44,7 @@ class PageCacheTest extends WebTestBase {
* Since tag based invalidation works, we know that our tag properly
* persisted.
*/
- function testPageCacheTags() {
+ public function testPageCacheTags() {
$config = $this->config('system.performance');
$config->set('cache.page.max_age', 300);
$config->save();
@@ -78,7 +78,7 @@ class PageCacheTest extends WebTestBase {
/**
* Test that the page cache doesn't depend on cacheability headers.
*/
- function testPageCacheTagsIndependentFromCacheabilityHeaders() {
+ public function testPageCacheTagsIndependentFromCacheabilityHeaders() {
$this->setHttpResponseDebugCacheabilityHeaders(FALSE);
$path = 'system-test/cache_tags_page';
@@ -111,7 +111,7 @@ class PageCacheTest extends WebTestBase {
* Tests support for different cache items with different request formats
* specified via a query parameter.
*/
- function testQueryParameterFormatRequests() {
+ public function testQueryParameterFormatRequests() {
$config = $this->config('system.performance');
$config->set('cache.page.max_age', 300);
$config->save();
@@ -175,7 +175,7 @@ class PageCacheTest extends WebTestBase {
/**
* Tests support of requests with If-Modified-Since and If-None-Match headers.
*/
- function testConditionalRequests() {
+ public function testConditionalRequests() {
$config = $this->config('system.performance');
$config->set('cache.page.max_age', 300);
$config->save();
@@ -219,7 +219,7 @@ class PageCacheTest extends WebTestBase {
/**
* Tests cache headers.
*/
- function testPageCache() {
+ public function testPageCache() {
$config = $this->config('system.performance');
$config->set('cache.page.max_age', 300);
$config->set('response.gzip', 1);
@@ -332,7 +332,7 @@ class PageCacheTest extends WebTestBase {
/**
* Tests the 4xx-response cache tag is added and invalidated.
*/