From f3ad0680a32104fc9fc33e1dc62075ad8317a8a7 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Mon, 24 May 2021 14:02:30 +0100 Subject: [PATCH] Issue #3133162 by jungle, ravi.shankar, Deepak Goyal, Neslee Canil Pinto, anmolgoyal74, xjm, Kristen Pol: Replace the start verb Test with Tests in method comments of tests --- .../Kernel/Migrate/d6/MigrateActionsTest.php | 2 +- .../Kernel/Migrate/d7/MigrateActionsTest.php | 2 +- .../src/Functional/FeedFetcherPluginTest.php | 2 +- .../Functional/FeedProcessorPluginTest.php | 6 ++-- .../Migrate/d6/MigrateAggregatorItemTest.php | 2 +- .../Migrate/d7/MigrateAggregatorItemTest.php | 2 +- .../AggregatorPluginSettingsBaseTest.php | 2 +- .../tests/src/Functional/BasicAuthTest.php | 6 ++-- .../tests/src/Functional/BlockCacheTest.php | 10 +++--- .../src/Functional/BlockFormInBlockTest.php | 4 +-- .../block/tests/src/Functional/BlockTest.php | 10 +++--- .../tests/src/Functional/BlockUiTest.php | 4 +-- .../Functional/NonDefaultBlockAdminTest.php | 2 +- .../src/Functional/Views/DisplayBlockTest.php | 2 +- .../tests/src/Kernel/BlockInterfaceTest.php | 2 +- .../Functional/BlockContentCreationTest.php | 4 +-- ...ockContentEntityReferenceSelectionTest.php | 2 +- .../src/Unit/Access/DependentAccessTest.php | 2 +- .../src/Functional/BookBreadcrumbTest.php | 4 +-- .../book/tests/src/Kernel/BookInstallTest.php | 2 +- .../src/Kernel/BreakpointDiscoveryTest.php | 8 ++--- .../Plugin/CKEditorPlugin/InternalTest.php | 2 +- .../color/tests/src/Functional/ColorTest.php | 4 +-- .../tests/src/Functional/CommentAdminTest.php | 2 +- .../src/Functional/CommentCacheTagsTest.php | 2 +- .../src/Functional/CommentInterfaceTest.php | 4 +-- .../src/Functional/CommentLanguageTest.php | 2 +- .../src/Functional/CommentNodeAccessTest.php | 2 +- .../src/Functional/Views/CommentAdminTest.php | 2 +- .../Views/CommentOperationsTest.php | 2 +- .../Views/CommentRestExportTest.php | 2 +- .../src/Functional/Views/CommentRowTest.php | 2 +- .../src/Functional/Views/NodeCommentsTest.php | 2 +- .../tests/src/Functional/Views/RowRssTest.php | 2 +- .../tests/src/Kernel/CommentBundlesTest.php | 2 +- .../src/Kernel/CommentFieldAccessTest.php | 2 +- .../src/Kernel/CommentIntegrationTest.php | 2 +- .../d6/MigrateCommentFieldInstanceTest.php | 2 +- .../src/Kernel/Views/CommentFieldNameTest.php | 2 +- .../src/Kernel/Views/CommentLinksTest.php | 4 +-- .../src/Kernel/Views/CommentUserNameTest.php | 2 +- .../tests/src/Unit/CommentLinkBuilderTest.php | 2 +- .../tests/src/Unit/Entity/CommentLockTest.php | 2 +- .../ConfigDraggableListBuilderTest.php | 2 +- .../src/Functional/ConfigEntityListTest.php | 2 +- .../Functional/ConfigTranslationUiTest.php | 9 +++--- ...igrateSystemMaintenanceTranslationTest.php | 2 +- .../tests/src/Kernel/MessageEntityTest.php | 2 +- .../ContentModerationWorkflowTypeTest.php | 2 +- .../Functional/DefaultModerationStateTest.php | 4 +-- .../Functional/ModeratedContentViewTest.php | 2 +- .../src/Functional/ModerationActionsTest.php | 2 +- .../src/Functional/ModerationFormTest.php | 4 +-- .../ModerationRevisionRevertTest.php | 2 +- .../Functional/ModerationStateAccessTest.php | 2 +- .../ContentModerationPermissionsTest.php | 2 +- ...ontentModerationStateStorageSchemaTest.php | 2 +- .../src/Kernel/ContentModerationStateTest.php | 6 ++-- .../Kernel/ContentModerationSyncingTest.php | 10 +++--- .../ContentModerationWorkflowConfigTest.php | 2 +- .../EntityStateChangeValidationTest.php | 10 +++--- .../tests/src/Kernel/EntityTypeInfoTest.php | 4 +-- .../ModerationStateFieldItemListTest.php | 24 +++++++------- .../src/Kernel/ModerationStateWidgetTest.php | 2 +- .../tests/src/Kernel/StateFormatterTest.php | 2 +- .../Kernel/ViewsModerationStateFilterTest.php | 2 +- .../Kernel/ViewsModerationStateSortTest.php | 4 +-- .../src/Unit/LatestRevisionCheckTest.php | 2 +- .../ContentTranslationLanguageChangeTest.php | 4 +-- .../ContentTranslationOperationsTest.php | 2 +- .../ContentTranslationStandardFieldsTest.php | 2 +- .../ContentTranslationUITestBase.php | 2 +- .../ContentTranslationWorkflowsTest.php | 2 +- ...ontentTranslationFieldSyncRevisionTest.php | 2 +- .../ContentTranslationModuleInstallTest.php | 2 +- .../ContextualLinksTest.php | 4 +-- .../src/Functional/DateTimeFieldTest.php | 4 +-- .../src/Kernel/Views/ArgumentDateTimeTest.php | 14 ++++---- .../src/Kernel/Views/DateTimeSchemaTest.php | 2 +- .../tests/src/Kernel/Views/FilterDateTest.php | 4 +-- .../src/Kernel/Views/FilterDateTimeTest.php | 8 ++--- .../src/Functional/DateRangeFieldTest.php | 4 +-- .../tests/src/Kernel/Views/FilterDateTest.php | 2 +- .../dblog/tests/src/Functional/DbLogTest.php | 8 ++--- .../src/Kernel/Views/ViewsIntegrationTest.php | 2 +- .../src/Functional/EditorDialogAccessTest.php | 2 +- .../src/Functional/EditorLoadingTest.php | 2 +- .../QuickEditIntegrationLoadingTest.php | 4 +-- .../Functional/Boolean/BooleanFieldTest.php | 2 +- .../tests/src/Functional/FieldAccessTest.php | 2 +- .../tests/src/Functional/FieldHelpTest.php | 2 +- .../src/Functional/Number/NumberFieldTest.php | 6 ++-- .../Functional/ReEnableModuleFieldTest.php | 2 +- .../src/Functional/String/StringFieldTest.php | 2 +- .../Number/NumberFieldTest.php | 2 +- .../EntityReferenceItemTest.php | 2 +- .../tests/src/Kernel/FieldAttachOtherTest.php | 4 +-- .../src/Kernel/FieldAttachStorageTest.php | 10 +++--- .../field/tests/src/Kernel/FieldCrudTest.php | 10 +++--- .../tests/src/Kernel/FieldStorageCrudTest.php | 14 ++++---- .../d6/MigrateFieldFormatterSettingsTest.php | 2 +- .../d6/MigrateFieldWidgetSettingsTest.php | 2 +- ...MigrateFieldInstanceWidgetSettingsTest.php | 2 +- .../tests/src/Kernel/TranslationTest.php | 2 +- .../src/Unit/FieldConfigEntityUnitTest.php | 2 +- .../tests/src/Kernel/EntityDisplayTest.php | 4 +-- .../tests/src/Functional/DownloadTest.php | 8 ++--- .../tests/src/Functional/SaveUploadTest.php | 18 +++++------ .../AjaxFileManagedMultipleTest.php | 2 +- .../FileFieldValidateTest.php | 2 +- .../file/tests/src/Kernel/CopyTest.php | 8 ++--- .../file/tests/src/Kernel/FileUrlTest.php | 2 +- .../Kernel/Migrate/d6/MigrateUploadTest.php | 2 +- .../file/tests/src/Kernel/MoveTest.php | 8 ++--- .../file/tests/src/Kernel/SaveDataTest.php | 10 +++--- .../file/tests/src/Kernel/SpaceUsedTest.php | 2 +- .../file/tests/src/Kernel/ValidateTest.php | 2 +- .../file/tests/src/Kernel/ValidatorTest.php | 4 +-- .../src/Kernel/FilterCaptionTwigDebugTest.php | 2 +- .../hal/tests/src/Kernel/DenormalizeTest.php | 2 +- .../src/Functional/ImageAdminStylesTest.php | 7 ++-- .../src/Functional/ImageDimensionsTest.php | 2 +- .../src/Functional/ImageFieldDisplayTest.php | 8 ++--- .../src/Functional/ImageFieldValidateTest.php | 6 ++-- .../ImageFieldValidateTest.php | 2 +- .../QuickEditImageTest.php | 2 +- .../Migrate/d6/MigrateImageCacheTest.php | 6 ++-- .../Kernel/Migrate/d6/MigrateImageTest.php | 2 +- .../Migrate/d7/MigrateImageStylesTest.php | 2 +- .../Functional/ConfigurableLanguageTest.php | 2 +- .../src/Functional/JsonApiFunctionalTest.php | 6 ++-- .../src/Functional/MenuLinkContentTest.php | 2 +- .../jsonapi/tests/src/Functional/UserTest.php | 2 +- .../ConfigurableLanguageManagerTest.php | 4 +-- .../src/Functional/LanguageSwitchingTest.php | 4 +-- .../LanguageUILanguageNegotiationTest.php | 2 +- .../ConfigurableLanguageResourceTestBase.php | 2 +- .../Condition/LanguageConditionTest.php | 2 +- .../LanguageDependencyInjectionTest.php | 5 ++- .../src/Kernel/LanguageSelectWidgetTest.php | 2 +- .../src/Unit/LanguageNegotiationUrlTest.php | 4 +-- .../src/Functional/LayoutBuilderTest.php | 2 +- .../InlineBlockPrivateFilesTest.php | 2 +- .../LayoutBuilderNestedFormUiTest.php | 4 +-- .../TestMultiWidthLayoutsTest.php | 2 +- .../LayoutBuilderEntityViewDisplayTest.php | 2 +- .../tests/src/Kernel/LayoutTest.php | 2 +- .../tests/src/Functional/LinkFieldTest.php | 4 +-- .../Plugin/migrate/process/FieldLinkTest.php | 4 +-- .../LocaleConfigTranslationImportTest.php | 8 ++--- .../LocaleConfigTranslationTest.php | 2 +- .../src/Functional/LocaleContentTest.php | 4 +-- .../tests/src/Functional/LocaleExportTest.php | 4 +-- .../Functional/LocaleImportFunctionalTest.php | 8 ++--- .../src/Functional/LocaleLocaleLookupTest.php | 4 +-- .../tests/src/Functional/LocalePathTest.php | 2 +- .../tests/src/Kernel/LocaleStringTest.php | 4 +-- .../tests/src/Functional/MediaAccessTest.php | 4 +-- .../src/Functional/MediaOverviewPageTest.php | 2 +- .../src/Functional/MediaSettingsTest.php | 2 +- .../src/Functional/MediaSourceFileTest.php | 2 +- .../src/Functional/MediaUiFunctionalTest.php | 4 +-- .../CKEditorIntegrationTest.php | 4 +-- .../FunctionalJavascript/MediaDisplayTest.php | 2 +- .../MediaReferenceFieldHelpTest.php | 2 +- .../MediaSourceOEmbedVideoTest.php | 2 +- .../MediaSourceTestBase.php | 2 +- .../MediaStandardProfileTest.php | 10 +++--- .../MediaTypeCreationTest.php | 2 +- .../tests/src/Kernel/MediaTranslationTest.php | 2 +- .../EmbeddedFormWidgetTest.php | 2 +- .../src/Kernel/MediaLibraryStateTest.php | 4 +-- .../tests/src/Kernel/MenuLinksTest.php | 2 +- .../src/Functional/MenuLinkReorderTest.php | 2 +- .../tests/src/Functional/MenuUiNodeTest.php | 2 +- .../tests/src/Functional/MenuUiTest.php | 4 +-- .../Kernel/MigrateEntityContentBaseTest.php | 2 +- .../Kernel/MigrateExternalTranslatedTest.php | 2 +- .../tests/src/Kernel/MigrateStubTest.php | 2 +- .../src/Kernel/Plugin/EntityExistsTest.php | 2 +- .../tests/src/Kernel/Plugin/LogTest.php | 2 +- .../MigrationPluginConfigurationTest.php | 2 +- .../Plugin/MigrationProvidersExistTest.php | 2 +- .../tests/src/Kernel/process/FileCopyTest.php | 10 +++--- .../tests/src/Unit/Event/EventBaseTest.php | 4 +-- .../src/Unit/Event/MigrateImportEventTest.php | 4 +-- .../Event/MigratePostRowSaveEventTest.php | 4 +-- .../Unit/Event/MigratePreRowSaveEventTest.php | 2 +- .../tests/src/Unit/MigrateSourceTest.php | 22 ++++++------- .../destination/EntityContentBaseTest.php | 6 ++-- .../migrate/tests/src/Unit/RowTest.php | 4 +-- .../tests/src/Unit/destination/ConfigTest.php | 4 +-- .../Unit/destination/EntityRevisionTest.php | 10 +++--- .../tests/src/Unit/process/CallbackTest.php | 4 +-- .../tests/src/Unit/process/ConcatTest.php | 6 ++-- .../tests/src/Unit/process/ExplodeTest.php | 10 +++--- .../tests/src/Unit/process/FlattenTest.php | 2 +- .../src/Unit/process/MigrationLookupTest.php | 2 +- .../src/Tests/StubTestTrait.php | 3 +- .../src/Kernel/IdMapTableNoDummyTest.php | 2 +- .../src/Kernel/d6/EntityContentBaseTest.php | 2 +- .../src/Kernel/d6/FollowUpMigrationsTest.php | 2 +- .../src/Kernel/d7/FollowUpMigrationsTest.php | 2 +- .../tests/src/Unit/FieldDiscoveryTest.php | 2 +- .../NodeFormSaveChangedTimeTest.php | 2 +- .../src/Functional/NodeTranslationUITest.php | 2 +- .../src/Functional/Views/BulkFormTest.php | 2 +- .../NodePreviewLinkTest.php | 2 +- .../TestSettingSummariesContentType.php | 2 +- .../Migrate/d6/MigrateNodeDeriverTest.php | 4 +-- .../Migrate/d6/MigrateNodeRevisionTest.php | 2 +- .../src/Kernel/Migrate/d6/MigrateNodeTest.php | 2 +- .../Migrate/d7/MigrateNodeDeriverTest.php | 4 +-- .../src/Kernel/Migrate/d7/MigrateNodeTest.php | 4 +-- .../node/tests/src/Kernel/NodeAccessTest.php | 2 +- .../tests/src/Kernel/NodeFieldAccessTest.php | 2 +- .../node/tests/src/Kernel/NodeOwnerTest.php | 2 +- .../src/Kernel/Views/NidArgumentTest.php | 2 +- .../OptionsDynamicValuesValidationTest.php | 2 +- .../tests/src/Kernel/OptionsFieldTest.php | 2 +- .../PageCacheTagsIntegrationTest.php | 2 +- .../tests/src/Functional/PageCacheTest.php | 10 +++--- .../tests/src/Functional/PathLanguageTest.php | 2 +- .../src/Functional/PathLanguageUiTest.php | 2 +- .../Kernel/Migrate/d6/MigrateUrlAliasTest.php | 4 +-- .../Kernel/Migrate/d7/MigrateUrlAliasTest.php | 2 +- .../Migrate/d7/MigrateUrlAliasTestBase.php | 2 +- .../path/tests/src/Kernel/PathItemTest.php | 2 +- .../src/Functional/UrlAlterFunctionalTest.php | 2 +- .../QuickEditLoadingTest.php | 4 +-- .../modules/rdf/tests/src/Kernel/CrudTest.php | 4 +-- .../tests/src/Kernel/RdfaAttributesTest.php | 10 +++--- .../Functional/ResponsiveImageAdminUITest.php | 2 +- .../ResponsiveImageFieldDisplayTest.php | 4 +-- .../EntityResource/EntityResourceTestBase.php | 2 +- .../Functional/Views/StyleSerializerTest.php | 4 +-- .../tests/src/Functional/SearchBlockTest.php | 2 +- .../src/Functional/SearchRankingTest.php | 2 +- .../tests/src/Kernel/SearchMatchTest.php | 6 ++-- .../tests/src/Kernel/EntityResolverTest.php | 2 +- .../src/Kernel/EntitySerializationTest.php | 4 +-- .../src/Kernel/MapDataNormalizerTest.php | 2 +- .../ChainEntityResolverTest.php | 10 +++--- .../Unit/EntityResolver/UuidResolverTest.php | 8 ++--- .../Normalizer/ComplexDataNormalizerTest.php | 4 +-- .../OverriddenConfigurationTest.php | 2 +- .../SettingsTrayBlockFormTest.php | 2 +- .../Migrate/d7/MigrateShortcutSetTest.php | 2 +- .../d7/MigrateShortcutSetUsersTest.php | 2 +- .../Kernel/Migrate/d7/MigrateShortcutTest.php | 2 +- .../syslog/tests/src/Kernel/SyslogTest.php | 2 +- .../RenderAttachedTestController.php | 10 +++--- .../src/TestControllers.php | 2 +- .../Functional/Ajax/OffCanvasDialogTest.php | 2 +- .../src/Functional/Batch/ProcessingTest.php | 2 +- .../Datetime/DrupalDateTimeTest.php | 4 +-- .../Entity/EntityListBuilderTest.php | 2 +- .../EntityReferenceSelectionAccessTest.php | 8 ++--- .../Functional/Form/ElementsLabelsTest.php | 4 +-- .../Form/ElementsTableSelectTest.php | 18 ++++++----- .../tests/src/Functional/Form/FormTest.php | 6 ++-- .../src/Functional/Mail/HtmlToTextTest.php | 12 +++---- .../src/Functional/Menu/LocalTasksTest.php | 2 +- .../src/Functional/Menu/MenuRouterTest.php | 21 ++++++------ .../src/Functional/Module/DependencyTest.php | 3 +- .../src/Functional/Module/VersionTest.php | 2 +- .../tests/src/Functional/Pager/PagerTest.php | 7 ++-- .../Functional/Render/AjaxPageStateTest.php | 2 +- .../Render/HtmlResponseAttachmentsTest.php | 4 +-- .../Render/PlaceholderMessageTest.php | 2 +- .../Functional/Session/SessionHttpsTest.php | 2 +- .../src/Functional/Session/SessionTest.php | 10 +++--- .../tests/src/Functional/System/AdminTest.php | 2 +- .../src/Functional/System/CronRunTest.php | 2 +- .../src/Functional/System/DateTimeTest.php | 6 ++-- .../Functional/System/ErrorHandlerTest.php | 4 +-- .../src/Functional/System/FrontPageTest.php | 2 +- .../src/Functional/System/IndexPhpTest.php | 2 +- .../System/MainContentFallbackTest.php | 2 +- .../src/Functional/System/PageTitleTest.php | 2 +- .../System/ResponseGeneratorTest.php | 2 +- .../System/ShutdownFunctionsTest.php | 2 +- .../tests/src/Functional/System/ThemeTest.php | 14 ++++---- .../Theme/ThemeEarlyInitializationTest.php | 2 +- .../src/Functional/Theme/TwigTransTest.php | 4 +-- .../DependencyHookInvocationTest.php | 2 +- .../UpdateSystem/DependencyOrderingTest.php | 4 +-- .../NoPreExistingSchemaUpdateTest.php | 2 +- .../UpdateSystem/RebuildScriptTest.php | 2 +- .../UpdatePathNewDependencyTest.php | 2 +- .../UpdatePathTestJavaScriptTest.php | 2 +- .../Form/ElementsTableSelectTest.php | 2 +- .../src/Kernel/Form/ProgrammaticTest.php | 4 +-- .../system/tests/src/Kernel/Mail/MailTest.php | 2 +- .../tests/src/Kernel/Render/ClassyTest.php | 2 +- .../src/Kernel/Scripts/DbCommandBaseTest.php | 6 ++-- .../src/Kernel/Scripts/DbDumpCommandTest.php | 4 +-- .../Kernel/Scripts/DbImportCommandTest.php | 2 +- .../Kernel/Scripts/DbToolsApplicationTest.php | 4 +-- .../tests/src/Kernel/System/FloodTest.php | 6 ++-- .../tests/src/Kernel/Theme/FunctionsTest.php | 2 +- .../tests/src/Kernel/Theme/ThemeTest.php | 8 ++--- .../tests/src/Kernel/Theme/TwigFilterTest.php | 2 +- .../Kernel/Token/TokenReplaceKernelTest.php | 2 +- .../tests/src/Functional/EarlyDateTest.php | 2 +- .../tests/src/Functional/TermAccessTest.php | 2 +- .../tests/src/Functional/TermTest.php | 10 +++--- .../src/Functional/TermTranslationTest.php | 4 +-- .../tests/src/Functional/ThemeTest.php | 2 +- .../Functional/VocabularyPermissionsTest.php | 2 +- .../tests/src/Functional/VocabularyUiTest.php | 2 +- .../Migrate/d7/MigrateNodeTaxonomyTest.php | 2 +- .../tests/src/Kernel/TermKernelTest.php | 2 +- .../tests/src/Kernel/VocabularyCrudTest.php | 4 +-- .../src/Functional/TelephoneFieldTest.php | 4 +-- .../tests/src/Functional/TextFieldTest.php | 8 ++--- .../text/tests/src/Kernel/TextSummaryTest.php | 10 +++--- .../src/Functional/ToolbarAdminMenuTest.php | 4 +-- .../tour/tests/src/Functional/TourTest.php | 2 +- .../tour/tests/src/Kernel/TourPluginTest.php | 2 +- .../tests/src/Functional/UserBlocksTest.php | 2 +- .../tests/src/Functional/UserCancelTest.php | 2 +- .../tests/src/Functional/UserEditTest.php | 2 +- .../tests/src/Functional/UserLanguageTest.php | 2 +- .../src/Functional/UserLoginHttpTest.php | 4 +-- .../tests/src/Functional/UserLoginTest.php | 6 ++-- .../src/Functional/UserPasswordResetTest.php | 2 +- .../src/Functional/UserPermissionsTest.php | 4 +-- .../src/Functional/UserRoleAdminTest.php | 4 +-- .../tests/src/Functional/UserSubAdminTest.php | 2 +- .../src/Functional/UserTranslationUITest.php | 2 +- .../Condition/UserRoleConditionTest.php | 2 +- .../MigrateUserPictureFieldInstanceTest.php | 2 +- .../d7/MigrateUserPictureFieldTest.php | 2 +- .../user/tests/src/Kernel/UserDeleteTest.php | 2 +- .../user/tests/src/Kernel/UserInstallTest.php | 2 +- .../tests/src/Kernel/UserSaveStatusTest.php | 2 +- .../tests/src/Kernel/WhosOnlineBlockTest.php | 2 +- .../user/tests/src/Unit/UserAuthTest.php | 2 +- .../Controller/ViewsTestDataController.php | 2 +- .../tests/src/Functional/DefaultViewsTest.php | 2 +- .../Functional/Entity/BaseFieldAccessTest.php | 2 +- .../src/Functional/Handler/FilterDateTest.php | 6 ++-- .../Functional/Plugin/ArgumentDefaultTest.php | 2 +- .../src/Functional/Plugin/DisplayTest.php | 2 +- .../src/Functional/Plugin/ExposedFormTest.php | 4 +-- .../src/Functional/Plugin/FilterTest.php | 4 +-- .../src/Functional/Plugin/MenuLinkTest.php | 2 +- .../Plugin/NumericFormatPluralTest.php | 2 +- .../tests/src/Functional/Plugin/PagerTest.php | 2 +- .../src/Functional/Plugin/StyleTableTest.php | 8 ++--- .../FunctionalJavascript/GlossaryViewTest.php | 2 +- .../views/Handler/ContextualFilterTest.php | 2 +- .../Handler/GroupedExposedFilterTest.php | 2 +- .../src/Kernel/Handler/ComputedFieldTest.php | 2 +- .../Kernel/Handler/SortTranslationTest.php | 2 +- .../Plugin/Display/ViewsMenuLinkTest.php | 2 +- .../src/Kernel/Plugin/DisplayExtenderTest.php | 4 +-- .../src/Kernel/Plugin/PluginBaseTest.php | 4 +-- .../tests/src/Kernel/Plugin/QueryTest.php | 2 +- .../src/Kernel/Plugin/RowRenderCacheTest.php | 4 +-- .../argument_default/QueryParameterTest.php | 2 +- .../Unit/Plugin/argument_default/RawTest.php | 2 +- .../Unit/Plugin/field/FieldPluginBaseTest.php | 10 +++--- .../src/Functional/TokenizeAreaUITest.php | 2 +- ...orkflowCustomStateTransitionAccessTest.php | 2 +- .../tests/src/Functional/WorkflowUiTest.php | 8 ++--- .../src/Kernel/PredefinedWorkflowTypeTest.php | 2 +- ...ateTransitionOperationsAccessCheckTest.php | 2 +- .../workflows/tests/src/Unit/WorkflowTest.php | 2 +- .../WorkspaceConcurrentEditingTest.php | 2 +- .../src/Functional/WorkspaceSwitcherTest.php | 4 +-- .../tests/src/Functional/WorkspaceTest.php | 6 ++-- .../WorkspaceToolbarIntegrationTest.php | 4 +-- .../tests/src/Kernel/WorkspaceAccessTest.php | 2 +- .../src/Kernel/WorkspaceIntegrationTest.php | 2 +- .../src/Functional/DemoUmamiProfileTest.php | 3 +- .../Ajax/AjaxTest.php | 2 +- .../Ajax/DialogTest.php | 2 +- .../Ajax/MessageCommandTest.php | 2 +- .../Core/CsrfTokenRaceTest.php | 2 +- .../Core/JsMessageTest.php | 2 +- .../FunctionalJavascriptTests/JSWebAssert.php | 4 +-- .../FunctionalTests/BrowserTestBaseTest.php | 2 +- .../BrowserTestBaseUserAgentTest.php | 2 +- .../Image/ToolkitSetupFormTest.php | 2 +- .../FunctionalTests/MailCaptureTest.php | 2 +- .../FunctionalTests/Theme/ClaroTest.php | 2 +- .../Update/UpdatePathTestBaseTest.php | 4 +-- .../Core/Action/EmailActionTest.php | 2 +- .../Cache/GenericCacheBackendUnitTestBase.php | 8 ++--- .../KernelTests/Core/Command/DbDumpTest.php | 4 +-- .../Core/Config/ConfigInstallTest.php | 3 +- .../Core/Config/ConfigSchemaTest.php | 2 +- .../ExcludedModulesEventSubscriberTest.php | 2 +- .../Core/Config/ExportStorageManagerTest.php | 4 +-- .../Config/ImportStorageTransformerTest.php | 6 ++-- .../Core/Database/ConnectionTest.php | 2 +- .../Core/Database/SelectCloneTest.php | 2 +- .../Core/Database/SelectComplexTest.php | 4 +-- .../Core/Database/SelectSubqueryTest.php | 8 +++-- .../KernelTests/Core/Database/TaggingTest.php | 2 +- .../Core/Database/UpdateComplexTest.php | 2 +- ...ntityDecoupledTranslationRevisionsTest.php | 2 +- .../Core/Entity/EntityDuplicateTest.php | 2 +- .../Core/Entity/EntityKeysTest.php | 2 +- .../Core/Entity/EntityQueryAggregateTest.php | 2 +- .../Core/Entity/EntityQueryTest.php | 20 ++++++------ .../Core/Entity/EntityRevisionsTest.php | 2 +- .../Core/Entity/EntityViewHookTest.php | 2 +- .../Core/Entity/FieldSqlStorageTest.php | 8 ++--- .../Extension/ModuleConfigureRouteTest.php | 2 +- .../Field/Entity/BaseFieldOverrideTest.php | 2 +- .../KernelTests/Core/File/DirectoryTest.php | 4 +-- .../Core/File/FileSaveDataTest.php | 2 +- .../KernelTests/Core/File/MimeTypeTest.php | 2 +- .../Core/File/ReadOnlyStreamWrapperTest.php | 2 +- .../Core/File/StreamWrapperTest.php | 10 +++--- .../Core/File/UrlRewritingTest.php | 2 +- .../Core/Messenger/MessengerTest.php | 2 +- .../EntityConverterLatestRevisionTest.php | 2 +- .../KernelTests/Core/Plugin/FactoryTest.php | 4 +-- .../Core/Render/Element/TableTest.php | 2 +- .../Core/Render/Element/WeightTest.php | 4 +-- .../Core/Routing/RouteProviderTest.php | 2 +- .../Core/Theme/TwigEnvironmentTest.php | 2 +- .../RecursiveContextualValidatorTest.php | 2 +- .../AnnotatedClassDiscoveryCachedTest.php | 2 +- .../Component/Assertion/InspectorTest.php | 4 +-- .../Component/Datetime/DateTimePlusTest.php | 21 ++++++------ .../Tests/Component/Graph/GraphTest.php | 2 +- .../SecuredRedirectResponseTest.php | 2 +- .../Component/Serialization/JsonTest.php | 2 +- .../Tests/Component/Utility/UrlHelperTest.php | 4 +-- .../Tests/Component/Utility/UserAgentTest.php | 2 +- .../Tests/Composer/Generator/BuilderTest.php | 4 +-- .../Generator/MetapackageUpdateTest.php | 4 +-- .../Scaffold/Functional/ComposerHookTest.php | 4 +-- .../Functional/ManageGitIgnoreTest.php | 2 +- .../Scaffold/Functional/ScaffoldTest.php | 4 +-- .../Functional/ScaffoldUpgradeTest.php | 2 +- .../Tests/Core/Access/AccessManagerTest.php | 2 +- .../Core/Access/AccessResultForbiddenTest.php | 2 +- .../Core/Access/AccessResultNeutralTest.php | 2 +- .../Core/Access/CustomAccessCheckTest.php | 2 +- .../Core/Access/DefaultAccessCheckTest.php | 2 +- .../BackendChainImplementationUnitTest.php | 15 +++++---- .../Tests/Core/Cache/CacheFactoryTest.php | 8 ++--- .../Core/Cache/CacheableMetadataTest.php | 2 +- .../Tests/Core/Common/AttributesTest.php | 4 +-- .../Tests/Core/Config/CachedStorageTest.php | 2 +- .../Tests/Core/Config/NullStorageTest.php | 2 +- .../Tests/Core/Database/ConditionTest.php | 2 +- .../Tests/Core/Database/ConnectionTest.php | 10 +++--- .../Tests/Core/Database/UrlConversionTest.php | 4 +-- .../Core/Datetime/DrupalDateTimeTest.php | 4 +-- .../Compiler/TaggedHandlersPassTest.php | 3 +- .../Tests/Core/Error/DrupalLogErrorTest.php | 2 +- .../RedirectResponseSubscriberTest.php | 2 +- .../Core/Extension/InfoParserUnitTest.php | 4 +-- .../Core/Extension/ModuleHandlerTest.php | 32 +++++++++---------- .../FieldInputValueNormalizerTraitTest.php | 2 +- .../Core/Lock/LockBackendAbstractTest.php | 2 +- .../Core/Logger/LogMessageParserTest.php | 2 +- .../Core/Password/PasswordHashingTest.php | 4 +-- .../Tests/Core/Path/PathMatcherTest.php | 2 +- .../PathProcessor/PathProcessorFrontTest.php | 6 ++-- .../Tests/Core/Routing/UrlGeneratorTest.php | 3 +- .../Tests/Core/Serialization/YamlTest.php | 2 +- .../NegotiationMiddlewareTest.php | 2 +- .../Tests/Core/Test/BrowserTestBaseTest.php | 2 +- .../Tests/Core/Test/JUnitConverterTest.php | 2 +- .../Tests/Core/Test/PhpUnitAutoloaderTest.php | 2 +- .../Tests/Core/Test/PhpUnitTestRunnerTest.php | 2 +- 474 files changed, 873 insertions(+), 864 deletions(-) diff --git a/core/modules/action/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php b/core/modules/action/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php index 63bebe4bf9ae..ee6f39740366 100644 --- a/core/modules/action/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php +++ b/core/modules/action/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php @@ -23,7 +23,7 @@ protected function setUp(): void { } /** - * Test Drupal 6 action migration to Drupal 8. + * Tests Drupal 6 action migration to Drupal 8. */ public function testActions() { // Test default actions. diff --git a/core/modules/action/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php b/core/modules/action/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php index c58d3c5a7619..85a6977d4232 100644 --- a/core/modules/action/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php +++ b/core/modules/action/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php @@ -23,7 +23,7 @@ protected function setUp(): void { } /** - * Test Drupal 7 action migration to Drupal 8. + * Tests Drupal 7 action migration to Drupal 8. */ public function testActions() { // Test default actions. diff --git a/core/modules/aggregator/tests/src/Functional/FeedFetcherPluginTest.php b/core/modules/aggregator/tests/src/Functional/FeedFetcherPluginTest.php index cc5f8660c2c9..8bf1244e353e 100644 --- a/core/modules/aggregator/tests/src/Functional/FeedFetcherPluginTest.php +++ b/core/modules/aggregator/tests/src/Functional/FeedFetcherPluginTest.php @@ -28,7 +28,7 @@ protected function setUp(): void { } /** - * Test fetching functionality. + * Tests fetching functionality. */ public function testfetch() { // Create feed with local url. diff --git a/core/modules/aggregator/tests/src/Functional/FeedProcessorPluginTest.php b/core/modules/aggregator/tests/src/Functional/FeedProcessorPluginTest.php index 4ceeb31838c0..fd13616ef100 100644 --- a/core/modules/aggregator/tests/src/Functional/FeedProcessorPluginTest.php +++ b/core/modules/aggregator/tests/src/Functional/FeedProcessorPluginTest.php @@ -31,7 +31,7 @@ protected function setUp(): void { } /** - * Test processing functionality. + * Tests processing functionality. */ public function testProcess() { $feed = $this->createFeed(); @@ -43,7 +43,7 @@ public function testProcess() { } /** - * Test deleting functionality. + * Tests deleting functionality. */ public function testDelete() { $feed = $this->createFeed(); @@ -55,7 +55,7 @@ public function testDelete() { } /** - * Test post-processing functionality. + * Tests post-processing functionality. */ public function testPostProcess() { $feed = $this->createFeed(NULL, ['refresh' => 1800]); diff --git a/core/modules/aggregator/tests/src/Kernel/Migrate/d6/MigrateAggregatorItemTest.php b/core/modules/aggregator/tests/src/Kernel/Migrate/d6/MigrateAggregatorItemTest.php index bbee49efba6b..9c5be013cc4d 100644 --- a/core/modules/aggregator/tests/src/Kernel/Migrate/d6/MigrateAggregatorItemTest.php +++ b/core/modules/aggregator/tests/src/Kernel/Migrate/d6/MigrateAggregatorItemTest.php @@ -28,7 +28,7 @@ protected function setUp(): void { } /** - * Test Drupal 6 aggregator item migration to Drupal 8. + * Tests Drupal 6 aggregator item migration to Drupal 8. */ public function testAggregatorItem() { /** @var \Drupal\aggregator\Entity\Item $item */ diff --git a/core/modules/aggregator/tests/src/Kernel/Migrate/d7/MigrateAggregatorItemTest.php b/core/modules/aggregator/tests/src/Kernel/Migrate/d7/MigrateAggregatorItemTest.php index 3cf3ae391457..2780507a97f4 100644 --- a/core/modules/aggregator/tests/src/Kernel/Migrate/d7/MigrateAggregatorItemTest.php +++ b/core/modules/aggregator/tests/src/Kernel/Migrate/d7/MigrateAggregatorItemTest.php @@ -29,7 +29,7 @@ protected function setUp(): void { } /** - * Test Drupal 7 aggregator item migration to Drupal 8. + * Tests Drupal 7 aggregator item migration to Drupal 8. */ public function testAggregatorItem() { // Since the feed items can change as the fixture is updated normally, diff --git a/core/modules/aggregator/tests/src/Unit/Plugin/AggregatorPluginSettingsBaseTest.php b/core/modules/aggregator/tests/src/Unit/Plugin/AggregatorPluginSettingsBaseTest.php index 0219068ce88e..0b2da48d46f2 100644 --- a/core/modules/aggregator/tests/src/Unit/Plugin/AggregatorPluginSettingsBaseTest.php +++ b/core/modules/aggregator/tests/src/Unit/Plugin/AggregatorPluginSettingsBaseTest.php @@ -71,7 +71,7 @@ protected function setUp(): void { } /** - * Test for AggregatorPluginSettingsBase. + * Tests for AggregatorPluginSettingsBase. * * Ensure that the settings form calls build, validate and submit methods on * plugins that extend AggregatorPluginSettingsBase. diff --git a/core/modules/basic_auth/tests/src/Functional/BasicAuthTest.php b/core/modules/basic_auth/tests/src/Functional/BasicAuthTest.php index a4734aaf82d0..7fe4b98d0349 100644 --- a/core/modules/basic_auth/tests/src/Functional/BasicAuthTest.php +++ b/core/modules/basic_auth/tests/src/Functional/BasicAuthTest.php @@ -35,7 +35,7 @@ class BasicAuthTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test http basic authentication. + * Tests http basic authentication. */ public function testBasicAuth() { // Enable page caching. @@ -91,7 +91,7 @@ public function testBasicAuth() { } /** - * Test the global login flood control. + * Tests the global login flood control. */ public function testGlobalLoginFloodControl() { $this->config('user.flood') @@ -116,7 +116,7 @@ public function testGlobalLoginFloodControl() { } /** - * Test the per-user login flood control. + * Tests the per-user login flood control. */ public function testPerUserLoginFloodControl() { $this->config('user.flood') diff --git a/core/modules/block/tests/src/Functional/BlockCacheTest.php b/core/modules/block/tests/src/Functional/BlockCacheTest.php index 8d01a18ae872..9ed66f3ed627 100644 --- a/core/modules/block/tests/src/Functional/BlockCacheTest.php +++ b/core/modules/block/tests/src/Functional/BlockCacheTest.php @@ -75,7 +75,7 @@ protected function setUp(): void { } /** - * Test "user.roles" cache context. + * Tests "user.roles" cache context. */ public function testCachePerRole() { \Drupal::state()->set('block_test.cache_contexts', ['user.roles']); @@ -127,7 +127,7 @@ public function testCachePerRole() { } /** - * Test a cacheable block without any additional cache context. + * Tests a cacheable block without any additional cache context. */ public function testCachePermissions() { // user.permissions is a required context, so a user with different @@ -155,7 +155,7 @@ public function testCachePermissions() { } /** - * Test non-cacheable block. + * Tests non-cacheable block. */ public function testNoCache() { \Drupal::state()->set('block_test.cache_max_age', 0); @@ -176,7 +176,7 @@ public function testNoCache() { } /** - * Test "user" cache context. + * Tests "user" cache context. */ public function testCachePerUser() { \Drupal::state()->set('block_test.cache_contexts', ['user']); @@ -208,7 +208,7 @@ public function testCachePerUser() { } /** - * Test "url" cache context. + * Tests "url" cache context. */ public function testCachePerPage() { \Drupal::state()->set('block_test.cache_contexts', ['url']); diff --git a/core/modules/block/tests/src/Functional/BlockFormInBlockTest.php b/core/modules/block/tests/src/Functional/BlockFormInBlockTest.php index 3983e752e179..fa1bb4d9eaf9 100644 --- a/core/modules/block/tests/src/Functional/BlockFormInBlockTest.php +++ b/core/modules/block/tests/src/Functional/BlockFormInBlockTest.php @@ -35,7 +35,7 @@ protected function setUp(): void { } /** - * Test to see if form in block's redirect isn't cached. + * Tests to see if form in block's redirect isn't cached. */ public function testCachePerPage() { $form_values = ['email' => 'test@example.com']; @@ -65,7 +65,7 @@ public function testCachePerPage() { } /** - * Test the actual placeholders. + * Tests the actual placeholders. */ public function testPlaceholders() { $this->drupalGet('test-multiple-forms'); diff --git a/core/modules/block/tests/src/Functional/BlockTest.php b/core/modules/block/tests/src/Functional/BlockTest.php index 91e1a7f76010..c976b51a6338 100644 --- a/core/modules/block/tests/src/Functional/BlockTest.php +++ b/core/modules/block/tests/src/Functional/BlockTest.php @@ -105,7 +105,7 @@ public function testBlockToggleVisibility() { } /** - * Test block visibility when leaving "pages" textarea empty. + * Tests block visibility when leaving "pages" textarea empty. */ public function testBlockVisibilityListedEmpty() { $block_name = 'system_powered_by_block'; @@ -186,7 +186,7 @@ public function testAddBlockFromLibraryWithWeight() { } /** - * Test configuring and moving a module-define block to specific regions. + * Tests configuring and moving a module-define block to specific regions. */ public function testBlock() { // Place page title block to test error messages. @@ -278,7 +278,7 @@ public function testBlockThemeSelector() { } /** - * Test block display of theme titles. + * Tests block display of theme titles. */ public function testThemeName() { // Enable the help block. @@ -294,7 +294,7 @@ public function testThemeName() { } /** - * Test block title display settings. + * Tests block title display settings. */ public function testHideBlockTitle() { $block_name = 'system_powered_by_block'; @@ -364,7 +364,7 @@ public function moveBlockToRegion(array $block, $region) { } /** - * Test that cache tags are properly set and bubbled up to the page cache. + * Tests that cache tags are properly set and bubbled up to the page cache. * * Verify that invalidation of these cache tags works: * - "block:<block ID>" diff --git a/core/modules/block/tests/src/Functional/BlockUiTest.php b/core/modules/block/tests/src/Functional/BlockUiTest.php index 30c961ef6e04..12511592dd3e 100644 --- a/core/modules/block/tests/src/Functional/BlockUiTest.php +++ b/core/modules/block/tests/src/Functional/BlockUiTest.php @@ -87,7 +87,7 @@ protected function setUp(): void { } /** - * Test block demo page exists and functions correctly. + * Tests block demo page exists and functions correctly. */ public function testBlockDemoUiPage() { $this->drupalPlaceBlock('help_block', ['region' => 'help']); @@ -107,7 +107,7 @@ public function testBlockDemoUiPage() { } /** - * Test block admin page exists and functions correctly. + * Tests block admin page exists and functions correctly. */ public function testBlockAdminUiPage() { // Visit the blocks admin ui. diff --git a/core/modules/block/tests/src/Functional/NonDefaultBlockAdminTest.php b/core/modules/block/tests/src/Functional/NonDefaultBlockAdminTest.php index a3d1551ffdb1..7da71c9804ee 100644 --- a/core/modules/block/tests/src/Functional/NonDefaultBlockAdminTest.php +++ b/core/modules/block/tests/src/Functional/NonDefaultBlockAdminTest.php @@ -33,7 +33,7 @@ protected function setUp(): void { } /** - * Test non-default theme admin. + * Tests non-default theme admin. */ public function testNonDefaultBlockAdmin() { $admin_user = $this->drupalCreateUser([ diff --git a/core/modules/block/tests/src/Functional/Views/DisplayBlockTest.php b/core/modules/block/tests/src/Functional/Views/DisplayBlockTest.php index 3f902a75f594..474ce3343dc5 100644 --- a/core/modules/block/tests/src/Functional/Views/DisplayBlockTest.php +++ b/core/modules/block/tests/src/Functional/Views/DisplayBlockTest.php @@ -195,7 +195,7 @@ public function testDeleteBlockDisplay() { } /** - * Test the block form for a Views block. + * Tests the block form for a Views block. */ public function testViewsBlockForm() { $this->drupalLogin($this->drupalCreateUser(['administer blocks'])); diff --git a/core/modules/block/tests/src/Kernel/BlockInterfaceTest.php b/core/modules/block/tests/src/Kernel/BlockInterfaceTest.php index 01b77b1eb325..2550cf16a889 100644 --- a/core/modules/block/tests/src/Kernel/BlockInterfaceTest.php +++ b/core/modules/block/tests/src/Kernel/BlockInterfaceTest.php @@ -16,7 +16,7 @@ class BlockInterfaceTest extends KernelTestBase { protected static $modules = ['system', 'block', 'block_test', 'user']; /** - * Test configuration and subsequent form() and build() method calls. + * Tests configuration and subsequent form() and build() method calls. * * This test is attempting to test the existing block plugin api and all * functionality that is expected to remain consistent. The arrays that are diff --git a/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php b/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php index 4cb059664560..d701db1cfbe0 100644 --- a/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php +++ b/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php @@ -221,7 +221,7 @@ public function testFailedBlockCreation() { } /** - * Test deleting a block. + * Tests deleting a block. */ public function testBlockDelete() { // Create a block. @@ -280,7 +280,7 @@ public function testBlockDelete() { } /** - * Test that placed content blocks create a dependency in the block placement. + * Tests placed content blocks create a dependency in the block placement. */ public function testConfigDependencies() { $block = $this->createBlockContent(); diff --git a/core/modules/block_content/tests/src/Kernel/BlockContentEntityReferenceSelectionTest.php b/core/modules/block_content/tests/src/Kernel/BlockContentEntityReferenceSelectionTest.php index 1b7cc7fd5d09..738a809355ec 100644 --- a/core/modules/block_content/tests/src/Kernel/BlockContentEntityReferenceSelectionTest.php +++ b/core/modules/block_content/tests/src/Kernel/BlockContentEntityReferenceSelectionTest.php @@ -140,7 +140,7 @@ public function testQueriesNotAltered() { } /** - * Test with no conditions set. + * Tests with no conditions set. * * @throws \Drupal\Core\Entity\EntityStorageException */ diff --git a/core/modules/block_content/tests/src/Unit/Access/DependentAccessTest.php b/core/modules/block_content/tests/src/Unit/Access/DependentAccessTest.php index 6fe621986860..d5d773d36a40 100644 --- a/core/modules/block_content/tests/src/Unit/Access/DependentAccessTest.php +++ b/core/modules/block_content/tests/src/Unit/Access/DependentAccessTest.php @@ -42,7 +42,7 @@ protected function setUp(): void { } /** - * Test that the previous dependency is replaced when using set. + * Tests that the previous dependency is replaced when using set. * * @covers ::setAccessDependency * diff --git a/core/modules/book/tests/src/Functional/BookBreadcrumbTest.php b/core/modules/book/tests/src/Functional/BookBreadcrumbTest.php index 149e6ce51341..65a48edfb8da 100644 --- a/core/modules/book/tests/src/Functional/BookBreadcrumbTest.php +++ b/core/modules/book/tests/src/Functional/BookBreadcrumbTest.php @@ -155,7 +155,7 @@ protected function createBookNode($book_nid, $parent = NULL) { } /** - * Test that the breadcrumb is updated when book content changes. + * Tests that the breadcrumb is updated when book content changes. */ public function testBreadcrumbTitleUpdates() { // Create a new book. @@ -190,7 +190,7 @@ public function testBreadcrumbTitleUpdates() { } /** - * Test that the breadcrumb is updated when book access changes. + * Tests that the breadcrumb is updated when book access changes. */ public function testBreadcrumbAccessUpdates() { // Create a new book. diff --git a/core/modules/book/tests/src/Kernel/BookInstallTest.php b/core/modules/book/tests/src/Kernel/BookInstallTest.php index fbe755d3eb45..3bb64e482c4e 100644 --- a/core/modules/book/tests/src/Kernel/BookInstallTest.php +++ b/core/modules/book/tests/src/Kernel/BookInstallTest.php @@ -21,7 +21,7 @@ class BookInstallTest extends KernelTestBase { ]; /** - * Test Book install with pre-existing content type. + * Tests Book install with pre-existing content type. * * Tests that Book module can be installed if content type with machine name * 'book' already exists. diff --git a/core/modules/breakpoint/tests/src/Kernel/BreakpointDiscoveryTest.php b/core/modules/breakpoint/tests/src/Kernel/BreakpointDiscoveryTest.php index 6b621d9ceee1..29b880f549de 100644 --- a/core/modules/breakpoint/tests/src/Kernel/BreakpointDiscoveryTest.php +++ b/core/modules/breakpoint/tests/src/Kernel/BreakpointDiscoveryTest.php @@ -28,7 +28,7 @@ protected function setUp(): void { } /** - * Test the breakpoint group created for a theme. + * Tests the breakpoint group created for a theme. */ public function testThemeBreakpoints() { // Verify the breakpoint group for breakpoint_theme_test was created. @@ -93,7 +93,7 @@ public function testThemeBreakpoints() { } /** - * Test the custom breakpoint group provided by a theme and a module. + * Tests the custom breakpoint group provided by a theme and a module. */ public function testCustomBreakpointGroups() { // Verify the breakpoint group for breakpoint_theme_test.group2 was created. @@ -145,7 +145,7 @@ public function testCustomBreakpointGroups() { } /** - * Test the breakpoint group created for a module. + * Tests the breakpoint group created for a module. */ public function testModuleBreakpoints() { $expected_breakpoints = [ @@ -181,7 +181,7 @@ public function testModuleBreakpoints() { } /** - * Test the collection of breakpoint groups. + * Tests the collection of breakpoint groups. */ public function testBreakpointGroups() { $expected = [ diff --git a/core/modules/ckeditor/tests/src/Kernel/Plugin/CKEditorPlugin/InternalTest.php b/core/modules/ckeditor/tests/src/Kernel/Plugin/CKEditorPlugin/InternalTest.php index 2565807db588..1de3df5f7e5f 100644 --- a/core/modules/ckeditor/tests/src/Kernel/Plugin/CKEditorPlugin/InternalTest.php +++ b/core/modules/ckeditor/tests/src/Kernel/Plugin/CKEditorPlugin/InternalTest.php @@ -84,7 +84,7 @@ protected function setUp(): void { } /** - * Test the format tags settings. + * Tests the format tags settings. * * @dataProvider formatTagsSettingsTestCases */ diff --git a/core/modules/color/tests/src/Functional/ColorTest.php b/core/modules/color/tests/src/Functional/ColorTest.php index 83983a0e196d..1920855e3525 100644 --- a/core/modules/color/tests/src/Functional/ColorTest.php +++ b/core/modules/color/tests/src/Functional/ColorTest.php @@ -180,7 +180,7 @@ public function testValidColor() { } /** - * Test whether the custom logo is used in the color preview. + * Tests whether the custom logo is used in the color preview. */ public function testLogoSettingOverride() { $this->drupalLogin($this->bigUser); @@ -196,7 +196,7 @@ public function testLogoSettingOverride() { } /** - * Test whether the scheme can be set, viewed anonymously and reset. + * Tests whether the scheme can be set, viewed anonymously and reset. */ public function testOverrideAndResetScheme() { $settings_path = 'admin/appearance/settings/bartik'; diff --git a/core/modules/comment/tests/src/Functional/CommentAdminTest.php b/core/modules/comment/tests/src/Functional/CommentAdminTest.php index efef5f8de3aa..5d187e93fcc9 100644 --- a/core/modules/comment/tests/src/Functional/CommentAdminTest.php +++ b/core/modules/comment/tests/src/Functional/CommentAdminTest.php @@ -27,7 +27,7 @@ protected function setUp(): void { } /** - * Test comment approval functionality through admin/content/comment. + * Tests comment approval functionality through admin/content/comment. */ public function testApprovalAdminInterface() { // Set anonymous comments to require approval. diff --git a/core/modules/comment/tests/src/Functional/CommentCacheTagsTest.php b/core/modules/comment/tests/src/Functional/CommentCacheTagsTest.php index d5de08db411e..e5d308d682d0 100644 --- a/core/modules/comment/tests/src/Functional/CommentCacheTagsTest.php +++ b/core/modules/comment/tests/src/Functional/CommentCacheTagsTest.php @@ -96,7 +96,7 @@ protected function createEntity() { } /** - * Test that comments correctly invalidate the cache tag of their host entity. + * Tests that comments invalidate the cache tag of their host entity. */ public function testCommentEntity() { $this->verifyPageCache($this->entityTestCamelid->toUrl(), 'MISS'); diff --git a/core/modules/comment/tests/src/Functional/CommentInterfaceTest.php b/core/modules/comment/tests/src/Functional/CommentInterfaceTest.php index 1ecf188ea747..8be8687d1c63 100644 --- a/core/modules/comment/tests/src/Functional/CommentInterfaceTest.php +++ b/core/modules/comment/tests/src/Functional/CommentInterfaceTest.php @@ -230,7 +230,7 @@ public function testCommentInterface() { } /** - * Test that the subject is automatically filled if disabled or left blank. + * Tests that the subject is automatically filled if disabled or left blank. * * When the subject field is blank or disabled, the first 29 characters of the * comment body are used for the subject. If this would break within a word, @@ -253,7 +253,7 @@ public function testAutoFilledSubject() { } /** - * Test that automatic subject is correctly created from HTML comment text. + * Tests that automatic subject is correctly created from HTML comment text. * * This is the same test as in CommentInterfaceTest::testAutoFilledSubject() * with the additional check that HTML is stripped appropriately prior to diff --git a/core/modules/comment/tests/src/Functional/CommentLanguageTest.php b/core/modules/comment/tests/src/Functional/CommentLanguageTest.php index 574f65547061..d712206dfc96 100644 --- a/core/modules/comment/tests/src/Functional/CommentLanguageTest.php +++ b/core/modules/comment/tests/src/Functional/CommentLanguageTest.php @@ -96,7 +96,7 @@ protected function setUp(): void { } /** - * Test that comment language is properly set. + * Tests that comment language is properly set. */ public function testCommentLanguage() { diff --git a/core/modules/comment/tests/src/Functional/CommentNodeAccessTest.php b/core/modules/comment/tests/src/Functional/CommentNodeAccessTest.php index 7bf62d59c390..2c5da6b6894c 100644 --- a/core/modules/comment/tests/src/Functional/CommentNodeAccessTest.php +++ b/core/modules/comment/tests/src/Functional/CommentNodeAccessTest.php @@ -46,7 +46,7 @@ protected function setUp(): void { } /** - * Test that threaded comments can be viewed. + * Tests that threaded comments can be viewed. */ public function testThreadedCommentView() { // Set comments to have subject required and preview disabled. diff --git a/core/modules/comment/tests/src/Functional/Views/CommentAdminTest.php b/core/modules/comment/tests/src/Functional/Views/CommentAdminTest.php index 938f2470952e..ec1791488537 100644 --- a/core/modules/comment/tests/src/Functional/Views/CommentAdminTest.php +++ b/core/modules/comment/tests/src/Functional/Views/CommentAdminTest.php @@ -36,7 +36,7 @@ protected function setUp(): void { } /** - * Test comment approval functionality through admin/content/comment. + * Tests comment approval functionality through admin/content/comment. */ public function testApprovalAdminInterface() { // Set anonymous comments to require approval. diff --git a/core/modules/comment/tests/src/Functional/Views/CommentOperationsTest.php b/core/modules/comment/tests/src/Functional/Views/CommentOperationsTest.php index c3d5c6898fa4..db3e22fdb179 100644 --- a/core/modules/comment/tests/src/Functional/Views/CommentOperationsTest.php +++ b/core/modules/comment/tests/src/Functional/Views/CommentOperationsTest.php @@ -22,7 +22,7 @@ class CommentOperationsTest extends CommentTestBase { protected $defaultTheme = 'classy'; /** - * Test the operations field plugin. + * Tests the operations field plugin. */ public function testCommentOperations() { $admin_account = $this->drupalCreateUser(['administer comments']); diff --git a/core/modules/comment/tests/src/Functional/Views/CommentRestExportTest.php b/core/modules/comment/tests/src/Functional/Views/CommentRestExportTest.php index 2695f1bdec85..eb327eb036e6 100644 --- a/core/modules/comment/tests/src/Functional/Views/CommentRestExportTest.php +++ b/core/modules/comment/tests/src/Functional/Views/CommentRestExportTest.php @@ -58,7 +58,7 @@ protected function setUp($import_test_views = TRUE): void { } /** - * Test comment row. + * Tests comment row. */ public function testCommentRestExport() { $this->drupalGet(sprintf('node/%d/comments', $this->nodeUserCommented->id()), ['query' => ['_format' => 'hal_json']]); diff --git a/core/modules/comment/tests/src/Functional/Views/CommentRowTest.php b/core/modules/comment/tests/src/Functional/Views/CommentRowTest.php index 7b9654900591..09e157ce94bc 100644 --- a/core/modules/comment/tests/src/Functional/Views/CommentRowTest.php +++ b/core/modules/comment/tests/src/Functional/Views/CommentRowTest.php @@ -22,7 +22,7 @@ class CommentRowTest extends CommentTestBase { public static $testViews = ['test_comment_row']; /** - * Test comment row. + * Tests comment row. */ public function testCommentRow() { $this->drupalGet('test-comment-row'); diff --git a/core/modules/comment/tests/src/Functional/Views/NodeCommentsTest.php b/core/modules/comment/tests/src/Functional/Views/NodeCommentsTest.php index efdbd42e4dd6..3c68670db755 100644 --- a/core/modules/comment/tests/src/Functional/Views/NodeCommentsTest.php +++ b/core/modules/comment/tests/src/Functional/Views/NodeCommentsTest.php @@ -29,7 +29,7 @@ class NodeCommentsTest extends CommentTestBase { public static $testViews = ['test_new_comments', 'test_comment_count']; /** - * Test the new comments field plugin. + * Tests the new comments field plugin. */ public function testNewComments() { $this->drupalGet('test-new-comments'); diff --git a/core/modules/comment/tests/src/Functional/Views/RowRssTest.php b/core/modules/comment/tests/src/Functional/Views/RowRssTest.php index 04976ad67079..d21fc287b917 100644 --- a/core/modules/comment/tests/src/Functional/Views/RowRssTest.php +++ b/core/modules/comment/tests/src/Functional/Views/RowRssTest.php @@ -23,7 +23,7 @@ class RowRssTest extends CommentTestBase { public static $testViews = ['test_comment_rss']; /** - * Test comment rss output. + * Tests comment rss output. */ public function testRssRow() { $this->drupalGet('test-comment-rss'); diff --git a/core/modules/comment/tests/src/Kernel/CommentBundlesTest.php b/core/modules/comment/tests/src/Kernel/CommentBundlesTest.php index d6393f4e8a82..0be78b9a0d4a 100644 --- a/core/modules/comment/tests/src/Kernel/CommentBundlesTest.php +++ b/core/modules/comment/tests/src/Kernel/CommentBundlesTest.php @@ -56,7 +56,7 @@ protected function setUp(): void { } /** - * Test that the entity_id field is set correctly for each comment bundle. + * Tests that the entity_id field is set correctly for each comment bundle. */ public function testEntityIdField() { $field_definitions = []; diff --git a/core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php b/core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php index 075051ee6cc0..0d96303232b6 100644 --- a/core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php +++ b/core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php @@ -91,7 +91,7 @@ protected function setUp(): void { } /** - * Test permissions on comment fields. + * Tests permissions on comment fields. */ public function testAccessToAdministrativeFields() { // Create a comment type. diff --git a/core/modules/comment/tests/src/Kernel/CommentIntegrationTest.php b/core/modules/comment/tests/src/Kernel/CommentIntegrationTest.php index dc58a2aec35a..5dd07655ca1b 100644 --- a/core/modules/comment/tests/src/Kernel/CommentIntegrationTest.php +++ b/core/modules/comment/tests/src/Kernel/CommentIntegrationTest.php @@ -147,7 +147,7 @@ public function testViewMode() { } /** - * Test the default owner of comment entities. + * Tests the default owner of comment entities. */ public function testCommentDefaultOwner() { $comment = Comment::create([ diff --git a/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentFieldInstanceTest.php b/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentFieldInstanceTest.php index 57c34b2293ec..fab1c5120412 100644 --- a/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentFieldInstanceTest.php +++ b/core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentFieldInstanceTest.php @@ -69,7 +69,7 @@ protected function assertEntity($bundle, $field_name, $default_value, $default_m } /** - * Test the migrated field instance values. + * Tests the migrated field instance values. */ public function testMigration() { $this->assertEntity('article', 'comment_node_article', 2, 1, 50, 0, FALSE, 1); diff --git a/core/modules/comment/tests/src/Kernel/Views/CommentFieldNameTest.php b/core/modules/comment/tests/src/Kernel/Views/CommentFieldNameTest.php index af2a451bc52f..deee1956a2f7 100644 --- a/core/modules/comment/tests/src/Kernel/Views/CommentFieldNameTest.php +++ b/core/modules/comment/tests/src/Kernel/Views/CommentFieldNameTest.php @@ -49,7 +49,7 @@ class CommentFieldNameTest extends KernelTestBase { public static $testViews = ['test_comment_field_name']; /** - * Test comment field name. + * Tests comment field name. */ public function testCommentFieldName() { $renderer = $this->container->get('renderer'); diff --git a/core/modules/comment/tests/src/Kernel/Views/CommentLinksTest.php b/core/modules/comment/tests/src/Kernel/Views/CommentLinksTest.php index ed7f892a2ac7..663f49e8d89c 100644 --- a/core/modules/comment/tests/src/Kernel/Views/CommentLinksTest.php +++ b/core/modules/comment/tests/src/Kernel/Views/CommentLinksTest.php @@ -42,7 +42,7 @@ protected function setUp($import_test_views = TRUE): void { } /** - * Test the comment approve link. + * Tests the comment approve link. */ public function testLinkApprove() { $host = EntityTest::create(['name' => $this->randomString()]); @@ -108,7 +108,7 @@ public function testLinkApprove() { } /** - * Test the comment reply link. + * Tests the comment reply link. */ public function testLinkReply() { $this->enableModules(['field']); diff --git a/core/modules/comment/tests/src/Kernel/Views/CommentUserNameTest.php b/core/modules/comment/tests/src/Kernel/Views/CommentUserNameTest.php index 4f49208fb4d2..873ea5303070 100644 --- a/core/modules/comment/tests/src/Kernel/Views/CommentUserNameTest.php +++ b/core/modules/comment/tests/src/Kernel/Views/CommentUserNameTest.php @@ -102,7 +102,7 @@ protected function setUp($import_test_views = TRUE): void { } /** - * Test the username formatter. + * Tests the username formatter. */ public function testUsername() { $view_id = $this->randomMachineName(); diff --git a/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php b/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php index 033dab80c199..c2525d45d507 100644 --- a/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php +++ b/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php @@ -90,7 +90,7 @@ protected function setUp(): void { } /** - * Test the buildCommentedEntityLinks method. + * Tests the buildCommentedEntityLinks method. * * @param \Drupal\node\NodeInterface|\PHPUnit\Framework\MockObject\MockObject $node * Mock node. diff --git a/core/modules/comment/tests/src/Unit/Entity/CommentLockTest.php b/core/modules/comment/tests/src/Unit/Entity/CommentLockTest.php index 0109603c6640..c9c8cb335109 100644 --- a/core/modules/comment/tests/src/Unit/Entity/CommentLockTest.php +++ b/core/modules/comment/tests/src/Unit/Entity/CommentLockTest.php @@ -15,7 +15,7 @@ class CommentLockTest extends UnitTestCase { /** - * Test the lock behavior. + * Tests the lock behavior. */ public function testLocks() { $container = new ContainerBuilder(); diff --git a/core/modules/config/tests/src/Functional/ConfigDraggableListBuilderTest.php b/core/modules/config/tests/src/Functional/ConfigDraggableListBuilderTest.php index 117ad1a3b979..ef7bb084cfd4 100644 --- a/core/modules/config/tests/src/Functional/ConfigDraggableListBuilderTest.php +++ b/core/modules/config/tests/src/Functional/ConfigDraggableListBuilderTest.php @@ -24,7 +24,7 @@ class ConfigDraggableListBuilderTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test draggable lists. + * Tests draggable lists. */ public function testDraggableList() { $this->drupalLogin($this->drupalCreateUser(['administer permissions'])); diff --git a/core/modules/config/tests/src/Functional/ConfigEntityListTest.php b/core/modules/config/tests/src/Functional/ConfigEntityListTest.php index d7aaf05509c0..388de1218a20 100644 --- a/core/modules/config/tests/src/Functional/ConfigEntityListTest.php +++ b/core/modules/config/tests/src/Functional/ConfigEntityListTest.php @@ -250,7 +250,7 @@ public function testListUI() { } /** - * Test paging. + * Tests paging. */ public function testPager() { $this->drupalLogin($this->drupalCreateUser([ diff --git a/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php b/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php index ec995c60c433..386d0c7f9aaf 100644 --- a/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php +++ b/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php @@ -634,7 +634,8 @@ public function testViewsTranslationUI() { } /** - * Test the number of source elements for plural strings in config translation forms. + * Tests the number of source elements for plural strings in config + * translation forms. */ public function testPluralConfigStringsSourceElements() { $this->drupalLogin($this->adminUser); @@ -677,7 +678,7 @@ public function testPluralConfigStringsSourceElements() { } /** - * Test translation of plural strings with multiple plural forms in config. + * Tests translation of plural strings with multiple plural forms in config. */ public function testPluralConfigStrings() { $this->drupalLogin($this->adminUser); @@ -804,7 +805,7 @@ public function testBooleanFieldConfigTranslation() { } /** - * Test translation storage in locale storage. + * Tests translation storage in locale storage. */ public function testLocaleDBStorage() { // Enable import of translations. By default this is disabled for automated @@ -936,7 +937,7 @@ public function testSequenceTranslation() { } /** - * Test text_format translation. + * Tests text_format translation. */ public function testTextFormatTranslation() { $this->drupalLogin($this->adminUser); diff --git a/core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateSystemMaintenanceTranslationTest.php b/core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateSystemMaintenanceTranslationTest.php index ee7a3e1cdd50..85aa604fcbf7 100644 --- a/core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateSystemMaintenanceTranslationTest.php +++ b/core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateSystemMaintenanceTranslationTest.php @@ -29,7 +29,7 @@ protected function setUp(): void { } /** - * Tests migration of system (maintenance) variables to system.maintenance.yml. + * Tests migration of system variables to system.maintenance.yml. */ public function testSystemMaintenance() { $config = \Drupal::service('language_manager')->getLanguageConfigOverride('fr', 'system.maintenance'); diff --git a/core/modules/contact/tests/src/Kernel/MessageEntityTest.php b/core/modules/contact/tests/src/Kernel/MessageEntityTest.php index 308f862555ff..69910ecdc6e6 100644 --- a/core/modules/contact/tests/src/Kernel/MessageEntityTest.php +++ b/core/modules/contact/tests/src/Kernel/MessageEntityTest.php @@ -31,7 +31,7 @@ protected function setUp(): void { } /** - * Test some of the methods. + * Tests some of the methods. */ public function testMessageMethods() { $message_storage = $this->container->get('entity_type.manager')->getStorage('contact_message'); diff --git a/core/modules/content_moderation/tests/src/Functional/ContentModerationWorkflowTypeTest.php b/core/modules/content_moderation/tests/src/Functional/ContentModerationWorkflowTypeTest.php index 1d6f6be159aa..a7a3e637a599 100644 --- a/core/modules/content_moderation/tests/src/Functional/ContentModerationWorkflowTypeTest.php +++ b/core/modules/content_moderation/tests/src/Functional/ContentModerationWorkflowTypeTest.php @@ -39,7 +39,7 @@ protected function setUp(): void { } /** - * Test creating a new workflow using the content moderation plugin. + * Tests creating a new workflow using the content moderation plugin. */ public function testNewWorkflow() { $types[] = $this->createContentType(); diff --git a/core/modules/content_moderation/tests/src/Functional/DefaultModerationStateTest.php b/core/modules/content_moderation/tests/src/Functional/DefaultModerationStateTest.php index 95f66afcedc4..92b360d22291 100644 --- a/core/modules/content_moderation/tests/src/Functional/DefaultModerationStateTest.php +++ b/core/modules/content_moderation/tests/src/Functional/DefaultModerationStateTest.php @@ -25,7 +25,7 @@ protected function setUp(): void { } /** - * Test a workflow with a default moderation state set. + * Tests a workflow with a default moderation state set. */ public function testPublishedDefaultState() { // Set the default moderation state to be "published". @@ -44,7 +44,7 @@ public function testPublishedDefaultState() { } /** - * Test access to deleting the default state. + * Tests access to deleting the default state. */ public function testDeleteDefaultStateAccess() { $this->drupalGet('admin/config/workflow/workflows/manage/editorial/state/archived/delete'); diff --git a/core/modules/content_moderation/tests/src/Functional/ModeratedContentViewTest.php b/core/modules/content_moderation/tests/src/Functional/ModeratedContentViewTest.php index 004e94c74813..218e1c3c01c2 100644 --- a/core/modules/content_moderation/tests/src/Functional/ModeratedContentViewTest.php +++ b/core/modules/content_moderation/tests/src/Functional/ModeratedContentViewTest.php @@ -147,7 +147,7 @@ public function testModeratedContentPage() { } /** - * Test the moderated content page with multilingual content. + * Tests the moderated content page with multilingual content. */ public function testModeratedContentPageMultilingual() { ConfigurableLanguage::createFromLangcode('fr')->save(); diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationActionsTest.php b/core/modules/content_moderation/tests/src/Functional/ModerationActionsTest.php index 3ad35c86eb99..122755014c9e 100644 --- a/core/modules/content_moderation/tests/src/Functional/ModerationActionsTest.php +++ b/core/modules/content_moderation/tests/src/Functional/ModerationActionsTest.php @@ -57,7 +57,7 @@ public function setUp(): void { } /** - * Test the node status actions report moderation status to users correctly. + * Tests the node status actions report moderation status to users correctly. * * @dataProvider nodeStatusActionsTestCases */ diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php b/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php index 3c668bc23374..4631a268eb37 100644 --- a/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php +++ b/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php @@ -179,7 +179,7 @@ public function testModerationForm() { } /** - * Test moderation non-bundle entity type. + * Tests moderation non-bundle entity type. */ public function testNonBundleModerationForm() { $this->drupalLogin($this->rootUser); @@ -479,7 +479,7 @@ public function testContentTranslationNodeForm() { } /** - * Test the moderation_state field when an alternative widget is set. + * Tests the moderation_state field when an alternative widget is set. */ public function testAlternativeModerationStateWidget() { $entity_form_display = EntityFormDisplay::load('node.moderated_content.default'); diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationRevisionRevertTest.php b/core/modules/content_moderation/tests/src/Functional/ModerationRevisionRevertTest.php index dff3847ea0c9..9aeb88f0d974 100644 --- a/core/modules/content_moderation/tests/src/Functional/ModerationRevisionRevertTest.php +++ b/core/modules/content_moderation/tests/src/Functional/ModerationRevisionRevertTest.php @@ -60,7 +60,7 @@ public function setUp(): void { } /** - * Test that reverting a revision works. + * Tests that reverting a revision works. */ public function testEditingAfterRevertRevision() { // Create a draft. diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationStateAccessTest.php b/core/modules/content_moderation/tests/src/Functional/ModerationStateAccessTest.php index 39b7a2e2a2bd..b083efc68e9f 100644 --- a/core/modules/content_moderation/tests/src/Functional/ModerationStateAccessTest.php +++ b/core/modules/content_moderation/tests/src/Functional/ModerationStateAccessTest.php @@ -49,7 +49,7 @@ protected function setUp(): void { } /** - * Test the view operation access handler with the view permission. + * Tests the view operation access handler with the view permission. */ public function testViewShowsCorrectStates() { $permissions = [ diff --git a/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php b/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php index c1eca4c5bf68..a223ce288a4c 100644 --- a/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php @@ -33,7 +33,7 @@ protected function setUp(): void { } /** - * Test permissions generated by content moderation. + * Tests permissions generated by content moderation. * * @dataProvider permissionsTestCases */ diff --git a/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateStorageSchemaTest.php b/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateStorageSchemaTest.php index a5255d0429bf..343bfe55b436 100644 --- a/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateStorageSchemaTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateStorageSchemaTest.php @@ -53,7 +53,7 @@ protected function setUp(): void { } /** - * Test the ContentModerationState unique keys. + * Tests the ContentModerationState unique keys. * * @covers ::getEntitySchema */ diff --git a/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php b/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php index da2e5d3cb057..c238eb3d445c 100644 --- a/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php @@ -478,7 +478,7 @@ public function moderationWithSpecialLanguagesTestCases() { } /** - * Test changing the language of content without adding a translation. + * Tests changing the language of content without adding a translation. */ public function testChangingContentLangcode() { $this->createContentType([ @@ -613,7 +613,7 @@ public function testWorkflowDependencies() { } /** - * Test the content moderation workflow dependencies for non-config bundles. + * Tests the content moderation workflow dependencies for non-config bundles. */ public function testWorkflowNonConfigBundleDependencies() { // Create a bundle not based on any particular configuration. @@ -648,7 +648,7 @@ public function testWorkflowNonConfigBundleDependencies() { } /** - * Test the revision default state of the moderation state entity revisions. + * Tests the revision default state of the moderation state entity revisions. * * @param string $entity_type_id * The ID of entity type to be tested. diff --git a/core/modules/content_moderation/tests/src/Kernel/ContentModerationSyncingTest.php b/core/modules/content_moderation/tests/src/Kernel/ContentModerationSyncingTest.php index 76b6bc1f3870..4a1416458510 100644 --- a/core/modules/content_moderation/tests/src/Kernel/ContentModerationSyncingTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/ContentModerationSyncingTest.php @@ -40,7 +40,7 @@ protected function setUp(): void { } /** - * Test no new revision is forced during a sync. + * Tests no new revision is forced during a sync. */ public function testNoRevisionForcedDuringSync() { $entity = EntityTestMulRevPub::create([ @@ -58,7 +58,7 @@ public function testNoRevisionForcedDuringSync() { } /** - * Test changing the moderation state during a sync. + * Tests changing the moderation state during a sync. */ public function testSingleRevisionStateChangedDuringSync() { $entity = EntityTestMulRevPub::create([ @@ -84,7 +84,7 @@ public function testSingleRevisionStateChangedDuringSync() { } /** - * Test state changes with multiple revisions during a sync. + * Tests state changes with multiple revisions during a sync. */ public function testMultipleRevisionStateChangedDuringSync() { $entity = EntityTestMulRevPub::create([ @@ -112,7 +112,7 @@ public function testMultipleRevisionStateChangedDuringSync() { } /** - * Test modifying a previous revision during a sync. + * Tests modifying a previous revision during a sync. */ public function testUpdatingPreviousRevisionDuringSync() { $storage = $this->container->get('entity_type.manager')->getStorage('entity_test_mulrevpub'); @@ -139,7 +139,7 @@ public function testUpdatingPreviousRevisionDuringSync() { } /** - * Test a moderation state changed on a previous revision during a sync. + * Tests a moderation state changed on a previous revision during a sync. */ public function testStateChangedPreviousRevisionDuringSync() { $storage = $this->container->get('entity_type.manager')->getStorage('entity_test_mulrevpub'); diff --git a/core/modules/content_moderation/tests/src/Kernel/ContentModerationWorkflowConfigTest.php b/core/modules/content_moderation/tests/src/Kernel/ContentModerationWorkflowConfigTest.php index 9555b46299f8..328e14261166 100644 --- a/core/modules/content_moderation/tests/src/Kernel/ContentModerationWorkflowConfigTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/ContentModerationWorkflowConfigTest.php @@ -78,7 +78,7 @@ protected function setUp(): void { } /** - * Test deleting a state via config import. + * Tests deleting a state via config import. */ public function testDeletingStateViaConfiguration() { $config_sync = \Drupal::service('config.storage.sync'); diff --git a/core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php b/core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php index 0c4c504ecfbf..44abf94d9045 100644 --- a/core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php @@ -55,7 +55,7 @@ protected function setUp(): void { } /** - * Test valid transitions. + * Tests valid transitions. * * @covers ::validate */ @@ -85,7 +85,7 @@ public function testValidTransition() { } /** - * Test invalid transitions. + * Tests invalid transitions. * * @covers ::validate */ @@ -115,7 +115,7 @@ public function testInvalidTransition() { } /** - * Test validation with an invalid state. + * Tests validation with an invalid state. */ public function testInvalidState() { $node_type = NodeType::create([ @@ -138,7 +138,7 @@ public function testInvalidState() { } /** - * Test validation with content that has no initial state or an invalid state. + * Tests validation with no initial state or an invalid state. */ public function testInvalidStateWithoutExisting() { $this->setCurrentUser($this->adminUser); @@ -187,7 +187,7 @@ public function testInvalidStateWithoutExisting() { } /** - * Test state transition validation with multiple languages. + * Tests state transition validation with multiple languages. */ public function testInvalidStateMultilingual() { $this->setCurrentUser($this->adminUser); diff --git a/core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php b/core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php index c977f1bf21cb..6090269ac3a1 100644 --- a/core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php @@ -78,7 +78,7 @@ public function testEntityBaseFieldInfo() { } /** - * Test the correct entity types have moderation added. + * Tests the correct entity types have moderation added. * * @covers ::entityTypeAlter * @@ -129,7 +129,7 @@ public function testBaseFieldOnlyAddedToModeratedEntityTypes() { } /** - * Test entity base field provider. + * Tests entity base field provider. */ public function testEntityBaseFieldProvider() { $this->enableModeration('entity_test_mulrev', 'entity_test_mulrev'); diff --git a/core/modules/content_moderation/tests/src/Kernel/ModerationStateFieldItemListTest.php b/core/modules/content_moderation/tests/src/Kernel/ModerationStateFieldItemListTest.php index 7b44aefff3b5..a59b485d698f 100644 --- a/core/modules/content_moderation/tests/src/Kernel/ModerationStateFieldItemListTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/ModerationStateFieldItemListTest.php @@ -74,7 +74,7 @@ protected function setUp(): void { } /** - * Test the field item list when accessing an index. + * Tests the field item list when accessing an index. */ public function testArrayIndex() { $this->assertFalse($this->testNode->isPublished()); @@ -82,7 +82,7 @@ public function testArrayIndex() { } /** - * Test the field item list when iterating. + * Tests the field item list when iterating. */ public function testArrayIteration() { $states = []; @@ -125,7 +125,7 @@ public function testEmptyStateAndAppend() { } /** - * Test an empty value assigned to the field item. + * Tests an empty value assigned to the field item. */ public function testEmptyFieldItem() { $this->testNode->moderation_state->value = ''; @@ -134,7 +134,7 @@ public function testEmptyFieldItem() { } /** - * Test an empty value assigned to the field item list. + * Tests an empty value assigned to the field item list. */ public function testEmptyFieldItemList() { $this->testNode->moderation_state = ''; @@ -143,7 +143,7 @@ public function testEmptyFieldItemList() { } /** - * Test the field item when it is unset. + * Tests the field item when it is unset. */ public function testUnsetItemList() { unset($this->testNode->moderation_state); @@ -152,7 +152,7 @@ public function testUnsetItemList() { } /** - * Test the field item when it is assigned NULL. + * Tests the field item when it is assigned NULL. */ public function testAssignNullItemList() { $this->testNode->moderation_state = NULL; @@ -176,7 +176,7 @@ protected function assertEmptiedModerationFieldItemList() { } /** - * Test the list class with a non moderated entity. + * Tests the list class with a non moderated entity. */ public function testNonModeratedEntity() { $unmoderated_node = Node::create([ @@ -248,7 +248,7 @@ public function moderationStateChangesTestCases() { } /** - * Test updating the state for an entity without a workflow. + * Tests updating the state for an entity without a workflow. */ public function testEntityWithNoWorkflow() { $node_type = NodeType::create([ @@ -273,7 +273,7 @@ public function testEntityWithNoWorkflow() { } /** - * Test the moderation_state field after an entity has been serialized. + * Tests the moderation_state field after an entity has been serialized. * * @dataProvider entityUnserializeTestCases */ @@ -310,7 +310,7 @@ public function entityUnserializeTestCases() { } /** - * Test saving a moderated node with an existing ID. + * Tests saving a moderated node with an existing ID. * * @dataProvider moderatedEntityWithExistingIdTestCases */ @@ -326,7 +326,7 @@ public function testModeratedEntityWithExistingId($state) { } /** - * Test cases for ::testModeratedEntityWithExistingId. + * Tests cases for ::testModeratedEntityWithExistingId. */ public function moderatedEntityWithExistingIdTestCases() { return [ @@ -372,7 +372,7 @@ public function testWorkflowCustomizedInitialState() { } /** - * Test the field item list when used with existing unmoderated content. + * Tests the field item list when used with existing unmoderated content. */ public function testWithExistingUnmoderatedContent() { $node = Node::create([ diff --git a/core/modules/content_moderation/tests/src/Kernel/ModerationStateWidgetTest.php b/core/modules/content_moderation/tests/src/Kernel/ModerationStateWidgetTest.php index a22119f1ac82..b71341ed6b24 100644 --- a/core/modules/content_moderation/tests/src/Kernel/ModerationStateWidgetTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/ModerationStateWidgetTest.php @@ -54,7 +54,7 @@ protected function setUp(): void { } /** - * Test the widget does not impact a non-moderated entity. + * Tests the widget does not impact a non-moderated entity. */ public function testWidgetNonModeratedEntity() { // Create an unmoderated entity and build a form display which will include diff --git a/core/modules/content_moderation/tests/src/Kernel/StateFormatterTest.php b/core/modules/content_moderation/tests/src/Kernel/StateFormatterTest.php index aee777a06a9c..240af223463d 100644 --- a/core/modules/content_moderation/tests/src/Kernel/StateFormatterTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/StateFormatterTest.php @@ -44,7 +44,7 @@ protected function setUp(): void { } /** - * Test the embed field. + * Tests the embed field. * * @dataProvider formatterTestCases */ diff --git a/core/modules/content_moderation/tests/src/Kernel/ViewsModerationStateFilterTest.php b/core/modules/content_moderation/tests/src/Kernel/ViewsModerationStateFilterTest.php index 721272d0b425..800073be049f 100644 --- a/core/modules/content_moderation/tests/src/Kernel/ViewsModerationStateFilterTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/ViewsModerationStateFilterTest.php @@ -173,7 +173,7 @@ public function testStateFilterViewsRelationship() { } /** - * Test the moderation filter with a non-translatable entity type. + * Tests the moderation filter with a non-translatable entity type. */ public function testNonTranslatableEntityType() { $workflow = Workflow::load('editorial'); diff --git a/core/modules/content_moderation/tests/src/Kernel/ViewsModerationStateSortTest.php b/core/modules/content_moderation/tests/src/Kernel/ViewsModerationStateSortTest.php index c70480f1badc..6ddbec3eeddf 100644 --- a/core/modules/content_moderation/tests/src/Kernel/ViewsModerationStateSortTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/ViewsModerationStateSortTest.php @@ -60,7 +60,7 @@ protected function setUp($import_test_views = TRUE): void { } /** - * Test sorting with a standard data base table. + * Tests sorting with a standard data base table. */ public function testSortBaseTable() { $this->enableModules(['content_moderation_test_views']); @@ -99,7 +99,7 @@ public function testSortBaseTable() { } /** - * Test sorting with the revision base table. + * Tests sorting with the revision base table. */ public function testSortRevisionBaseTable() { $this->enableModules(['content_moderation_test_views']); diff --git a/core/modules/content_moderation/tests/src/Unit/LatestRevisionCheckTest.php b/core/modules/content_moderation/tests/src/Unit/LatestRevisionCheckTest.php index 274cad9f2e22..5b84b44fdead 100644 --- a/core/modules/content_moderation/tests/src/Unit/LatestRevisionCheckTest.php +++ b/core/modules/content_moderation/tests/src/Unit/LatestRevisionCheckTest.php @@ -39,7 +39,7 @@ protected function setUp(): void { } /** - * Test the access check of the LatestRevisionCheck service. + * Tests the access check of the LatestRevisionCheck service. * * @param string $entity_class * The class of the entity to mock. diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php index 0f38a60d587c..03ef9203543b 100644 --- a/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php +++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php @@ -83,7 +83,7 @@ protected function setUp(): void { } /** - * Test that the source language is properly set when changing. + * Tests that the source language is properly set when changing. */ public function testLanguageChange() { // Create a node in English. @@ -118,7 +118,7 @@ public function testLanguageChange() { } /** - * Test that title does not change on ajax call with new language value. + * Tests that title does not change on ajax call with new language value. */ public function testTitleDoesNotChangesOnChangingLanguageWidgetAndTriggeringAjaxCall() { // Create a node in English. diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationOperationsTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationOperationsTest.php index 28d9bccee97d..03caf2bc0a94 100644 --- a/core/modules/content_translation/tests/src/Functional/ContentTranslationOperationsTest.php +++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationOperationsTest.php @@ -71,7 +71,7 @@ protected function setUp(): void { } /** - * Test that the operation "Translate" is displayed in the content listing. + * Tests that the operation "Translate" is displayed in the content listing. */ public function testOperationTranslateLink() { $node = $this->drupalCreateNode(['type' => 'article', 'langcode' => 'es']); diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationStandardFieldsTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationStandardFieldsTest.php index 489fc9d0bea5..6d658d057f29 100644 --- a/core/modules/content_translation/tests/src/Functional/ContentTranslationStandardFieldsTest.php +++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationStandardFieldsTest.php @@ -73,7 +73,7 @@ public function testFieldTranslatableArticle() { } /** - * Test that revision_log is not translatable. + * Tests that revision_log is not translatable. */ public function testRevisionLogNotTranslatable() { $path = 'admin/config/regional/content-language'; diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php index 4546d5143520..14500276b9cb 100644 --- a/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php +++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php @@ -589,7 +589,7 @@ protected function doTestTranslationChanged() { } /** - * Test the changed time after API and FORM save without changes. + * Tests the changed time after API and FORM save without changes. */ public function doTestChangedTimeAfterSaveWithoutChanges() { $storage = $this->container->get('entity_type.manager') diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php index 3c37a708426f..0f855f7211c9 100644 --- a/core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php +++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationWorkflowsTest.php @@ -181,7 +181,7 @@ protected function setupEntity(UserInterface $user = NULL) { } /** - * Test simple and editorial translation workflows. + * Tests simple and editorial translation workflows. */ public function testWorkflows() { // Test workflows for the editor. diff --git a/core/modules/content_translation/tests/src/Kernel/ContentTranslationFieldSyncRevisionTest.php b/core/modules/content_translation/tests/src/Kernel/ContentTranslationFieldSyncRevisionTest.php index b3c6323a9df2..d273d056f3f6 100644 --- a/core/modules/content_translation/tests/src/Kernel/ContentTranslationFieldSyncRevisionTest.php +++ b/core/modules/content_translation/tests/src/Kernel/ContentTranslationFieldSyncRevisionTest.php @@ -374,7 +374,7 @@ public function testFieldSynchronizationAndValidation() { } /** - * Test changing the default language of an entity. + * Tests changing the default language of an entity. */ public function testChangeDefaultLanguageNonTranslatableFieldsHidden() { $this->setUntranslatableFieldWidgetsDisplay(FALSE); diff --git a/core/modules/content_translation/tests/src/Kernel/ContentTranslationModuleInstallTest.php b/core/modules/content_translation/tests/src/Kernel/ContentTranslationModuleInstallTest.php index 09fca8c325a2..8f73175ada80 100644 --- a/core/modules/content_translation/tests/src/Kernel/ContentTranslationModuleInstallTest.php +++ b/core/modules/content_translation/tests/src/Kernel/ContentTranslationModuleInstallTest.php @@ -58,7 +58,7 @@ protected function setUp(): void { } /** - * Test that content translation fields are created upon module installation. + * Tests that content translation fields are created upon module installation. */ public function testFieldUpdates() { // The module ships a translatable bundle of the 'entity_test_with_bundle' diff --git a/core/modules/contextual/tests/src/FunctionalJavascript/ContextualLinksTest.php b/core/modules/contextual/tests/src/FunctionalJavascript/ContextualLinksTest.php index c53325ed5022..f33919957bf1 100644 --- a/core/modules/contextual/tests/src/FunctionalJavascript/ContextualLinksTest.php +++ b/core/modules/contextual/tests/src/FunctionalJavascript/ContextualLinksTest.php @@ -64,7 +64,7 @@ public function testContextualLinksVisibility() { } /** - * Test clicking contextual links. + * Tests clicking contextual links. */ public function testContextualLinksClick() { $this->container->get('module_installer')->install(['contextual_test']); @@ -98,7 +98,7 @@ public function testContextualLinksClick() { } /** - * Test the contextual links destination. + * Tests the contextual links destination. */ public function testContextualLinksDestination() { $this->grantPermissions(Role::load(Role::AUTHENTICATED_ID), [ diff --git a/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php b/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php index 388dc98f4ec5..38df772b4cbd 100644 --- a/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php +++ b/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php @@ -667,7 +667,7 @@ protected function datelistDataProvider($field_label) { } /** - * Test default value functionality. + * Tests default value functionality. */ public function testDefaultValue() { // Create a test content type. @@ -785,7 +785,7 @@ public function testDefaultValue() { } /** - * Test that invalid values are caught and marked as invalid. + * Tests that invalid values are caught and marked as invalid. */ public function testInvalidField() { // Change the field to a datetime field. diff --git a/core/modules/datetime/tests/src/Kernel/Views/ArgumentDateTimeTest.php b/core/modules/datetime/tests/src/Kernel/Views/ArgumentDateTimeTest.php index 3d0c2564ff5b..308eb8971020 100644 --- a/core/modules/datetime/tests/src/Kernel/Views/ArgumentDateTimeTest.php +++ b/core/modules/datetime/tests/src/Kernel/Views/ArgumentDateTimeTest.php @@ -46,7 +46,7 @@ protected function setUp($import_test_views = TRUE): void { } /** - * Test year argument. + * Tests year argument. * * @see \Drupal\datetime\Plugin\views\argument\YearDate */ @@ -89,7 +89,7 @@ public function testDatetimeArgumentYear() { } /** - * Test month argument. + * Tests month argument. * * @see \Drupal\datetime\Plugin\views\argument\MonthDate */ @@ -115,7 +115,7 @@ public function testDatetimeArgumentMonth() { } /** - * Test day argument. + * Tests day argument. * * @see \Drupal\datetime\Plugin\views\argument\DayDate */ @@ -141,7 +141,7 @@ public function testDatetimeArgumentDay() { } /** - * Test year, month, and day arguments combined. + * Tests year, month, and day arguments combined. */ public function testDatetimeArgumentAll() { $view = Views::getView('test_argument_datetime'); @@ -163,7 +163,7 @@ public function testDatetimeArgumentAll() { } /** - * Test week WW argument. + * Tests week WW argument. */ public function testDatetimeArgumentWeek() { $view = Views::getView('test_argument_datetime'); @@ -187,7 +187,7 @@ public function testDatetimeArgumentWeek() { } /** - * Test full_date CCYYMMDD argument. + * Tests full_date CCYYMMDD argument. */ public function testDatetimeArgumentFullDate() { $view = Views::getView('test_argument_datetime'); @@ -209,7 +209,7 @@ public function testDatetimeArgumentFullDate() { } /** - * Test year_month CCYYMM argument. + * Tests year_month CCYYMM argument. */ public function testDatetimeArgumentYearMonth() { $view = Views::getView('test_argument_datetime'); diff --git a/core/modules/datetime/tests/src/Kernel/Views/DateTimeSchemaTest.php b/core/modules/datetime/tests/src/Kernel/Views/DateTimeSchemaTest.php index 9bf8e0ee9351..60dd2cff3a6a 100644 --- a/core/modules/datetime/tests/src/Kernel/Views/DateTimeSchemaTest.php +++ b/core/modules/datetime/tests/src/Kernel/Views/DateTimeSchemaTest.php @@ -20,7 +20,7 @@ class DateTimeSchemaTest extends DateTimeHandlerTestBase { public static $testViews = ['test_argument_datetime', 'test_filter_datetime', 'test_sort_datetime']; /** - * Test argument plugin schema. + * Tests argument plugin schema. */ public function testDateTimeSchema() { // Test argument schema. diff --git a/core/modules/datetime/tests/src/Kernel/Views/FilterDateTest.php b/core/modules/datetime/tests/src/Kernel/Views/FilterDateTest.php index 253e94d0bab3..56e35010c4b6 100644 --- a/core/modules/datetime/tests/src/Kernel/Views/FilterDateTest.php +++ b/core/modules/datetime/tests/src/Kernel/Views/FilterDateTest.php @@ -83,7 +83,7 @@ protected function setUp($import_test_views = TRUE): void { } /** - * Test offsets with date-only fields. + * Tests offsets with date-only fields. */ public function testDateOffsets() { $view = Views::getView('test_filter_datetime'); @@ -167,7 +167,7 @@ public function testDateOffsets() { } /** - * Test date filter with date-only fields. + * Tests date filter with date-only fields. */ public function testDateIs() { $view = Views::getView('test_filter_datetime'); diff --git a/core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php b/core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php index 28ac4337f21d..cdafe7d15008 100644 --- a/core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php +++ b/core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php @@ -69,7 +69,7 @@ protected function setUp($import_test_views = TRUE): void { } /** - * Test filter operations. + * Tests filter operations. */ public function testDatetimeFilter() { $this->_testOffset(); @@ -78,7 +78,7 @@ public function testDatetimeFilter() { } /** - * Test offset operations. + * Tests offset operations. */ protected function _testOffset() { $view = Views::getView('test_filter_datetime'); @@ -113,7 +113,7 @@ protected function _testOffset() { } /** - * Test between operations. + * Tests between operations. */ protected function _testBetween() { $view = Views::getView('test_filter_datetime'); @@ -176,7 +176,7 @@ protected function _testBetween() { } /** - * Test exact date matching. + * Tests exact date matching. */ protected function _testExact() { $view = Views::getView('test_filter_datetime'); diff --git a/core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php b/core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php index ebc0caa21dea..35a21ee02f99 100644 --- a/core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php +++ b/core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php @@ -993,7 +993,7 @@ protected function datelistDataProvider() { } /** - * Test default value functionality. + * Tests default value functionality. */ public function testDefaultValue() { // Create a test content type. @@ -1157,7 +1157,7 @@ public function testDefaultValue() { } /** - * Test that invalid values are caught and marked as invalid. + * Tests that invalid values are caught and marked as invalid. */ public function testInvalidField() { // Change the field to a datetime field. diff --git a/core/modules/datetime_range/tests/src/Kernel/Views/FilterDateTest.php b/core/modules/datetime_range/tests/src/Kernel/Views/FilterDateTest.php index a1a4a121b766..206139b98c6f 100644 --- a/core/modules/datetime_range/tests/src/Kernel/Views/FilterDateTest.php +++ b/core/modules/datetime_range/tests/src/Kernel/Views/FilterDateTest.php @@ -114,7 +114,7 @@ protected function setUp($import_test_views = TRUE): void { } /** - * Test offsets with date-only fields. + * Tests offsets with date-only fields. */ public function testDateOffsets() { $view = Views::getView('test_filter_datetime'); diff --git a/core/modules/dblog/tests/src/Functional/DbLogTest.php b/core/modules/dblog/tests/src/Functional/DbLogTest.php index 18ca0a74d224..58b7bfc201f7 100644 --- a/core/modules/dblog/tests/src/Functional/DbLogTest.php +++ b/core/modules/dblog/tests/src/Functional/DbLogTest.php @@ -105,7 +105,7 @@ public function testDbLog() { } /** - * Test individual log event page. + * Tests individual log event page. */ public function testLogEventPage() { // Login the admin user. @@ -184,7 +184,7 @@ public function test403LogEventPage() { } /** - * Test not-existing log event page. + * Tests not-existing log event page. */ public function testLogEventNotFoundPage() { // Login the admin user. @@ -197,7 +197,7 @@ public function testLogEventNotFoundPage() { } /** - * Test individual log event page with missing log attributes. + * Tests individual log event page with missing log attributes. * * In some cases few log attributes are missing. For example: * - Missing referer: When request is made to a specific url directly and @@ -858,7 +858,7 @@ public function testOverviewLinks() { } /** - * Test sorting for entries with the same timestamp. + * Tests sorting for entries with the same timestamp. */ public function testSameTimestampEntries() { $this->drupalLogin($this->adminUser); diff --git a/core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php b/core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php index ae98572a6929..12ec986813ee 100644 --- a/core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php +++ b/core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php @@ -102,7 +102,7 @@ public function testRelationship() { } /** - * Test views can be filtered by severity and log type. + * Tests views can be filtered by severity and log type. */ public function testFiltering() { // Remove the watchdog entries added by the potential batch process. diff --git a/core/modules/editor/tests/src/Functional/EditorDialogAccessTest.php b/core/modules/editor/tests/src/Functional/EditorDialogAccessTest.php index c3c264e5a1d6..3fcdb18e7e5b 100644 --- a/core/modules/editor/tests/src/Functional/EditorDialogAccessTest.php +++ b/core/modules/editor/tests/src/Functional/EditorDialogAccessTest.php @@ -26,7 +26,7 @@ class EditorDialogAccessTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test access to the editor image dialog. + * Tests access to the editor image dialog. */ public function testEditorImageDialogAccess() { $url = Url::fromRoute('editor.image_dialog', ['editor' => 'plain_text']); diff --git a/core/modules/editor/tests/src/Functional/EditorLoadingTest.php b/core/modules/editor/tests/src/Functional/EditorLoadingTest.php index cf43620d9b9a..025e6ab2e69a 100644 --- a/core/modules/editor/tests/src/Functional/EditorLoadingTest.php +++ b/core/modules/editor/tests/src/Functional/EditorLoadingTest.php @@ -245,7 +245,7 @@ public function testLoading() { } /** - * Test supported element types. + * Tests supported element types. */ public function testSupportedElementTypes() { // Associate the unicorn text editor with the "Full HTML" text format. diff --git a/core/modules/editor/tests/src/Functional/QuickEditIntegrationLoadingTest.php b/core/modules/editor/tests/src/Functional/QuickEditIntegrationLoadingTest.php index 072495a20006..822922322b6e 100644 --- a/core/modules/editor/tests/src/Functional/QuickEditIntegrationLoadingTest.php +++ b/core/modules/editor/tests/src/Functional/QuickEditIntegrationLoadingTest.php @@ -68,7 +68,7 @@ protected function setUp(): void { } /** - * Test loading of untransformed text when a user doesn't have access to it. + * Tests loading of untransformed text when a user doesn't have access to it. */ public function testUsersWithoutPermission() { // Create 3 users, each with insufficient permissions, i.e. without either @@ -117,7 +117,7 @@ public function testUsersWithoutPermission() { } /** - * Test loading of untransformed text when a user does have access to it. + * Tests loading of untransformed text when a user does have access to it. */ public function testUserWithPermission() { $user = $this->drupalCreateUser(array_merge(static::$basicPermissions, ['edit any article content', 'access in-place editing'])); diff --git a/core/modules/field/tests/src/Functional/Boolean/BooleanFieldTest.php b/core/modules/field/tests/src/Functional/Boolean/BooleanFieldTest.php index 69abdc30c0af..27f78a852bbd 100644 --- a/core/modules/field/tests/src/Functional/Boolean/BooleanFieldTest.php +++ b/core/modules/field/tests/src/Functional/Boolean/BooleanFieldTest.php @@ -180,7 +180,7 @@ public function testBooleanField() { } /** - * Test field access. + * Tests field access. */ public function testFormAccess() { $on = 'boolean_on'; diff --git a/core/modules/field/tests/src/Functional/FieldAccessTest.php b/core/modules/field/tests/src/Functional/FieldAccessTest.php index d28dd2734e67..ee3a469419f2 100644 --- a/core/modules/field/tests/src/Functional/FieldAccessTest.php +++ b/core/modules/field/tests/src/Functional/FieldAccessTest.php @@ -79,7 +79,7 @@ protected function setUp(): void { } /** - * Test that hook_entity_field_access() is called. + * Tests that hook_entity_field_access() is called. */ public function testFieldAccess() { diff --git a/core/modules/field/tests/src/Functional/FieldHelpTest.php b/core/modules/field/tests/src/Functional/FieldHelpTest.php index e114e3031c3c..dc92befadd81 100644 --- a/core/modules/field/tests/src/Functional/FieldHelpTest.php +++ b/core/modules/field/tests/src/Functional/FieldHelpTest.php @@ -39,7 +39,7 @@ protected function setUp(): void { } /** - * Test the Field module's help page. + * Tests the Field module's help page. */ public function testFieldHelp() { // Log in the admin user. diff --git a/core/modules/field/tests/src/Functional/Number/NumberFieldTest.php b/core/modules/field/tests/src/Functional/Number/NumberFieldTest.php index 50bb3e60aa30..6086ef9d9dd5 100644 --- a/core/modules/field/tests/src/Functional/Number/NumberFieldTest.php +++ b/core/modules/field/tests/src/Functional/Number/NumberFieldTest.php @@ -39,7 +39,7 @@ protected function setUp(): void { } /** - * Test decimal field. + * Tests decimal field. */ public function testNumberDecimalField() { // Create a field with settings to validate. @@ -127,7 +127,7 @@ public function testNumberDecimalField() { } /** - * Test integer field. + * Tests integer field. */ public function testNumberIntegerField() { $minimum = rand(-4000, -2000); @@ -282,7 +282,7 @@ public function testNumberIntegerField() { } /** - * Test float field. + * Tests float field. */ public function testNumberFloatField() { // Create a field with settings to validate. diff --git a/core/modules/field/tests/src/Functional/ReEnableModuleFieldTest.php b/core/modules/field/tests/src/Functional/ReEnableModuleFieldTest.php index efb517c09826..0225e4ff91d5 100644 --- a/core/modules/field/tests/src/Functional/ReEnableModuleFieldTest.php +++ b/core/modules/field/tests/src/Functional/ReEnableModuleFieldTest.php @@ -45,7 +45,7 @@ protected function setUp(): void { } /** - * Test the behavior of a field module after being disabled and re-enabled. + * Tests the behavior of a field module after being disabled and re-enabled. * * @see field_system_info_alter() */ diff --git a/core/modules/field/tests/src/Functional/String/StringFieldTest.php b/core/modules/field/tests/src/Functional/String/StringFieldTest.php index 827ad9ec6cf6..a8140c4ad42e 100644 --- a/core/modules/field/tests/src/Functional/String/StringFieldTest.php +++ b/core/modules/field/tests/src/Functional/String/StringFieldTest.php @@ -48,7 +48,7 @@ protected function setUp(): void { // Test fields. /** - * Test widgets. + * Tests widgets. */ public function testTextfieldWidgets() { $this->_testTextfieldWidgets('string', 'string_textfield'); diff --git a/core/modules/field/tests/src/FunctionalJavascript/Number/NumberFieldTest.php b/core/modules/field/tests/src/FunctionalJavascript/Number/NumberFieldTest.php index bdeb766c12c2..013182f08d9a 100644 --- a/core/modules/field/tests/src/FunctionalJavascript/Number/NumberFieldTest.php +++ b/core/modules/field/tests/src/FunctionalJavascript/Number/NumberFieldTest.php @@ -42,7 +42,7 @@ protected function setUp(): void { } /** - * Test default formatter behavior. + * Tests default formatter behavior. */ public function testNumberFormatter() { $type = mb_strtolower($this->randomMachineName()); diff --git a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php index d20a54151de8..027d0eb7640b 100644 --- a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php +++ b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php @@ -332,7 +332,7 @@ public function testEntityAutoCreate() { } /** - * Test saving order sequence doesn't matter. + * Tests saving order sequence doesn't matter. */ public function testEntitySaveOrder() { // The term entity is unsaved here. diff --git a/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php b/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php index c1e8b240c578..9ed593a72c91 100644 --- a/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php +++ b/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php @@ -20,7 +20,7 @@ protected function setUp(): void { } /** - * Test rendering fields with EntityDisplay build(). + * Tests rendering fields with EntityDisplay build(). */ public function testEntityDisplayBuild() { $this->createFieldWithStorage('_2'); @@ -156,7 +156,7 @@ public function testEntityDisplayViewMultiple() { } /** - * Test entity cache. + * Tests entity cache. * * Complements unit test coverage in * \Drupal\Tests\Core\Entity\Sql\SqlContentEntityStorageTest. diff --git a/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php b/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php index 5127d92d371e..d46815f006d3 100644 --- a/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php +++ b/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php @@ -71,7 +71,7 @@ public function testFieldAttachSaveLoad() { } /** - * Test the 'multiple' load feature. + * Tests the 'multiple' load feature. */ public function testFieldAttachLoadMultiple() { $entity_type = 'entity_test_rev'; @@ -190,7 +190,7 @@ public function testFieldAttachSaveEmptyData() { } /** - * Test insert with empty or NULL fields, with default value. + * Tests insert with empty or NULL fields, with default value. */ public function testFieldAttachSaveEmptyDataDefaultValue() { $entity_type = 'entity_test_rev'; @@ -223,7 +223,7 @@ public function testFieldAttachSaveEmptyDataDefaultValue() { } /** - * Test entity deletion. + * Tests entity deletion. */ public function testFieldAttachDelete() { $entity_type = 'entity_test_rev'; @@ -283,7 +283,7 @@ public function testFieldAttachDelete() { } /** - * Test entity_bundle_create(). + * Tests entity_bundle_create(). */ public function testEntityCreateBundle() { $entity_type = 'entity_test_rev'; @@ -311,7 +311,7 @@ public function testEntityCreateBundle() { } /** - * Test entity_bundle_delete(). + * Tests entity_bundle_delete(). */ public function testEntityDeleteBundle() { $entity_type = 'entity_test_rev'; diff --git a/core/modules/field/tests/src/Kernel/FieldCrudTest.php b/core/modules/field/tests/src/Kernel/FieldCrudTest.php index d473131b7824..15ef3afe92fb 100644 --- a/core/modules/field/tests/src/Kernel/FieldCrudTest.php +++ b/core/modules/field/tests/src/Kernel/FieldCrudTest.php @@ -62,7 +62,7 @@ public function setUp(): void { // and for testUpdateField /** - * Test the creation of a field. + * Tests the creation of a field. */ public function testCreateField() { $field = FieldConfig::create($this->fieldDefinition); @@ -195,7 +195,7 @@ protected function doFieldPropertyConstraintsTests() { } /** - * Test creating a field with custom storage set. + * Tests creating a field with custom storage set. */ public function testCreateFieldCustomStorage() { $field_name = mb_strtolower($this->randomMachineName()); @@ -233,7 +233,7 @@ public function testCreateFieldCustomStorage() { } /** - * Test reading back a field definition. + * Tests reading back a field definition. */ public function testReadField() { FieldConfig::create($this->fieldDefinition)->save(); @@ -246,7 +246,7 @@ public function testReadField() { } /** - * Test the update of a field. + * Tests the update of a field. */ public function testUpdateField() { FieldConfig::create($this->fieldDefinition)->save(); @@ -268,7 +268,7 @@ public function testUpdateField() { } /** - * Test the deletion of a field with no data. + * Tests the deletion of a field with no data. */ public function testDeleteFieldNoData() { // Deleting and purging fields with data is tested in diff --git a/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php b/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php index 1f78db843a8d..a73f22dc72dd 100644 --- a/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php +++ b/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php @@ -29,7 +29,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase { // defer actual $field comparison to a helper function, used for the two cases above /** - * Test the creation of a field storage. + * Tests the creation of a field storage. */ public function testCreate() { $field_storage_definition = [ @@ -239,7 +239,7 @@ public function testRead() { } /** - * Test creation of indexes on data column. + * Tests creation of indexes on data column. */ public function testIndexes() { // Check that indexes specified by the field type are used by default. @@ -289,7 +289,7 @@ public function testIndexes() { } /** - * Test the deletion of a field storage. + * Tests the deletion of a field storage. */ public function testDeleteNoData() { // Deleting and purging field storages with data is tested in @@ -390,7 +390,7 @@ public function testUpdateFieldType() { } /** - * Test changing a field storage type. + * Tests changing a field storage type. */ public function testUpdateEntityType() { $field_storage = FieldStorageConfig::create([ @@ -408,7 +408,7 @@ public function testUpdateEntityType() { } /** - * Test changing a field storage entity type. + * Tests changing a field storage entity type. */ public function testUpdateEntityTargetType() { $field_storage = FieldStorageConfig::create([ @@ -426,7 +426,7 @@ public function testUpdateEntityTargetType() { } /** - * Test updating a field storage. + * Tests updating a field storage. */ public function testUpdate() { // Create a field with a defined cardinality, so that we can ensure it's @@ -468,7 +468,7 @@ public function testUpdate() { } /** - * Test field type modules forbidding an update. + * Tests field type modules forbidding an update. */ public function testUpdateForbid() { $field_storage = FieldStorageConfig::create([ diff --git a/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldFormatterSettingsTest.php b/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldFormatterSettingsTest.php index 27ee0a36381e..8d990138cd17 100644 --- a/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldFormatterSettingsTest.php +++ b/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldFormatterSettingsTest.php @@ -41,7 +41,7 @@ protected function assertComponentNotExists($display_id, $component_id) { } /** - * Test that migrated entity display settings can be loaded using D8 API's. + * Tests that migrated entity display settings can be loaded using D8 API's. */ public function testEntityDisplaySettings() { // Run tests. diff --git a/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldWidgetSettingsTest.php b/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldWidgetSettingsTest.php index d86f06d34616..a1bb4a73741b 100644 --- a/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldWidgetSettingsTest.php +++ b/core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldWidgetSettingsTest.php @@ -28,7 +28,7 @@ protected function setUp(): void { } /** - * Test that migrated view modes can be loaded using D8 API's. + * Tests that migrated view modes can be loaded using D8 API's. */ public function testWidgetSettings() { // Test the config can be loaded. diff --git a/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceWidgetSettingsTest.php b/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceWidgetSettingsTest.php index 35f27e25d6ae..da9a44f3fd1d 100644 --- a/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceWidgetSettingsTest.php +++ b/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceWidgetSettingsTest.php @@ -77,7 +77,7 @@ protected function assertComponent($display_id, $component_id, $widget_type, $we } /** - * Test that migrated view modes can be loaded using D8 APIs. + * Tests that migrated view modes can be loaded using D8 APIs. */ public function testWidgetSettings() { $this->assertEntity('node.page.default', 'node', 'page'); diff --git a/core/modules/field/tests/src/Kernel/TranslationTest.php b/core/modules/field/tests/src/Kernel/TranslationTest.php index 0860f8e9ea34..0cd0c0946c8f 100644 --- a/core/modules/field/tests/src/Kernel/TranslationTest.php +++ b/core/modules/field/tests/src/Kernel/TranslationTest.php @@ -105,7 +105,7 @@ protected function setUp(): void { } /** - * Test translatable fields storage/retrieval. + * Tests translatable fields storage/retrieval. */ public function testTranslatableFieldSaveLoad() { // Enable field translations for nodes. diff --git a/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php b/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php index 2112964d4656..240e580c21e1 100644 --- a/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php +++ b/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php @@ -160,7 +160,7 @@ public function testCalculateDependencies() { } /** - * Test that invalid bundles are handled. + * Tests that invalid bundles are handled. */ public function testCalculateDependenciesIncorrectBundle() { $storage = $this->createMock('\Drupal\Core\Config\Entity\ConfigEntityStorageInterface'); diff --git a/core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php b/core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php index e8fe5b9989a4..9312e7a27181 100644 --- a/core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php +++ b/core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php @@ -124,7 +124,7 @@ public function testEntityDisplayCRUD() { } /** - * Test sorting of components by name on basic CRUD operations. + * Tests sorting of components by name on basic CRUD operations. */ public function testEntityDisplayCRUDSort() { $display = EntityViewDisplay::create([ @@ -476,7 +476,7 @@ public function testEntityDisplayInvalidateCacheTags() { } /** - * Test getDisplayModeOptions(). + * Tests getDisplayModeOptions(). */ public function testGetDisplayModeOptions() { NodeType::create(['type' => 'article'])->save(); diff --git a/core/modules/file/tests/src/Functional/DownloadTest.php b/core/modules/file/tests/src/Functional/DownloadTest.php index d9685329658f..73d02a2116f7 100644 --- a/core/modules/file/tests/src/Functional/DownloadTest.php +++ b/core/modules/file/tests/src/Functional/DownloadTest.php @@ -23,7 +23,7 @@ protected function setUp(): void { } /** - * Test the public file transfer system. + * Tests the public file transfer system. */ public function testPublicFileTransfer() { // Test generating a URL to a created file. @@ -47,14 +47,14 @@ public function testPublicFileTransfer() { } /** - * Test the private file transfer system. + * Tests the private file transfer system. */ public function testPrivateFileTransferWithoutPageCache() { $this->doPrivateFileTransferTest(); } /** - * Test the private file transfer system. + * Tests the private file transfer system. */ protected function doPrivateFileTransferTest() { // Set file downloads to private so handler functions get called. @@ -109,7 +109,7 @@ protected function doPrivateFileTransferTest() { } /** - * Test file_create_url(). + * Tests file_create_url(). */ public function testFileCreateUrl() { // "Special" ASCII characters. diff --git a/core/modules/file/tests/src/Functional/SaveUploadTest.php b/core/modules/file/tests/src/Functional/SaveUploadTest.php index 3d04750d13ed..21f6fab6cdde 100644 --- a/core/modules/file/tests/src/Functional/SaveUploadTest.php +++ b/core/modules/file/tests/src/Functional/SaveUploadTest.php @@ -95,7 +95,7 @@ protected function setUp(): void { } /** - * Test the file_save_upload() function. + * Tests the file_save_upload() function. */ public function testNormal() { $max_fid_after = (int) \Drupal::entityQueryAggregate('file') @@ -151,7 +151,7 @@ public function testNormal() { } /** - * Test uploading a duplicate file. + * Tests uploading a duplicate file. */ public function testDuplicate() { // It should not be possible to create two managed files with the same URI. @@ -186,7 +186,7 @@ public function testDuplicate() { } /** - * Test extension handling. + * Tests extension handling. */ public function testHandleExtension() { // The file being tested is a .gif which is in the default safe list @@ -266,7 +266,7 @@ public function testHandleExtension() { } /** - * Test dangerous file handling. + * Tests dangerous file handling. */ public function testHandleDangerousFile() { $config = $this->config('system.file'); @@ -410,7 +410,7 @@ public function testHandleDotFile() { } /** - * Test file munge handling. + * Tests file munge handling. */ public function testHandleFileMunge() { // Ensure insecure uploads are disabled for this test. @@ -558,7 +558,7 @@ public function testHandleFileMunge() { } /** - * Test renaming when uploading over a file that already exists. + * Tests renaming when uploading over a file that already exists. */ public function testExistingRename() { $edit = [ @@ -575,7 +575,7 @@ public function testExistingRename() { } /** - * Test replacement when uploading over a file that already exists. + * Tests replacement when uploading over a file that already exists. */ public function testExistingReplace() { $edit = [ @@ -592,7 +592,7 @@ public function testExistingReplace() { } /** - * Test for failure when uploading over a file that already exists. + * Tests for failure when uploading over a file that already exists. */ public function testExistingError() { $edit = [ @@ -608,7 +608,7 @@ public function testExistingError() { } /** - * Test for no failures when not uploading a file. + * Tests for no failures when not uploading a file. */ public function testNoUpload() { $this->drupalPostForm('file-test/upload', [], 'Submit'); diff --git a/core/modules/file/tests/src/FunctionalJavascript/AjaxFileManagedMultipleTest.php b/core/modules/file/tests/src/FunctionalJavascript/AjaxFileManagedMultipleTest.php index 9dc76650137c..632bcdb47ccc 100644 --- a/core/modules/file/tests/src/FunctionalJavascript/AjaxFileManagedMultipleTest.php +++ b/core/modules/file/tests/src/FunctionalJavascript/AjaxFileManagedMultipleTest.php @@ -28,7 +28,7 @@ class AjaxFileManagedMultipleTest extends WebDriverTestBase { protected $defaultTheme = 'stark'; /** - * Test if managed file form element works well with multiple files upload. + * Tests if managed file form element works well with multiple files upload. */ public function testMultipleFilesUpload() { $file_system = \Drupal::service('file_system'); diff --git a/core/modules/file/tests/src/FunctionalJavascript/FileFieldValidateTest.php b/core/modules/file/tests/src/FunctionalJavascript/FileFieldValidateTest.php index 44bf484561f3..6c667ecd1261 100644 --- a/core/modules/file/tests/src/FunctionalJavascript/FileFieldValidateTest.php +++ b/core/modules/file/tests/src/FunctionalJavascript/FileFieldValidateTest.php @@ -28,7 +28,7 @@ class FileFieldValidateTest extends WebDriverTestBase { protected $defaultTheme = 'stark'; /** - * Test the validation message is displayed only once for ajax uploads. + * Tests the validation message is displayed only once for ajax uploads. */ public function testAjaxValidationMessage() { $field_name = strtolower($this->randomMachineName()); diff --git a/core/modules/file/tests/src/Kernel/CopyTest.php b/core/modules/file/tests/src/Kernel/CopyTest.php index 15a911b41272..d294e917a698 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. + * Tests file copying in the normal, base case. */ public function testNormal() { $contents = $this->randomMachineName(10); @@ -42,7 +42,7 @@ public function testNormal() { } /** - * Test renaming when copying over a file that already exists. + * Tests renaming when copying over a file that already exists. */ public function testExistingRename() { // Setup a file to overwrite. @@ -82,7 +82,7 @@ public function testExistingRename() { } /** - * Test replacement when copying over a file that already exists. + * Tests replacement when copying over a file that already exists. */ public function testExistingReplace() { // Setup a file to overwrite. @@ -120,7 +120,7 @@ public function testExistingReplace() { } /** - * Test that copying over an existing file fails when instructed to do so. + * Tests that copying over an existing file fails when instructed to do so. */ public function testExistingError() { $contents = $this->randomMachineName(10); diff --git a/core/modules/file/tests/src/Kernel/FileUrlTest.php b/core/modules/file/tests/src/Kernel/FileUrlTest.php index de385935c609..8cc995c4185f 100644 --- a/core/modules/file/tests/src/Kernel/FileUrlTest.php +++ b/core/modules/file/tests/src/Kernel/FileUrlTest.php @@ -12,7 +12,7 @@ class FileUrlTest extends FileManagedUnitTestBase { /** - * Test public files with a different host name from settings. + * Tests public files with a different host name from settings. */ public function testFilesUrlWithDifferentHostName() { $test_base_url = 'http://www.example.com/cdn'; 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 c8b1c75f509c..5573cd1032ce 100644 --- a/core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadTest.php +++ b/core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadTest.php @@ -64,7 +64,7 @@ protected function setUp(): void { } /** - * Test upload migration from Drupal 6 to Drupal 8. + * Tests upload migration from Drupal 6 to Drupal 8. */ public function testUpload() { $this->container->get('entity_type.manager') diff --git a/core/modules/file/tests/src/Kernel/MoveTest.php b/core/modules/file/tests/src/Kernel/MoveTest.php index 947fc6f172a4..bc2404138216 100644 --- a/core/modules/file/tests/src/Kernel/MoveTest.php +++ b/core/modules/file/tests/src/Kernel/MoveTest.php @@ -44,7 +44,7 @@ public function testNormal() { } /** - * Test renaming when moving onto a file that already exists. + * Tests renaming when moving onto a file that already exists. */ public function testExistingRename() { // Setup a file to overwrite. @@ -79,7 +79,7 @@ public function testExistingRename() { } /** - * Test replacement when moving onto a file that already exists. + * Tests replacement when moving onto a file that already exists. */ public function testExistingReplace() { // Setup a file to overwrite. @@ -111,7 +111,7 @@ public function testExistingReplace() { } /** - * Test replacement when moving onto itself. + * Tests replacement when moving onto itself. */ public function testExistingReplaceSelf() { // Setup a file to overwrite. @@ -133,7 +133,7 @@ public function testExistingReplaceSelf() { } /** - * Test that moving onto an existing file fails when instructed to do so. + * Tests that moving onto an existing file fails when instructed to do so. */ public function testExistingError() { $contents = $this->randomMachineName(10); diff --git a/core/modules/file/tests/src/Kernel/SaveDataTest.php b/core/modules/file/tests/src/Kernel/SaveDataTest.php index 1b7f89b5353f..50766a31219d 100644 --- a/core/modules/file/tests/src/Kernel/SaveDataTest.php +++ b/core/modules/file/tests/src/Kernel/SaveDataTest.php @@ -14,7 +14,7 @@ class SaveDataTest extends FileManagedUnitTestBase { /** - * Test the file_save_data() function when no filename is provided. + * Tests the file_save_data() function when no filename is provided. */ public function testWithoutFilename() { $contents = $this->randomMachineName(8); @@ -38,7 +38,7 @@ public function testWithoutFilename() { } /** - * Test the file_save_data() function when a filename is provided. + * Tests the file_save_data() function when a filename is provided. */ public function testWithFilename() { $contents = $this->randomMachineName(8); @@ -66,7 +66,7 @@ public function testWithFilename() { } /** - * Test file_save_data() when renaming around an existing file. + * Tests file_save_data() when renaming around an existing file. */ public function testExistingRename() { // Setup a file to overwrite. @@ -96,7 +96,7 @@ public function testExistingRename() { } /** - * Test file_save_data() when replacing an existing file. + * Tests file_save_data() when replacing an existing file. */ public function testExistingReplace() { // Setup a file to overwrite. @@ -125,7 +125,7 @@ public function testExistingReplace() { } /** - * Test that file_save_data() fails overwriting an existing file. + * Tests that file_save_data() fails overwriting an existing file. */ public function testExistingError() { $contents = $this->randomMachineName(8); diff --git a/core/modules/file/tests/src/Kernel/SpaceUsedTest.php b/core/modules/file/tests/src/Kernel/SpaceUsedTest.php index 9746cfda118e..5cbf11fdf3df 100644 --- a/core/modules/file/tests/src/Kernel/SpaceUsedTest.php +++ b/core/modules/file/tests/src/Kernel/SpaceUsedTest.php @@ -52,7 +52,7 @@ protected function createFileWithSize($uri, $size, $uid, $status = FILE_STATUS_P } /** - * Test different users with the default status. + * Tests different users with the default status. */ public function testFileSpaceUsed() { $file = $this->container->get('entity_type.manager')->getStorage('file'); diff --git a/core/modules/file/tests/src/Kernel/ValidateTest.php b/core/modules/file/tests/src/Kernel/ValidateTest.php index beff98bb9f3e..662c76c7e779 100644 --- a/core/modules/file/tests/src/Kernel/ValidateTest.php +++ b/core/modules/file/tests/src/Kernel/ValidateTest.php @@ -10,7 +10,7 @@ class ValidateTest extends FileManagedUnitTestBase { /** - * Test that the validators passed into are checked. + * Tests that the validators passed into are checked. */ public function testCallerValidation() { $file = $this->createFile(); diff --git a/core/modules/file/tests/src/Kernel/ValidatorTest.php b/core/modules/file/tests/src/Kernel/ValidatorTest.php index f8665c41e111..1569230385c8 100644 --- a/core/modules/file/tests/src/Kernel/ValidatorTest.php +++ b/core/modules/file/tests/src/Kernel/ValidatorTest.php @@ -40,7 +40,7 @@ protected function setUp(): void { } /** - * Test the file_validate_extensions() function. + * Tests the file_validate_extensions() function. */ public function testFileValidateExtensions() { $file = File::create(['filename' => 'asdf.txt']); @@ -141,7 +141,7 @@ public function testFileValidateNameLength() { } /** - * Test file_validate_size(). + * Tests file_validate_size(). */ public function testFileValidateSize() { // Create a file with a size of 1000 bytes, and quotas of only 1 byte. diff --git a/core/modules/filter/tests/src/Kernel/FilterCaptionTwigDebugTest.php b/core/modules/filter/tests/src/Kernel/FilterCaptionTwigDebugTest.php index 26200118c716..6ebffd1f810a 100644 --- a/core/modules/filter/tests/src/Kernel/FilterCaptionTwigDebugTest.php +++ b/core/modules/filter/tests/src/Kernel/FilterCaptionTwigDebugTest.php @@ -31,7 +31,7 @@ public function register(ContainerBuilder $container) { } /** - * Test the caption filter with Twig debugging on. + * Tests the caption filter with Twig debugging on. */ public function testCaptionFilter() { $manager = $this->container->get('plugin.manager.filter'); diff --git a/core/modules/hal/tests/src/Kernel/DenormalizeTest.php b/core/modules/hal/tests/src/Kernel/DenormalizeTest.php index e8c431e77f9e..9cc51dffdeca 100644 --- a/core/modules/hal/tests/src/Kernel/DenormalizeTest.php +++ b/core/modules/hal/tests/src/Kernel/DenormalizeTest.php @@ -105,7 +105,7 @@ public function testTypeHandlingWithNoTypes() { } /** - * Test that a field set to an empty array is different than an absent field. + * Tests that a field set to an empty array is different than an absent field. */ public function testMarkFieldForDeletion() { // Add a default value for a field. diff --git a/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php b/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php index 26ac0160cf33..4cb40f48addd 100644 --- a/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php +++ b/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php @@ -57,8 +57,7 @@ public function getImageCount(ImageStyleInterface $style) { } /** - * Test creating an image style with a numeric name and ensuring it can be - * applied to an image. + * Tests creating an image style with a numeric name. */ public function testNumericStyleName() { $style_name = rand(); @@ -306,7 +305,7 @@ public function testStyle() { } /** - * Test deleting a style and choosing a replacement style. + * Tests deleting a style and choosing a replacement style. */ public function testStyleReplacement() { // Create a new style. @@ -422,7 +421,7 @@ public function testEditEffect() { } /** - * Test flush user interface. + * Tests flush user interface. */ public function testFlushUserInterface() { $admin_path = 'admin/config/media/image-styles'; diff --git a/core/modules/image/tests/src/Functional/ImageDimensionsTest.php b/core/modules/image/tests/src/Functional/ImageDimensionsTest.php index d4e457a42bf0..70303aeee598 100644 --- a/core/modules/image/tests/src/Functional/ImageDimensionsTest.php +++ b/core/modules/image/tests/src/Functional/ImageDimensionsTest.php @@ -34,7 +34,7 @@ class ImageDimensionsTest extends BrowserTestBase { protected $profile = 'testing'; /** - * Test styled image dimensions cumulatively. + * Tests styled image dimensions cumulatively. */ public function testImageDimensions() { $image_factory = $this->container->get('image.factory'); diff --git a/core/modules/image/tests/src/Functional/ImageFieldDisplayTest.php b/core/modules/image/tests/src/Functional/ImageFieldDisplayTest.php index 8bc07c4a4530..6dd0b8dd3cfd 100644 --- a/core/modules/image/tests/src/Functional/ImageFieldDisplayTest.php +++ b/core/modules/image/tests/src/Functional/ImageFieldDisplayTest.php @@ -39,14 +39,14 @@ class ImageFieldDisplayTest extends ImageFieldTestBase { protected $defaultTheme = 'classy'; /** - * Test image formatters on node display for public files. + * Tests image formatters on node display for public files. */ public function testImageFieldFormattersPublic() { $this->_testImageFieldFormatters('public'); } /** - * Test image formatters on node display for private files. + * Tests image formatters on node display for private files. */ public function testImageFieldFormattersPrivate() { // Remove access content permission from anonymous users. @@ -55,7 +55,7 @@ public function testImageFieldFormattersPrivate() { } /** - * Test image formatters on node display. + * Tests image formatters on node display. */ public function _testImageFieldFormatters($scheme) { /** @var \Drupal\Core\Render\RendererInterface $renderer */ @@ -349,7 +349,7 @@ public function testImageFieldSettings() { } /** - * Test use of a default image with an image field. + * Tests use of a default image with an image field. */ public function testImageFieldDefaultImage() { /** @var \Drupal\Core\Render\RendererInterface $renderer */ diff --git a/core/modules/image/tests/src/Functional/ImageFieldValidateTest.php b/core/modules/image/tests/src/Functional/ImageFieldValidateTest.php index d5fc366383c2..b43b3bbfb0a3 100644 --- a/core/modules/image/tests/src/Functional/ImageFieldValidateTest.php +++ b/core/modules/image/tests/src/Functional/ImageFieldValidateTest.php @@ -23,7 +23,7 @@ class ImageFieldValidateTest extends ImageFieldTestBase { protected $defaultTheme = 'stark'; /** - * Test image validity. + * Tests image validity. */ public function testValid() { $file_system = $this->container->get('file_system'); @@ -81,7 +81,7 @@ public function testValid() { } /** - * Test min/max resolution settings. + * Tests min/max resolution settings. */ public function testResolution() { $field_names = [ @@ -160,7 +160,7 @@ public function testResolution() { } /** - * Test that required alt/title fields gets validated right. + * Tests that required alt/title fields gets validated right. */ public function testRequiredAttributes() { $field_name = strtolower($this->randomMachineName()); diff --git a/core/modules/image/tests/src/FunctionalJavascript/ImageFieldValidateTest.php b/core/modules/image/tests/src/FunctionalJavascript/ImageFieldValidateTest.php index 2b726943fa3f..75d1b058eea0 100644 --- a/core/modules/image/tests/src/FunctionalJavascript/ImageFieldValidateTest.php +++ b/core/modules/image/tests/src/FunctionalJavascript/ImageFieldValidateTest.php @@ -18,7 +18,7 @@ class ImageFieldValidateTest extends ImageFieldTestBase { protected $defaultTheme = 'stark'; /** - * Test the validation message is displayed only once for ajax uploads. + * Tests the validation message is displayed only once for ajax uploads. */ public function testAJAXValidationMessage() { $field_name = strtolower($this->randomMachineName()); diff --git a/core/modules/image/tests/src/FunctionalJavascript/QuickEditImageTest.php b/core/modules/image/tests/src/FunctionalJavascript/QuickEditImageTest.php index 66b2516b4de2..d97faf89e47c 100644 --- a/core/modules/image/tests/src/FunctionalJavascript/QuickEditImageTest.php +++ b/core/modules/image/tests/src/FunctionalJavascript/QuickEditImageTest.php @@ -57,7 +57,7 @@ protected function setUp(): void { } /** - * Test that quick editor works correctly with images. + * Tests that quick editor works correctly with images. * * @covers ::isCompatible * @covers ::getAttachments diff --git a/core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageCacheTest.php b/core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageCacheTest.php index 44713879fe3e..c4e3d5d46c41 100644 --- a/core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageCacheTest.php +++ b/core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageCacheTest.php @@ -42,7 +42,7 @@ public function testMissingTable() { } /** - * Test basic passing migrations. + * Tests basic passing migrations. */ public function testPassingMigration() { $this->executeMigration('d6_imagecache_presets'); @@ -79,7 +79,7 @@ public function testPassingMigration() { } /** - * Test that missing actions causes failures. + * Tests that missing actions causes failures. */ public function testMissingEffectPlugin() { Database::getConnection('default', 'migrate')->insert("imagecache_action") @@ -107,7 +107,7 @@ public function testMissingEffectPlugin() { } /** - * Test that missing action's causes failures. + * Tests that missing action's causes failures. */ public function testInvalidCropValues() { Database::getConnection('default', 'migrate')->insert("imagecache_action") diff --git a/core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageTest.php b/core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageTest.php index e4df819e87a6..dd4ebd289359 100644 --- a/core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageTest.php +++ b/core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageTest.php @@ -36,7 +36,7 @@ protected function setUp(): void { } /** - * Test image migration from Drupal 6 to 8. + * Tests image migration from Drupal 6 to 8. */ public function testNode() { $node = Node::load(9); diff --git a/core/modules/image/tests/src/Kernel/Migrate/d7/MigrateImageStylesTest.php b/core/modules/image/tests/src/Kernel/Migrate/d7/MigrateImageStylesTest.php index a9a6be311afc..0637a2092f2c 100644 --- a/core/modules/image/tests/src/Kernel/Migrate/d7/MigrateImageStylesTest.php +++ b/core/modules/image/tests/src/Kernel/Migrate/d7/MigrateImageStylesTest.php @@ -29,7 +29,7 @@ protected function setUp(): void { } /** - * Test the image styles migration. + * Tests the image styles migration. */ public function testImageStylesMigration() { $this->assertEntity('custom_image_style_1', "Custom image style 1", ['image_scale_and_crop', 'image_desaturate'], [['width' => 55, 'height' => 55, 'anchor' => 'center-center'], []]); diff --git a/core/modules/jsonapi/tests/src/Functional/ConfigurableLanguageTest.php b/core/modules/jsonapi/tests/src/Functional/ConfigurableLanguageTest.php index 7bc857b0e92a..6206ac8b2703 100644 --- a/core/modules/jsonapi/tests/src/Functional/ConfigurableLanguageTest.php +++ b/core/modules/jsonapi/tests/src/Functional/ConfigurableLanguageTest.php @@ -115,7 +115,7 @@ protected function getExpectedCacheContexts(array $sparse_fieldset = NULL) { } /** - * Test a GET request for a default config entity, which has a _core key. + * Tests a GET request for a default config entity, which has a _core key. * * @see https://www.drupal.org/project/drupal/issues/2915539 */ diff --git a/core/modules/jsonapi/tests/src/Functional/JsonApiFunctionalTest.php b/core/modules/jsonapi/tests/src/Functional/JsonApiFunctionalTest.php index b3ea1f58058a..21355af2fc5f 100644 --- a/core/modules/jsonapi/tests/src/Functional/JsonApiFunctionalTest.php +++ b/core/modules/jsonapi/tests/src/Functional/JsonApiFunctionalTest.php @@ -29,7 +29,7 @@ class JsonApiFunctionalTest extends JsonApiFunctionalTestBase { protected $defaultTheme = 'stark'; /** - * Test the GET method. + * Tests the GET method. */ public function testRead() { $this->createDefaultContent(61, 5, TRUE, TRUE, static::IS_NOT_MULTILINGUAL, FALSE); @@ -516,7 +516,7 @@ public function testRead() { } /** - * Test the GET method on articles referencing the same tag twice. + * Tests the GET method on articles referencing the same tag twice. */ public function testReferencingTwiceRead() { $this->createDefaultContent(1, 1, FALSE, FALSE, static::IS_NOT_MULTILINGUAL, TRUE); @@ -530,7 +530,7 @@ public function testReferencingTwiceRead() { } /** - * Test POST, PATCH and DELETE. + * Tests POST, PATCH and DELETE. */ public function testWrite() { $this->config('jsonapi.settings')->set('read_only', FALSE)->save(TRUE); diff --git a/core/modules/jsonapi/tests/src/Functional/MenuLinkContentTest.php b/core/modules/jsonapi/tests/src/Functional/MenuLinkContentTest.php index d11af84848de..4e630c59904e 100644 --- a/core/modules/jsonapi/tests/src/Functional/MenuLinkContentTest.php +++ b/core/modules/jsonapi/tests/src/Functional/MenuLinkContentTest.php @@ -180,7 +180,7 @@ public function testCollectionFilterAccess() { } /** - * Test requests using a serialized field item property. + * Tests requests using a serialized field item property. * * @see https://security.drupal.org/node/161923 */ diff --git a/core/modules/jsonapi/tests/src/Functional/UserTest.php b/core/modules/jsonapi/tests/src/Functional/UserTest.php index ce4d8e71377c..bc6b453b4317 100644 --- a/core/modules/jsonapi/tests/src/Functional/UserTest.php +++ b/core/modules/jsonapi/tests/src/Functional/UserTest.php @@ -427,7 +427,7 @@ public function testGetMailFieldOnlyVisibleToOwner() { } /** - * Test good error DX when trying to filter users by role. + * Tests good error DX when trying to filter users by role. */ public function testQueryInvolvingRoles() { $this->setUpAuthorization('GET'); diff --git a/core/modules/language/tests/src/Functional/ConfigurableLanguageManagerTest.php b/core/modules/language/tests/src/Functional/ConfigurableLanguageManagerTest.php index 5d96550fbbba..6a8dd1571906 100644 --- a/core/modules/language/tests/src/Functional/ConfigurableLanguageManagerTest.php +++ b/core/modules/language/tests/src/Functional/ConfigurableLanguageManagerTest.php @@ -103,7 +103,7 @@ protected function setUp(): void { } /** - * Test translation with URL and Preferred Admin Language negotiators. + * Tests translation with URL and Preferred Admin Language negotiators. * * The interface language uses the preferred language for admin pages of the * user and after that the URL. The Content uses just the URL. @@ -147,7 +147,7 @@ public function testUrlContentTranslationWithPreferredAdminLanguage() { } /** - * Test translation with URL and Session Language Negotiators. + * Tests translation with URL and Session Language Negotiators. */ public function testUrlContentTranslationWithSessionLanguage() { $assert_session = $this->assertSession(); diff --git a/core/modules/language/tests/src/Functional/LanguageSwitchingTest.php b/core/modules/language/tests/src/Functional/LanguageSwitchingTest.php index d0c48c9b8c43..98556b8d98d3 100644 --- a/core/modules/language/tests/src/Functional/LanguageSwitchingTest.php +++ b/core/modules/language/tests/src/Functional/LanguageSwitchingTest.php @@ -178,7 +178,7 @@ protected function doTestLanguageBlockAnonymous($block_label) { } /** - * Test language switcher links for domain based negotiation. + * Tests language switcher links for domain based negotiation. */ public function testLanguageBlockWithDomain() { // Add the Italian language. @@ -232,7 +232,7 @@ public function testLanguageBlockWithDomain() { } /** - * Test active class on links when switching languages. + * Tests active class on links when switching languages. */ public function testLanguageLinkActiveClass() { // Add language. diff --git a/core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php b/core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php index e06840ce3501..207db30fd757 100644 --- a/core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php +++ b/core/modules/language/tests/src/Functional/LanguageUILanguageNegotiationTest.php @@ -421,7 +421,7 @@ protected function doRunTest($test) { } /** - * Test URL language detection when the requested URL has no language. + * Tests URL language detection when the requested URL has no language. */ public function testUrlLanguageFallback() { // Add the Italian language. diff --git a/core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageResourceTestBase.php b/core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageResourceTestBase.php index bae7788d4bda..64a49ffe4471 100644 --- a/core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageResourceTestBase.php +++ b/core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageResourceTestBase.php @@ -76,7 +76,7 @@ protected function getNormalizedPostEntity() { } /** - * Test a GET request for a default config entity, which has a _core key. + * Tests a GET request for a default config entity, which has a _core key. * * @see https://www.drupal.org/node/2915414 */ diff --git a/core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php b/core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php index 3555141a0a93..5ec0af289880 100644 --- a/core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php +++ b/core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php @@ -45,7 +45,7 @@ protected function setUp(): void { } /** - * Test the language condition. + * Tests the language condition. */ public function testConditions() { // Grab the language condition and configure it to check the content diff --git a/core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php b/core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php index 8cc83feb5ee2..dff6af4c2b37 100644 --- a/core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php +++ b/core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php @@ -14,7 +14,7 @@ class LanguageDependencyInjectionTest extends LanguageTestBase { /** - * Test dependency injected languages against a new Language object. + * Tests dependency injected languages against a new Language object. * * @see \Drupal\Core\Language\LanguageInterface */ @@ -25,8 +25,7 @@ public function testDependencyInjectedNewLanguage() { } /** - * Test dependency injected Language object against a new default language - * object. + * Tests dependency injected Language object. * * @see \Drupal\Core\Language\Language */ diff --git a/core/modules/language/tests/src/Kernel/LanguageSelectWidgetTest.php b/core/modules/language/tests/src/Kernel/LanguageSelectWidgetTest.php index 43baca61f3de..658ff745186e 100644 --- a/core/modules/language/tests/src/Kernel/LanguageSelectWidgetTest.php +++ b/core/modules/language/tests/src/Kernel/LanguageSelectWidgetTest.php @@ -61,7 +61,7 @@ public function testWithIncludedLockedLanguage() { } /** - * Test the widget without the locked languages. + * Tests the widget without the locked languages. */ public function testWithoutIncludedLockedLanguage() { $this->entityFormDisplay->setComponent('langcode', [ diff --git a/core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php b/core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php index eeea62f7efbc..530ece0361dd 100644 --- a/core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php +++ b/core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php @@ -61,7 +61,7 @@ protected function setUp(): void { } /** - * Test path prefix language negotiation and outbound path processing. + * Tests path prefix language negotiation and outbound path processing. * * @dataProvider providerTestPathPrefix */ @@ -150,7 +150,7 @@ public function providerTestPathPrefix() { } /** - * Test domain language negotiation and outbound path processing. + * Tests domain language negotiation and outbound path processing. * * @dataProvider providerTestDomain */ diff --git a/core/modules/layout_builder/tests/src/Functional/LayoutBuilderTest.php b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderTest.php index bd417da4487a..0988d5afcf7b 100644 --- a/core/modules/layout_builder/tests/src/Functional/LayoutBuilderTest.php +++ b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderTest.php @@ -465,7 +465,7 @@ public function testHtmlEntityFormControllerDecoration() { } /** - * Test that layout builder checks entity view access. + * Tests that layout builder checks entity view access. */ public function testAccess() { $assert_session = $this->assertSession(); diff --git a/core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php b/core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php index 412f4ef77b0a..e502b7d50469 100644 --- a/core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php +++ b/core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php @@ -58,7 +58,7 @@ protected function setUp(): void { } /** - * Test access to private files added via inline blocks in the layout builder. + * Tests access to private files added to inline blocks in the layout builder. */ public function testPrivateFiles() { $assert_session = $this->assertSession(); diff --git a/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderNestedFormUiTest.php b/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderNestedFormUiTest.php index c0d6a7b9b990..aa073f12364c 100644 --- a/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderNestedFormUiTest.php +++ b/core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderNestedFormUiTest.php @@ -62,7 +62,7 @@ protected function setUp(): void { } /** - * Test blocks containing forms can be successfully saved editing defaults. + * Tests blocks containing forms can be successfully saved editing defaults. */ public function testAddingFormBlocksToDefaults() { $this->drupalLogin($this->drupalCreateUser([ @@ -96,7 +96,7 @@ public function testAddingFormBlocksToDefaults() { } /** - * Test blocks containing forms can be successfully saved editing overrides. + * Tests blocks containing forms can be successfully saved editing overrides. */ public function testAddingFormBlocksToOverrides() { $this->drupalLogin($this->drupalCreateUser([ diff --git a/core/modules/layout_builder/tests/src/FunctionalJavascript/TestMultiWidthLayoutsTest.php b/core/modules/layout_builder/tests/src/FunctionalJavascript/TestMultiWidthLayoutsTest.php index e650e6cbac2f..5767a1c63bf4 100644 --- a/core/modules/layout_builder/tests/src/FunctionalJavascript/TestMultiWidthLayoutsTest.php +++ b/core/modules/layout_builder/tests/src/FunctionalJavascript/TestMultiWidthLayoutsTest.php @@ -45,7 +45,7 @@ protected function setUp(): void { } /** - * Test changing the columns widths of a multi-width section. + * Tests changing the columns widths of a multi-width section. */ public function testWidthChange() { $assert_session = $this->assertSession(); diff --git a/core/modules/layout_builder/tests/src/Kernel/LayoutBuilderEntityViewDisplayTest.php b/core/modules/layout_builder/tests/src/Kernel/LayoutBuilderEntityViewDisplayTest.php index 81e4f8abbc3e..5b3fece0b55e 100644 --- a/core/modules/layout_builder/tests/src/Kernel/LayoutBuilderEntityViewDisplayTest.php +++ b/core/modules/layout_builder/tests/src/Kernel/LayoutBuilderEntityViewDisplayTest.php @@ -75,7 +75,7 @@ public function providerTestIsLayoutBuilderEnabled() { } /** - * Tests that setting overridable enables Layout Builder only when set to TRUE. + * Tests that setting overridable enables Layout Builder only when TRUE. */ public function testSetOverridable() { // Disable Layout Builder. diff --git a/core/modules/layout_discovery/tests/src/Kernel/LayoutTest.php b/core/modules/layout_discovery/tests/src/Kernel/LayoutTest.php index c802b3ef0ff5..48c08df3a193 100644 --- a/core/modules/layout_discovery/tests/src/Kernel/LayoutTest.php +++ b/core/modules/layout_discovery/tests/src/Kernel/LayoutTest.php @@ -45,7 +45,7 @@ public function testThemeProvidedLayout() { } /** - * Test rendering a layout. + * Tests rendering a layout. * * @dataProvider renderLayoutData */ diff --git a/core/modules/link/tests/src/Functional/LinkFieldTest.php b/core/modules/link/tests/src/Functional/LinkFieldTest.php index d2da5ce4aa35..a442d4798137 100644 --- a/core/modules/link/tests/src/Functional/LinkFieldTest.php +++ b/core/modules/link/tests/src/Functional/LinkFieldTest.php @@ -647,7 +647,7 @@ public function testLinkSeparateFormatter() { } /** - * Test '#link_type' property exists on 'link_default' widget. + * Tests '#link_type' property exists on 'link_default' widget. * * Make sure the 'link_default' widget exposes a '#link_type' property on * its element. Modules can use it to understand if a text form element is @@ -752,7 +752,7 @@ public function testEditNonNodeEntityLink() { } /** - * Test <nolink> and <none> as link uri. + * Tests <nolink> and <none> as link uri. */ public function testNoLinkUri() { $field_name = mb_strtolower($this->randomMachineName()); diff --git a/core/modules/link/tests/src/Unit/Plugin/migrate/process/FieldLinkTest.php b/core/modules/link/tests/src/Unit/Plugin/migrate/process/FieldLinkTest.php index 618534105844..d6721e51f2e5 100644 --- a/core/modules/link/tests/src/Unit/Plugin/migrate/process/FieldLinkTest.php +++ b/core/modules/link/tests/src/Unit/Plugin/migrate/process/FieldLinkTest.php @@ -14,7 +14,7 @@ class FieldLinkTest extends UnitTestCase { /** - * Test the url transformations in the FieldLink process plugin. + * Tests the url transformations in the FieldLink process plugin. * * @dataProvider canonicalizeUriDataProvider */ @@ -102,7 +102,7 @@ public function canonicalizeUriDataProvider() { } /** - * Test the attributes that are deeply serialized are discarded. + * Tests the attributes that are deeply serialized are discarded. */ public function testCanonicalizeUriSerialized() { $link_plugin = new FieldLink([], '', [], $this->createMock(MigrationInterface::class)); diff --git a/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php b/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php index 35c6939c42fc..b5f35c3e2da6 100644 --- a/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php +++ b/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php @@ -33,7 +33,7 @@ protected function setUp(): void { } /** - * Test update changes configuration translations if enabled after language. + * Tests update changes configuration translations if enabled after language. */ public function testConfigTranslationImport() { $admin_user = $this->drupalCreateUser([ @@ -85,7 +85,7 @@ public function testConfigTranslationImport() { } /** - * Test update changes configuration translations if enabled after language. + * Tests update changes configuration translations if enabled after language. */ public function testConfigTranslationModuleInstall() { @@ -156,7 +156,7 @@ public function testConfigTranslationModuleInstall() { } /** - * Test removing a string from Locale deletes configuration translations. + * Tests removing a string from Locale deletes configuration translations. */ public function testLocaleRemovalAndConfigOverrideDelete() { // Enable the locale module. @@ -201,7 +201,7 @@ public function testLocaleRemovalAndConfigOverrideDelete() { } /** - * Test removing a string from Locale changes configuration translations. + * Tests removing a string from Locale changes configuration translations. */ public function testLocaleRemovalAndConfigOverridePreserve() { // Enable the locale module. diff --git a/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php b/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php index e6ed45995524..5d8b464686b9 100644 --- a/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php +++ b/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php @@ -209,7 +209,7 @@ public function testConfigTranslation() { } /** - * Test translatability of optional configuration in locale. + * Tests translatability of optional configuration in locale. */ public function testOptionalConfiguration() { $this->assertNodeConfig(FALSE, FALSE); diff --git a/core/modules/locale/tests/src/Functional/LocaleContentTest.php b/core/modules/locale/tests/src/Functional/LocaleContentTest.php index dd1bea0ec7ef..b0fbb3657b19 100644 --- a/core/modules/locale/tests/src/Functional/LocaleContentTest.php +++ b/core/modules/locale/tests/src/Functional/LocaleContentTest.php @@ -63,7 +63,7 @@ public function testMachineNameLTR() { } /** - * Test if a content type can be set to multilingual and language is present. + * Tests if a content type can be set to multilingual and language is present. */ public function testContentTypeLanguageConfiguration() { $type1 = $this->drupalCreateContentType(); @@ -151,7 +151,7 @@ public function testContentTypeLanguageConfiguration() { } /** - * Test if a dir and lang tags exist in node's attributes. + * Tests if a dir and lang tags exist in node's attributes. */ public function testContentTypeDirLang() { $type = $this->drupalCreateContentType(); diff --git a/core/modules/locale/tests/src/Functional/LocaleExportTest.php b/core/modules/locale/tests/src/Functional/LocaleExportTest.php index 26908ed15c23..645f4c17591c 100644 --- a/core/modules/locale/tests/src/Functional/LocaleExportTest.php +++ b/core/modules/locale/tests/src/Functional/LocaleExportTest.php @@ -48,7 +48,7 @@ protected function setUp(): void { } /** - * Test exportation of translations. + * Tests exportation of translations. */ public function testExportTranslation() { $file_system = \Drupal::service('file_system'); @@ -121,7 +121,7 @@ public function testExportTranslation() { } /** - * Test exportation of translation template file. + * Tests exportation of translation template file. */ public function testExportTranslationTemplateFile() { // Load an admin page with JavaScript so _drupal_add_library() fires at diff --git a/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php b/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php index 7152b1616045..9bc63be00599 100644 --- a/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php +++ b/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php @@ -76,7 +76,7 @@ protected function setUp(): void { } /** - * Test import of standalone .po files. + * Tests import of standalone .po files. */ public function testStandalonePoFile() { // Try importing a .po file. @@ -249,7 +249,7 @@ public function testStandalonePoFile() { } /** - * Test msgctxt context support. + * Tests msgctxt context support. */ public function testLanguageContext() { // Try importing a .po file. @@ -264,7 +264,7 @@ public function testLanguageContext() { } /** - * Test empty msgstr at end of .po file see #611786. + * Tests empty msgstr at end of .po file see #611786. */ public function testEmptyMsgstr() { $langcode = 'hu'; @@ -377,7 +377,7 @@ public function testConfigtranslationImportingPoFile() { } /** - * Test the translation are imported when a new language is created. + * Tests the translation are imported when a new language is created. */ public function testCreatedLanguageTranslation() { // Import a .po file to add de language. diff --git a/core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php b/core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php index 2d7a48d21ab2..1ce4f015ee29 100644 --- a/core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php +++ b/core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php @@ -48,7 +48,7 @@ public function testCircularDependency() { } /** - * Test language fallback defaults. + * Tests language fallback defaults. */ public function testLanguageFallbackDefaults() { $this->drupalGet(''); @@ -62,7 +62,7 @@ public function testLanguageFallbackDefaults() { } /** - * Test old plural style @count[number] fix. + * Tests old plural style @count[number] fix. * * @dataProvider providerTestFixOldPluralStyle */ diff --git a/core/modules/locale/tests/src/Functional/LocalePathTest.php b/core/modules/locale/tests/src/Functional/LocalePathTest.php index 4f7b14a80198..a2549cdc2598 100644 --- a/core/modules/locale/tests/src/Functional/LocalePathTest.php +++ b/core/modules/locale/tests/src/Functional/LocalePathTest.php @@ -40,7 +40,7 @@ protected function setUp(): void { } /** - * Test if a language can be associated with a path alias. + * Tests if a language can be associated with a path alias. */ public function testPathLanguageConfiguration() { // User to add and remove language. diff --git a/core/modules/locale/tests/src/Kernel/LocaleStringTest.php b/core/modules/locale/tests/src/Kernel/LocaleStringTest.php index 14bc7f7c2485..85cfd2bfde4b 100644 --- a/core/modules/locale/tests/src/Kernel/LocaleStringTest.php +++ b/core/modules/locale/tests/src/Kernel/LocaleStringTest.php @@ -48,7 +48,7 @@ protected function setUp(): void { } /** - * Test CRUD API. + * Tests CRUD API. */ public function testStringCrudApi() { // Create source string. @@ -119,7 +119,7 @@ public function testStringCrudApi() { } /** - * Test Search API loading multiple objects. + * Tests Search API loading multiple objects. */ public function testStringSearchApi() { $language_count = 3; diff --git a/core/modules/media/tests/src/Functional/MediaAccessTest.php b/core/modules/media/tests/src/Functional/MediaAccessTest.php index be40eccfd1a2..8bbfd14f31fe 100644 --- a/core/modules/media/tests/src/Functional/MediaAccessTest.php +++ b/core/modules/media/tests/src/Functional/MediaAccessTest.php @@ -41,7 +41,7 @@ protected function setUp(): void { } /** - * Test some access control functionality. + * Tests some access control functionality. */ public function testMediaAccess() { $assert_session = $this->assertSession(); @@ -193,7 +193,7 @@ public function testMediaAccess() { } /** - * Test view access control on the canonical page. + * Tests view access control on the canonical page. */ public function testCanonicalMediaAccess() { $media_type = $this->createMediaType('test'); diff --git a/core/modules/media/tests/src/Functional/MediaOverviewPageTest.php b/core/modules/media/tests/src/Functional/MediaOverviewPageTest.php index 646d4d2f1030..ce6146cde59f 100644 --- a/core/modules/media/tests/src/Functional/MediaOverviewPageTest.php +++ b/core/modules/media/tests/src/Functional/MediaOverviewPageTest.php @@ -27,7 +27,7 @@ protected function setUp(): void { } /** - * Test that the Media overview page (/admin/content/media). + * Tests that the Media overview page (/admin/content/media). */ public function testMediaOverviewPage() { $assert_session = $this->assertSession(); diff --git a/core/modules/media/tests/src/Functional/MediaSettingsTest.php b/core/modules/media/tests/src/Functional/MediaSettingsTest.php index f5a72f7c593a..64b85db2508b 100644 --- a/core/modules/media/tests/src/Functional/MediaSettingsTest.php +++ b/core/modules/media/tests/src/Functional/MediaSettingsTest.php @@ -23,7 +23,7 @@ protected function setUp(): void { } /** - * Test that media warning appears if oEmbed media types exists. + * Tests that media warning appears if oEmbed media types exists. */ public function testStatusPage() { $assert_session = $this->assertSession(); diff --git a/core/modules/media/tests/src/Functional/MediaSourceFileTest.php b/core/modules/media/tests/src/Functional/MediaSourceFileTest.php index 55fb9276f321..09fb9f416861 100644 --- a/core/modules/media/tests/src/Functional/MediaSourceFileTest.php +++ b/core/modules/media/tests/src/Functional/MediaSourceFileTest.php @@ -17,7 +17,7 @@ class MediaSourceFileTest extends MediaFunctionalTestBase { protected $defaultTheme = 'stark'; /** - * Test that it's possible to change the allowed file extensions. + * Tests that it's possible to change the allowed file extensions. */ public function testSourceFieldSettingsEditing() { $session = $this->getSession(); diff --git a/core/modules/media/tests/src/Functional/MediaUiFunctionalTest.php b/core/modules/media/tests/src/Functional/MediaUiFunctionalTest.php index 99953f796473..f7ae94534336 100644 --- a/core/modules/media/tests/src/Functional/MediaUiFunctionalTest.php +++ b/core/modules/media/tests/src/Functional/MediaUiFunctionalTest.php @@ -171,7 +171,7 @@ public function testMediaWithMultipleMediaTypes() { } /** - * Test that media in ER fields use the Rendered Entity formatter by default. + * Tests that media in ER fields use the Rendered Entity formatter by default. */ public function testRenderedEntityReferencedMedia() { $page = $this->getSession()->getPage(); @@ -539,7 +539,7 @@ protected function assertNoHelpLink(NodeElement $element, $text) { } /** - * Test the media collection route. + * Tests the media collection route. */ public function testMediaCollectionRoute() { /** @var \Drupal\Core\Entity\EntityStorageInterface $media_storage */ diff --git a/core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php b/core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php index e695929ced7d..547b0e456b44 100644 --- a/core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php +++ b/core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php @@ -483,7 +483,7 @@ public function testEditableCaption() { } /** - * Test the EditorMediaDialog's form elements' #access logic. + * Tests the EditorMediaDialog's form elements' #access logic. */ public function testDialogAccess() { $page = $this->getSession()->getPage(); @@ -746,7 +746,7 @@ public function testAlt() { } /** - * Test that dialog loads appropriate translation's alt text. + * Tests that dialog loads appropriate translation's alt text. */ public function testTranslationAlt() { \Drupal::service('module_installer')->install(['language', 'content_translation']); diff --git a/core/modules/media/tests/src/FunctionalJavascript/MediaDisplayTest.php b/core/modules/media/tests/src/FunctionalJavascript/MediaDisplayTest.php index ce548a0a5f36..3ca198c13493 100644 --- a/core/modules/media/tests/src/FunctionalJavascript/MediaDisplayTest.php +++ b/core/modules/media/tests/src/FunctionalJavascript/MediaDisplayTest.php @@ -46,7 +46,7 @@ protected function setUp(): void { } /** - * Test basic media display. + * Tests basic media display. */ public function testMediaDisplay() { $assert_session = $this->assertSession(); diff --git a/core/modules/media/tests/src/FunctionalJavascript/MediaReferenceFieldHelpTest.php b/core/modules/media/tests/src/FunctionalJavascript/MediaReferenceFieldHelpTest.php index c817c790b0ad..74d4237bfdc6 100644 --- a/core/modules/media/tests/src/FunctionalJavascript/MediaReferenceFieldHelpTest.php +++ b/core/modules/media/tests/src/FunctionalJavascript/MediaReferenceFieldHelpTest.php @@ -17,7 +17,7 @@ class MediaReferenceFieldHelpTest extends MediaJavascriptTestBase { protected $defaultTheme = 'stark'; /** - * Test our custom help texts when creating a field. + * Tests our custom help texts when creating a field. * * @see media_form_field_ui_field_storage_add_form_alter() */ diff --git a/core/modules/media/tests/src/FunctionalJavascript/MediaSourceOEmbedVideoTest.php b/core/modules/media/tests/src/FunctionalJavascript/MediaSourceOEmbedVideoTest.php index 64e8a0ff8a3e..a5c19ad0c7f6 100644 --- a/core/modules/media/tests/src/FunctionalJavascript/MediaSourceOEmbedVideoTest.php +++ b/core/modules/media/tests/src/FunctionalJavascript/MediaSourceOEmbedVideoTest.php @@ -198,7 +198,7 @@ public function testMediaOEmbedVideoSource() { } /** - * Test that a security warning appears if iFrame domain is not set. + * Tests that a security warning appears if iFrame domain is not set. */ public function testOEmbedSecurityWarning() { $media_type_id = 'test_media_oembed_type'; diff --git a/core/modules/media/tests/src/FunctionalJavascript/MediaSourceTestBase.php b/core/modules/media/tests/src/FunctionalJavascript/MediaSourceTestBase.php index 8b28129c4f02..be926347c371 100644 --- a/core/modules/media/tests/src/FunctionalJavascript/MediaSourceTestBase.php +++ b/core/modules/media/tests/src/FunctionalJavascript/MediaSourceTestBase.php @@ -105,7 +105,7 @@ protected function hideMediaTypeFieldWidget($field_name, $media_type_id) { } /** - * Test generic media type creation. + * Tests generic media type creation. * * @param string $media_type_id * The media type config entity ID. diff --git a/core/modules/media/tests/src/FunctionalJavascript/MediaStandardProfileTest.php b/core/modules/media/tests/src/FunctionalJavascript/MediaStandardProfileTest.php index 40c69186007e..f98e1b3e284f 100644 --- a/core/modules/media/tests/src/FunctionalJavascript/MediaStandardProfileTest.php +++ b/core/modules/media/tests/src/FunctionalJavascript/MediaStandardProfileTest.php @@ -93,7 +93,7 @@ public function testMediaSources() { } /** - * Test the standard profile configuration for media type 'audio'. + * Tests the standard profile configuration for media type 'audio'. */ protected function audioTest() { $assert_session = $this->assertSession(); @@ -185,7 +185,7 @@ protected function audioTest() { } /** - * Test the standard profile configuration for media type 'image'. + * Tests the standard profile configuration for media type 'image'. */ protected function imageTest() { $assert_session = $this->assertSession(); @@ -279,7 +279,7 @@ protected function imageTest() { } /** - * Test the standard profile configuration for media type 'document'. + * Tests the standard profile configuration for media type 'document'. */ protected function documentTest() { $assert_session = $this->assertSession(); @@ -369,7 +369,7 @@ protected function documentTest() { } /** - * Test the standard profile configuration for media type 'remote_video'. + * Tests the standard profile configuration for media type 'remote_video'. */ protected function remoteVideoTest() { $assert_session = $this->assertSession(); @@ -464,7 +464,7 @@ protected function remoteVideoTest() { } /** - * Test the standard profile configuration for media type 'video'. + * Tests the standard profile configuration for media type 'video'. */ protected function videoTest() { $assert_session = $this->assertSession(); diff --git a/core/modules/media/tests/src/FunctionalJavascript/MediaTypeCreationTest.php b/core/modules/media/tests/src/FunctionalJavascript/MediaTypeCreationTest.php index ff00e9a2a420..3f1e26764e8c 100644 --- a/core/modules/media/tests/src/FunctionalJavascript/MediaTypeCreationTest.php +++ b/core/modules/media/tests/src/FunctionalJavascript/MediaTypeCreationTest.php @@ -134,7 +134,7 @@ public function testMediaTypeCreationFormWithDefaultField() { } /** - * Test creation of media type, reusing an existing source field. + * Tests creation of media type, reusing an existing source field. */ public function testMediaTypeCreationReuseSourceField() { $session = $this->getSession(); diff --git a/core/modules/media/tests/src/Kernel/MediaTranslationTest.php b/core/modules/media/tests/src/Kernel/MediaTranslationTest.php index 64b9fcae08ca..c14863b476a5 100644 --- a/core/modules/media/tests/src/Kernel/MediaTranslationTest.php +++ b/core/modules/media/tests/src/Kernel/MediaTranslationTest.php @@ -49,7 +49,7 @@ protected function setUp(): void { } /** - * Test translatable fields storage/retrieval. + * Tests translatable fields storage/retrieval. */ public function testTranslatableFieldSaveLoad() { /** @var \Drupal\Core\Entity\EntityTypeInterface $entity_type */ diff --git a/core/modules/media_library/tests/src/FunctionalJavascript/EmbeddedFormWidgetTest.php b/core/modules/media_library/tests/src/FunctionalJavascript/EmbeddedFormWidgetTest.php index c166baa017eb..cb284610fabe 100644 --- a/core/modules/media_library/tests/src/FunctionalJavascript/EmbeddedFormWidgetTest.php +++ b/core/modules/media_library/tests/src/FunctionalJavascript/EmbeddedFormWidgetTest.php @@ -90,7 +90,7 @@ protected function setUp(): void { } /** - * Test media inside another widget that validates too enthusiastically. + * Tests media inside another widget that validates too enthusiastically. * * @dataProvider insertionReselectionProvider */ diff --git a/core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php b/core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php index 4f9ef4e7d521..dc159ea43a86 100644 --- a/core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php +++ b/core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php @@ -365,7 +365,7 @@ public function testOpenerParameters() { } /** - * Test that hash is unaffected by allowed media type order. + * Tests that hash is unaffected by allowed media type order. */ public function testHashUnaffectedByMediaTypeOrder() { $state1 = MediaLibraryState::create('test', ['file', 'image'], 'image', 2); @@ -374,7 +374,7 @@ public function testHashUnaffectedByMediaTypeOrder() { } /** - * Test that hash is unaffected by opener parameter order. + * Tests that hash is unaffected by opener parameter order. */ public function testHashUnaffectedByOpenerParamOrder() { $state1 = MediaLibraryState::create('test', ['file'], 'file', -1, [ diff --git a/core/modules/menu_link_content/tests/src/Kernel/MenuLinksTest.php b/core/modules/menu_link_content/tests/src/Kernel/MenuLinksTest.php index 21361b1c48d2..a5e2b16f243f 100644 --- a/core/modules/menu_link_content/tests/src/Kernel/MenuLinksTest.php +++ b/core/modules/menu_link_content/tests/src/Kernel/MenuLinksTest.php @@ -205,7 +205,7 @@ public function testMenuLinkOnEntityDelete() { } /** - * Test automatic reparenting of menu links. + * Tests automatic reparenting of menu links. */ public function testMenuLinkReparenting($module = 'menu_test') { // Check the initial hierarchy. diff --git a/core/modules/menu_ui/tests/src/Functional/MenuLinkReorderTest.php b/core/modules/menu_ui/tests/src/Functional/MenuLinkReorderTest.php index 76710fe90806..f1c58edaacda 100644 --- a/core/modules/menu_ui/tests/src/Functional/MenuLinkReorderTest.php +++ b/core/modules/menu_ui/tests/src/Functional/MenuLinkReorderTest.php @@ -31,7 +31,7 @@ class MenuLinkReorderTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test creating, editing, deleting menu links via node form widget. + * Tests creating, editing, deleting menu links via node form widget. */ public function testDefaultMenuLinkReorder() { diff --git a/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php b/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php index 4b8e256b9a17..46fa6de4316e 100644 --- a/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php +++ b/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php @@ -65,7 +65,7 @@ protected function setUp(): void { } /** - * Test creating, editing, deleting menu links via node form widget. + * Tests creating, editing, deleting menu links via node form widget. */ public function testMenuNodeFormWidget() { // Verify that cacheability metadata is bubbled from the menu link tree diff --git a/core/modules/menu_ui/tests/src/Functional/MenuUiTest.php b/core/modules/menu_ui/tests/src/Functional/MenuUiTest.php index ca14d09c9963..24f6c2b87748 100644 --- a/core/modules/menu_ui/tests/src/Functional/MenuUiTest.php +++ b/core/modules/menu_ui/tests/src/Functional/MenuUiTest.php @@ -906,7 +906,7 @@ public function testMenuParentsJsAccess() { } /** - * Test the "expand all items" feature. + * Tests the "expand all items" feature. */ public function testExpandAllItems() { $this->drupalLogin($this->adminUser); @@ -1029,7 +1029,7 @@ protected function doTestMenuBlock() { } /** - * Test that menu links with pending revisions can not be re-parented. + * Tests that menu links with pending revisions can not be re-parented. */ public function testMenuUiWithPendingRevisions() { $this->drupalLogin($this->adminUser); diff --git a/core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php b/core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php index 3e7c68306068..b27022157537 100644 --- a/core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php +++ b/core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php @@ -98,7 +98,7 @@ protected function createDestination(array $configuration) { } /** - * Test importing and rolling back translated entities. + * Tests importing and rolling back translated entities. */ public function testTranslated() { // Create a destination. diff --git a/core/modules/migrate/tests/src/Kernel/MigrateExternalTranslatedTest.php b/core/modules/migrate/tests/src/Kernel/MigrateExternalTranslatedTest.php index 3a80b84cd23e..5a019ec2fd15 100644 --- a/core/modules/migrate/tests/src/Kernel/MigrateExternalTranslatedTest.php +++ b/core/modules/migrate/tests/src/Kernel/MigrateExternalTranslatedTest.php @@ -51,7 +51,7 @@ public function setUp(): void { } /** - * Test importing and rolling back our data. + * Tests importing and rolling back our data. */ public function testMigrations() { /** @var \Drupal\Core\Entity\ContentEntityStorageInterface $storage */ diff --git a/core/modules/migrate/tests/src/Kernel/MigrateStubTest.php b/core/modules/migrate/tests/src/Kernel/MigrateStubTest.php index da494ed53e4a..ebcd09203b1e 100644 --- a/core/modules/migrate/tests/src/Kernel/MigrateStubTest.php +++ b/core/modules/migrate/tests/src/Kernel/MigrateStubTest.php @@ -120,7 +120,7 @@ public function testStubWithBundleFields() { } /** - * Test invalid source id count. + * Tests invalid source id count. */ public function testInvalidSourceIdCount() { $this->expectException(\InvalidArgumentException::class); diff --git a/core/modules/migrate/tests/src/Kernel/Plugin/EntityExistsTest.php b/core/modules/migrate/tests/src/Kernel/Plugin/EntityExistsTest.php index 63ab36265767..6e111e25372f 100644 --- a/core/modules/migrate/tests/src/Kernel/Plugin/EntityExistsTest.php +++ b/core/modules/migrate/tests/src/Kernel/Plugin/EntityExistsTest.php @@ -29,7 +29,7 @@ protected function setUp(): void { } /** - * Test the EntityExists plugin. + * Tests the EntityExists plugin. */ public function testEntityExists() { $user = User::create([ diff --git a/core/modules/migrate/tests/src/Kernel/Plugin/LogTest.php b/core/modules/migrate/tests/src/Kernel/Plugin/LogTest.php index 707144c668b1..f03d62418702 100644 --- a/core/modules/migrate/tests/src/Kernel/Plugin/LogTest.php +++ b/core/modules/migrate/tests/src/Kernel/Plugin/LogTest.php @@ -65,7 +65,7 @@ public function setUp(): void { } /** - * Test the Log plugin. + * Tests the Log plugin. */ public function testLog() { $values = [ diff --git a/core/modules/migrate/tests/src/Kernel/Plugin/MigrationPluginConfigurationTest.php b/core/modules/migrate/tests/src/Kernel/Plugin/MigrationPluginConfigurationTest.php index 2e5a675e5d18..618b548f10b7 100644 --- a/core/modules/migrate/tests/src/Kernel/Plugin/MigrationPluginConfigurationTest.php +++ b/core/modules/migrate/tests/src/Kernel/Plugin/MigrationPluginConfigurationTest.php @@ -24,7 +24,7 @@ class MigrationPluginConfigurationTest extends KernelTestBase { ]; /** - * Test merging configuration into a plugin through the plugin manager. + * Tests merging configuration into a plugin through the plugin manager. * * @dataProvider mergeProvider */ diff --git a/core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php b/core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php index c459d41df802..736361e2a765 100644 --- a/core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php +++ b/core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php @@ -164,7 +164,7 @@ public function testFieldProvidersExist() { } /** - * Test a missing required definition. + * Tests a missing required definition. * * @param array $definitions * A field plugin definition. diff --git a/core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php b/core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php index 4575db0d82ce..bf4ba8cd18e4 100644 --- a/core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php +++ b/core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php @@ -42,7 +42,7 @@ protected function setUp(): void { } /** - * Test successful imports/copies. + * Tests successful imports/copies. */ public function testSuccessfulCopies() { $file = $this->createUri(NULL, NULL, 'temporary'); @@ -75,7 +75,7 @@ public function testSuccessfulCopies() { } /** - * Test successful file reuse. + * Tests successful file reuse. * * @dataProvider providerSuccessfulReuse * @@ -123,7 +123,7 @@ public function providerSuccessfulReuse() { } /** - * Test successful moves. + * Tests successful moves. */ public function testSuccessfulMoves() { $file_1 = $this->createUri(NULL, NULL, 'temporary'); @@ -158,7 +158,7 @@ public function testSuccessfulMoves() { } /** - * Test that non-existent files throw an exception. + * Tests that non-existent files throw an exception. */ public function testNonExistentSourceFile() { $source = '/non/existent/file'; @@ -195,7 +195,7 @@ public function testNonWritableDestination() { } /** - * Test the 'rename' overwrite mode. + * Tests the 'rename' overwrite mode. */ public function testRenameFile() { $source = $this->createUri(NULL, NULL, 'temporary'); diff --git a/core/modules/migrate/tests/src/Unit/Event/EventBaseTest.php b/core/modules/migrate/tests/src/Unit/Event/EventBaseTest.php index b712d318b26c..fc1b4bb942f3 100644 --- a/core/modules/migrate/tests/src/Unit/Event/EventBaseTest.php +++ b/core/modules/migrate/tests/src/Unit/Event/EventBaseTest.php @@ -12,7 +12,7 @@ class EventBaseTest extends UnitTestCase { /** - * Test getMigration method. + * Tests getMigration method. * * @covers ::__construct * @covers ::getMigration @@ -26,7 +26,7 @@ public function testGetMigration() { } /** - * Test logging a message. + * Tests logging a message. * * @covers ::__construct * @covers ::logMessage diff --git a/core/modules/migrate/tests/src/Unit/Event/MigrateImportEventTest.php b/core/modules/migrate/tests/src/Unit/Event/MigrateImportEventTest.php index d281433e03d5..89638507ddef 100644 --- a/core/modules/migrate/tests/src/Unit/Event/MigrateImportEventTest.php +++ b/core/modules/migrate/tests/src/Unit/Event/MigrateImportEventTest.php @@ -12,7 +12,7 @@ class MigrateImportEventTest extends UnitTestCase { /** - * Test getMigration method. + * Tests getMigration method. * * @covers ::__construct * @covers ::getMigration @@ -25,7 +25,7 @@ public function testGetMigration() { } /** - * Test logging a message. + * Tests logging a message. * * @covers ::__construct * @covers ::logMessage diff --git a/core/modules/migrate/tests/src/Unit/Event/MigratePostRowSaveEventTest.php b/core/modules/migrate/tests/src/Unit/Event/MigratePostRowSaveEventTest.php index f42cb06e9eda..ad381805b16d 100644 --- a/core/modules/migrate/tests/src/Unit/Event/MigratePostRowSaveEventTest.php +++ b/core/modules/migrate/tests/src/Unit/Event/MigratePostRowSaveEventTest.php @@ -11,7 +11,7 @@ class MigratePostRowSaveEventTest extends EventBaseTest { /** - * Test getDestinationIdValues method. + * Tests getDestinationIdValues method. * * @covers ::__construct * @covers ::getDestinationIdValues @@ -25,7 +25,7 @@ public function testGetDestinationIdValues() { } /** - * Test getRow method. + * Tests getRow method. * * @covers ::__construct * @covers ::getRow diff --git a/core/modules/migrate/tests/src/Unit/Event/MigratePreRowSaveEventTest.php b/core/modules/migrate/tests/src/Unit/Event/MigratePreRowSaveEventTest.php index f15dac1912a2..aee14e5bbb74 100644 --- a/core/modules/migrate/tests/src/Unit/Event/MigratePreRowSaveEventTest.php +++ b/core/modules/migrate/tests/src/Unit/Event/MigratePreRowSaveEventTest.php @@ -11,7 +11,7 @@ class MigratePreRowSaveEventTest extends EventBaseTest { /** - * Test getRow method. + * Tests getRow method. * * @covers ::__construct * @covers ::getRow diff --git a/core/modules/migrate/tests/src/Unit/MigrateSourceTest.php b/core/modules/migrate/tests/src/Unit/MigrateSourceTest.php index 8212c7a45222..f7579e658bc0 100644 --- a/core/modules/migrate/tests/src/Unit/MigrateSourceTest.php +++ b/core/modules/migrate/tests/src/Unit/MigrateSourceTest.php @@ -163,7 +163,7 @@ public function testHighwaterTrackChangesIncompatible() { } /** - * Test that the source count is correct. + * Tests that the source count is correct. * * @covers ::count */ @@ -201,7 +201,7 @@ public function testCount() { } /** - * Test that the key can be set for the count cache. + * Tests that the key can be set for the count cache. * * @covers ::count */ @@ -220,7 +220,7 @@ public function testCountCacheKey() { } /** - * Test that we don't get a row if prepareRow() is false. + * Tests that we don't get a row if prepareRow() is false. */ public function testPrepareRowFalse() { $source = $this->getSource([], ['prepare_row_false' => TRUE]); @@ -230,7 +230,7 @@ public function testPrepareRowFalse() { } /** - * Test that $row->needsUpdate() works as expected. + * Tests that $row->needsUpdate() works as expected. */ public function testNextNeedsUpdate() { $source = $this->getSource(); @@ -246,7 +246,7 @@ public function testNextNeedsUpdate() { } /** - * Test that an outdated highwater mark does not cause a row to be imported. + * Tests that an outdated highwater mark does not cause a row to be imported. */ public function testOutdatedHighwater() { $configuration = [ @@ -263,7 +263,7 @@ public function testOutdatedHighwater() { } /** - * Test that a highwater mark newer than our saved one imports a row. + * Tests that a highwater mark newer than our saved one imports a row. * * @throws \Exception */ @@ -282,7 +282,7 @@ public function testNewHighwater() { } /** - * Test basic row preparation. + * Tests basic row preparation. * * @covers ::prepareRow */ @@ -325,7 +325,7 @@ public function testPrepareRow() { } /** - * Test that global prepare hooks can skip rows. + * Tests that global prepare hooks can skip rows. * * @covers ::prepareRow */ @@ -354,7 +354,7 @@ public function testPrepareRowGlobalPrepareSkip() { } /** - * Test that migrate specific prepare hooks can skip rows. + * Tests that migrate specific prepare hooks can skip rows. * * @covers ::prepareRow */ @@ -383,7 +383,7 @@ public function testPrepareRowMigratePrepareSkip() { } /** - * Test that a skip exception during prepare hooks correctly skips. + * Tests that a skip exception during prepare hooks correctly skips. * * @covers ::prepareRow */ @@ -420,7 +420,7 @@ public function testPrepareRowPrepareException() { } /** - * Test that cacheCounts, skipCount, trackChanges preserve their default + * Tests that cacheCounts, skipCount, trackChanges preserve their default * values. */ public function testDefaultPropertiesValues() { diff --git a/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php b/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php index b88062d3c20c..7003db87880f 100644 --- a/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php +++ b/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php @@ -23,7 +23,7 @@ class EntityContentBaseTest extends EntityTestBase { /** - * Test basic entity save. + * Tests basic entity save. * * @covers ::import */ @@ -52,7 +52,7 @@ public function testImport() { } /** - * Test row skipping when we can't get an entity to save. + * Tests row skipping when we can't get an entity to save. * * @covers ::import */ @@ -71,7 +71,7 @@ public function testImportEntityLoadFailure() { } /** - * Test that translation destination fails for untranslatable entities. + * Tests that translation destination fails for untranslatable entities. */ public function testUntranslatable() { // An entity type without a language. diff --git a/core/modules/migrate/tests/src/Unit/RowTest.php b/core/modules/migrate/tests/src/Unit/RowTest.php index cc16e8a215d0..1770ccd9bd9c 100644 --- a/core/modules/migrate/tests/src/Unit/RowTest.php +++ b/core/modules/migrate/tests/src/Unit/RowTest.php @@ -310,7 +310,7 @@ public function testMultipleDestination() { } /** - * Test getting source and destination properties. + * Tests getting source and destination properties. * * @param string $key * The key to look up. @@ -354,7 +354,7 @@ public function getDataProvider() { } /** - * Test getting multiple source and destination properties. + * Tests getting multiple source and destination properties. * * @param array $keys * An array of keys to look up. diff --git a/core/modules/migrate/tests/src/Unit/destination/ConfigTest.php b/core/modules/migrate/tests/src/Unit/destination/ConfigTest.php index b6fd292d4b89..d85d3d5fceff 100644 --- a/core/modules/migrate/tests/src/Unit/destination/ConfigTest.php +++ b/core/modules/migrate/tests/src/Unit/destination/ConfigTest.php @@ -13,7 +13,7 @@ class ConfigTest extends UnitTestCase { /** - * Test the import method. + * Tests the import method. */ public function testImport() { $source = [ @@ -60,7 +60,7 @@ public function testImport() { } /** - * Test the import method. + * Tests the import method. */ public function testLanguageImport() { $source = [ diff --git a/core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php b/core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php index 47fd3096aad4..28ec1251936d 100644 --- a/core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php +++ b/core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php @@ -60,7 +60,7 @@ protected function setUp(): void { } /** - * Test that passed old destination values are used by default. + * Tests that passed old destination values are used by default. * * @covers ::getEntity */ @@ -78,7 +78,7 @@ public function testGetEntityDestinationValues() { } /** - * Test that revision updates update. + * Tests that revision updates update. * * @covers ::getEntity */ @@ -105,7 +105,7 @@ public function testGetEntityUpdateRevision() { } /** - * Test that new revisions are flagged to be written as new. + * Tests that new revisions are flagged to be written as new. * * @covers ::getEntity */ @@ -135,7 +135,7 @@ public function testGetEntityNewRevision() { } /** - * Test entity load failure. + * Tests entity load failure. * * @covers ::getEntity */ @@ -158,7 +158,7 @@ public function testGetEntityLoadFailure() { } /** - * Test entity revision save. + * Tests entity revision save. * * @covers ::save */ diff --git a/core/modules/migrate/tests/src/Unit/process/CallbackTest.php b/core/modules/migrate/tests/src/Unit/process/CallbackTest.php index 0cc93ae934dc..6965e12bb521 100644 --- a/core/modules/migrate/tests/src/Unit/process/CallbackTest.php +++ b/core/modules/migrate/tests/src/Unit/process/CallbackTest.php @@ -13,7 +13,7 @@ class CallbackTest extends MigrateProcessTestCase { /** - * Test callback with valid "callable". + * Tests callback with valid "callable". * * @dataProvider providerCallback */ @@ -70,7 +70,7 @@ public function providerCallbackArray() { } /** - * Test callback exceptions. + * Tests callback exceptions. * * @param string $message * The expected exception message. diff --git a/core/modules/migrate/tests/src/Unit/process/ConcatTest.php b/core/modules/migrate/tests/src/Unit/process/ConcatTest.php index 356974f447da..d504bc7285a7 100644 --- a/core/modules/migrate/tests/src/Unit/process/ConcatTest.php +++ b/core/modules/migrate/tests/src/Unit/process/ConcatTest.php @@ -26,7 +26,7 @@ protected function setUp(): void { } /** - * Test concat works without a delimiter. + * Tests concat works without a delimiter. */ public function testConcatWithoutDelimiter() { $value = $this->plugin->transform(['foo', 'bar'], $this->migrateExecutable, $this->row, 'destination_property'); @@ -34,7 +34,7 @@ public function testConcatWithoutDelimiter() { } /** - * Test concat fails properly on non-arrays. + * Tests concat fails properly on non-arrays. */ public function testConcatWithNonArray() { $this->expectException(MigrateException::class); @@ -42,7 +42,7 @@ public function testConcatWithNonArray() { } /** - * Test concat works without a delimiter. + * Tests concat works without a delimiter. */ public function testConcatWithDelimiter() { $this->plugin->setDelimiter('_'); diff --git a/core/modules/migrate/tests/src/Unit/process/ExplodeTest.php b/core/modules/migrate/tests/src/Unit/process/ExplodeTest.php index ddf859807488..ffe8d4c3ac8d 100644 --- a/core/modules/migrate/tests/src/Unit/process/ExplodeTest.php +++ b/core/modules/migrate/tests/src/Unit/process/ExplodeTest.php @@ -25,7 +25,7 @@ protected function setUp(): void { } /** - * Test explode transform process works. + * Tests explode transform process works. */ public function testTransform() { $value = $this->plugin->transform('foo,bar,tik', $this->migrateExecutable, $this->row, 'destination_property'); @@ -33,7 +33,7 @@ public function testTransform() { } /** - * Test explode transform process works with a limit. + * Tests explode transform process works with a limit. */ public function testTransformLimit() { $plugin = new Explode(['delimiter' => '_', 'limit' => 2], 'map', []); @@ -42,7 +42,7 @@ public function testTransformLimit() { } /** - * Test if the explode process can be chained with a handles_multiple process. + * Tests if the explode process can be chained with handles_multiple process. */ public function testChainedTransform() { $exploded = $this->plugin->transform('foo,bar,tik', $this->migrateExecutable, $this->row, 'destination_property'); @@ -53,7 +53,7 @@ public function testChainedTransform() { } /** - * Test explode fails properly on non-strings. + * Tests explode fails properly on non-strings. */ public function testExplodeWithNonString() { $this->expectException(MigrateException::class); @@ -111,7 +111,7 @@ public function testExplodeWithStrictAndEmptyString() { } /** - * Test explode fails with empty delimiter. + * Tests explode fails with empty delimiter. */ public function testExplodeWithEmptyDelimiter() { $this->expectException(MigrateException::class); diff --git a/core/modules/migrate/tests/src/Unit/process/FlattenTest.php b/core/modules/migrate/tests/src/Unit/process/FlattenTest.php index 3106260832a9..ff83ad9def69 100644 --- a/core/modules/migrate/tests/src/Unit/process/FlattenTest.php +++ b/core/modules/migrate/tests/src/Unit/process/FlattenTest.php @@ -21,7 +21,7 @@ protected function setUp(): void { } /** - * Test that various array flatten operations work properly. + * Tests that various array flatten operations work properly. * * @dataProvider providerTestFlatten */ diff --git a/core/modules/migrate/tests/src/Unit/process/MigrationLookupTest.php b/core/modules/migrate/tests/src/Unit/process/MigrationLookupTest.php index 66ab274d087d..4f931103edf3 100644 --- a/core/modules/migrate/tests/src/Unit/process/MigrationLookupTest.php +++ b/core/modules/migrate/tests/src/Unit/process/MigrationLookupTest.php @@ -101,7 +101,7 @@ public function skipInvalidDataProvider() { } /** - * Test that valid, but technically empty values are not skipped. + * Tests that valid, but technically empty values are not skipped. * * @param mixed $value * A valid value. diff --git a/core/modules/migrate_drupal/src/Tests/StubTestTrait.php b/core/modules/migrate_drupal/src/Tests/StubTestTrait.php index ff4209488403..d334aff678b0 100644 --- a/core/modules/migrate_drupal/src/Tests/StubTestTrait.php +++ b/core/modules/migrate_drupal/src/Tests/StubTestTrait.php @@ -10,8 +10,7 @@ trait StubTestTrait { /** - * Test that creating a stub of the given entity type results in a valid - * entity. + * Tests that a stub of the given entity type results in a valid entity. * * @param string $entity_type_id * The entity type we are stubbing. diff --git a/core/modules/migrate_drupal/tests/src/Kernel/IdMapTableNoDummyTest.php b/core/modules/migrate_drupal/tests/src/Kernel/IdMapTableNoDummyTest.php index f784be0abc00..6a3ff44f031c 100644 --- a/core/modules/migrate_drupal/tests/src/Kernel/IdMapTableNoDummyTest.php +++ b/core/modules/migrate_drupal/tests/src/Kernel/IdMapTableNoDummyTest.php @@ -28,7 +28,7 @@ public function setUp(): void { } /** - * Test that dummy map tables do not exist. + * Tests that dummy map tables do not exist. */ public function testNoDummyTables() { $database = \Drupal::database(); diff --git a/core/modules/migrate_drupal/tests/src/Kernel/d6/EntityContentBaseTest.php b/core/modules/migrate_drupal/tests/src/Kernel/d6/EntityContentBaseTest.php index a58b79066626..45fa0dc0bb32 100644 --- a/core/modules/migrate_drupal/tests/src/Kernel/d6/EntityContentBaseTest.php +++ b/core/modules/migrate_drupal/tests/src/Kernel/d6/EntityContentBaseTest.php @@ -89,7 +89,7 @@ public function testOverwriteProperties() { } /** - * Test that translation destination fails for untranslatable entities. + * Tests that translation destination fails for untranslatable entities. */ public function testUntranslatable() { $this->enableModules(['language_test']); diff --git a/core/modules/migrate_drupal/tests/src/Kernel/d6/FollowUpMigrationsTest.php b/core/modules/migrate_drupal/tests/src/Kernel/d6/FollowUpMigrationsTest.php index 7a2c6c1b2ac6..aebafb0d2720 100644 --- a/core/modules/migrate_drupal/tests/src/Kernel/d6/FollowUpMigrationsTest.php +++ b/core/modules/migrate_drupal/tests/src/Kernel/d6/FollowUpMigrationsTest.php @@ -37,7 +37,7 @@ protected function setUp(): void { } /** - * Test entity reference translations. + * Tests entity reference translations. */ public function testEntityReferenceTranslations() { // Test the entity reference field before the follow-up migrations. diff --git a/core/modules/migrate_drupal/tests/src/Kernel/d7/FollowUpMigrationsTest.php b/core/modules/migrate_drupal/tests/src/Kernel/d7/FollowUpMigrationsTest.php index cc0b30956625..ed52cfb87aa4 100644 --- a/core/modules/migrate_drupal/tests/src/Kernel/d7/FollowUpMigrationsTest.php +++ b/core/modules/migrate_drupal/tests/src/Kernel/d7/FollowUpMigrationsTest.php @@ -68,7 +68,7 @@ protected function getFileMigrationInfo() { } /** - * Test entity reference translations. + * Tests entity reference translations. */ public function testEntityReferenceTranslations() { // Test the entity reference field before the follow-up migrations. diff --git a/core/modules/migrate_drupal/tests/src/Unit/FieldDiscoveryTest.php b/core/modules/migrate_drupal/tests/src/Unit/FieldDiscoveryTest.php index ea6dc3db8a53..a08fd8393149 100644 --- a/core/modules/migrate_drupal/tests/src/Unit/FieldDiscoveryTest.php +++ b/core/modules/migrate_drupal/tests/src/Unit/FieldDiscoveryTest.php @@ -213,7 +213,7 @@ public function getBundleFieldsData() { } /** - * Test the protected getCoreVersion method. + * Tests the protected getCoreVersion method. * * @param string[] $tags * The migration tags. diff --git a/core/modules/node/tests/src/Functional/NodeFormSaveChangedTimeTest.php b/core/modules/node/tests/src/Functional/NodeFormSaveChangedTimeTest.php index 0e1ff0ac499a..ffa022a6f6de 100644 --- a/core/modules/node/tests/src/Functional/NodeFormSaveChangedTimeTest.php +++ b/core/modules/node/tests/src/Functional/NodeFormSaveChangedTimeTest.php @@ -58,7 +58,7 @@ protected function setUp(): void { } /** - * Test the changed time after API and FORM save without changes. + * Tests the changed time after API and FORM save without changes. */ public function testChangedTimeAfterSaveWithoutChanges() { $storage = $this->container->get('entity_type.manager')->getStorage('node'); diff --git a/core/modules/node/tests/src/Functional/NodeTranslationUITest.php b/core/modules/node/tests/src/Functional/NodeTranslationUITest.php index 033f3470048c..34a3a8424fba 100644 --- a/core/modules/node/tests/src/Functional/NodeTranslationUITest.php +++ b/core/modules/node/tests/src/Functional/NodeTranslationUITest.php @@ -544,7 +544,7 @@ public function testRevisionTranslationRendering() { } /** - * Test that title is not escaped (but XSS-filtered) for details form element. + * Tests title is not escaped (but XSS-filtered) for details form element. */ public function testDetailsTitleIsNotEscaped() { $this->drupalLogin($this->administrator); diff --git a/core/modules/node/tests/src/Functional/Views/BulkFormTest.php b/core/modules/node/tests/src/Functional/Views/BulkFormTest.php index f8de141767b6..b86663687e12 100644 --- a/core/modules/node/tests/src/Functional/Views/BulkFormTest.php +++ b/core/modules/node/tests/src/Functional/Views/BulkFormTest.php @@ -219,7 +219,7 @@ public function testBulkForm() { } /** - * Test multiple deletion. + * Tests multiple deletion. */ public function testBulkDeletion() { // Select a bunch of translated and untranslated nodes and check that diff --git a/core/modules/node/tests/src/FunctionalJavascript/NodePreviewLinkTest.php b/core/modules/node/tests/src/FunctionalJavascript/NodePreviewLinkTest.php index 9a1ce87bdc55..fa7b17757b6d 100644 --- a/core/modules/node/tests/src/FunctionalJavascript/NodePreviewLinkTest.php +++ b/core/modules/node/tests/src/FunctionalJavascript/NodePreviewLinkTest.php @@ -46,7 +46,7 @@ public function setUp(): void { } /** - * Test the behavior of clicking preview links. + * Tests the behavior of clicking preview links. */ public function testPreviewLinks() { $assertSession = $this->assertSession(); diff --git a/core/modules/node/tests/src/FunctionalJavascript/TestSettingSummariesContentType.php b/core/modules/node/tests/src/FunctionalJavascript/TestSettingSummariesContentType.php index d5cea26457cd..ef1d92361fab 100644 --- a/core/modules/node/tests/src/FunctionalJavascript/TestSettingSummariesContentType.php +++ b/core/modules/node/tests/src/FunctionalJavascript/TestSettingSummariesContentType.php @@ -33,7 +33,7 @@ public function setUp(): void { } /** - * Test a vertical tab 'Workflow' summary. + * Tests a vertical tab 'Workflow' summary. */ public function testWorkflowSummary() { $this->drupalGet('admin/structure/types/manage/test'); diff --git a/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeDeriverTest.php b/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeDeriverTest.php index 9119085f1e59..2794f4a61667 100644 --- a/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeDeriverTest.php +++ b/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeDeriverTest.php @@ -26,7 +26,7 @@ public function setUp(): void { } /** - * Test node translation migrations with translation disabled. + * Tests node translation migrations with translation disabled. */ public function testNoTranslations() { // Without content_translation, there should be no translation migrations. @@ -36,7 +36,7 @@ public function testNoTranslations() { } /** - * Test node translation migrations with translation enabled. + * Tests node translation migrations with translation enabled. */ public function testTranslations() { // With content_translation, there should be translation migrations for diff --git a/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeRevisionTest.php b/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeRevisionTest.php index 5833f49ea476..d975e9e4b8fa 100644 --- a/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeRevisionTest.php +++ b/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeRevisionTest.php @@ -58,7 +58,7 @@ protected function assertRevision($id, $langcode, $title, $log, $timestamp) { } /** - * Test node revisions migration from Drupal 6 to 8. + * Tests node revisions migration from Drupal 6 to 8. */ public function testNodeRevision() { $node = \Drupal::entityTypeManager()->getStorage('node')->loadRevision(2001); diff --git a/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeTest.php b/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeTest.php index 789d419170c5..a01264dd08eb 100644 --- a/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeTest.php +++ b/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeTest.php @@ -41,7 +41,7 @@ protected function setUp(): void { } /** - * Test node migration from Drupal 6 to 8. + * Tests node migration from Drupal 6 to 8. */ public function testNode() { // Confirm there are only classic node migration map tables. This shows diff --git a/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php b/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php index b47a936c1459..0567901a63d8 100644 --- a/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php +++ b/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php @@ -17,7 +17,7 @@ class MigrateNodeDeriverTest extends MigrateDrupal7TestBase { protected static $modules = ['node']; /** - * Test node translation migrations with translation disabled. + * Tests node translation migrations with translation disabled. */ public function testNoTranslations() { // Without content_translation, there should be no translation migrations. @@ -26,7 +26,7 @@ public function testNoTranslations() { } /** - * Test node translation migrations with translation enabled. + * Tests node translation migrations with translation enabled. */ public function testTranslations() { // With content_translation, there should be translation migrations for diff --git a/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTest.php b/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTest.php index 65b1ad85e304..919122f37e3e 100644 --- a/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTest.php +++ b/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTest.php @@ -144,7 +144,7 @@ protected function assertRevision($id, $title, $uid, $log, $timestamp) { } /** - * Test node migration from Drupal 7 to 8. + * Tests node migration from Drupal 7 to 8. */ public function testNode() { // Confirm there are only classic node migration map tables. This shows @@ -250,7 +250,7 @@ public function testNode() { $node = $node->getTranslation('is'); $this->assertSame($value, $node->field_text_plain->value); - // Test node entity translations migration from Drupal 7 to 8. + // Tests node entity translations migration from Drupal 7 to 8. $manager = $this->container->get('content_translation.manager'); // Get the node and its translations. diff --git a/core/modules/node/tests/src/Kernel/NodeAccessTest.php b/core/modules/node/tests/src/Kernel/NodeAccessTest.php index c983667bc78b..8d6b178c7fc1 100644 --- a/core/modules/node/tests/src/Kernel/NodeAccessTest.php +++ b/core/modules/node/tests/src/Kernel/NodeAccessTest.php @@ -114,7 +114,7 @@ public function testNodeAccess() { } /** - * Test operations not supported by node grants. + * Tests operations not supported by node grants. */ public function testUnsupportedOperation() { $this->enableModules(['node_access_test_empty']); diff --git a/core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php b/core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php index 7794326c3f39..0f54c38ec028 100644 --- a/core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php +++ b/core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php @@ -42,7 +42,7 @@ class NodeFieldAccessTest extends EntityKernelTestBase { protected $readOnlyFields = ['changed', 'revision_uid', 'revision_timestamp']; /** - * Test permissions on nodes status field. + * Tests permissions on nodes status field. */ public function testAccessToAdministrativeFields() { diff --git a/core/modules/node/tests/src/Kernel/NodeOwnerTest.php b/core/modules/node/tests/src/Kernel/NodeOwnerTest.php index 55e4740833e0..537f816ceac3 100644 --- a/core/modules/node/tests/src/Kernel/NodeOwnerTest.php +++ b/core/modules/node/tests/src/Kernel/NodeOwnerTest.php @@ -77,7 +77,7 @@ public function testOwner() { } /** - * Test an unsaved node owner. + * Tests an unsaved node owner. */ public function testUnsavedNodeOwner() { $user = User::create([ diff --git a/core/modules/node/tests/src/Kernel/Views/NidArgumentTest.php b/core/modules/node/tests/src/Kernel/Views/NidArgumentTest.php index e3953c07a565..3ccec531ebc0 100644 --- a/core/modules/node/tests/src/Kernel/Views/NidArgumentTest.php +++ b/core/modules/node/tests/src/Kernel/Views/NidArgumentTest.php @@ -48,7 +48,7 @@ protected function setUp($import_test_views = TRUE): void { } /** - * Test the nid argument. + * Tests the nid argument. */ public function testNidArgument() { $view = Views::getView('test_nid_argument'); diff --git a/core/modules/options/tests/src/Functional/OptionsDynamicValuesValidationTest.php b/core/modules/options/tests/src/Functional/OptionsDynamicValuesValidationTest.php index d865a06925c0..8d42e412246b 100644 --- a/core/modules/options/tests/src/Functional/OptionsDynamicValuesValidationTest.php +++ b/core/modules/options/tests/src/Functional/OptionsDynamicValuesValidationTest.php @@ -15,7 +15,7 @@ class OptionsDynamicValuesValidationTest extends OptionsDynamicValuesTestBase { protected $defaultTheme = 'stark'; /** - * Test that allowed values function gets the entity. + * Tests that allowed values function gets the entity. */ public function testDynamicAllowedValues() { // Verify that validation passes against every value we had. diff --git a/core/modules/options/tests/src/Kernel/OptionsFieldTest.php b/core/modules/options/tests/src/Kernel/OptionsFieldTest.php index 0ba5d44bf220..d80be94be799 100644 --- a/core/modules/options/tests/src/Kernel/OptionsFieldTest.php +++ b/core/modules/options/tests/src/Kernel/OptionsFieldTest.php @@ -22,7 +22,7 @@ class OptionsFieldTest extends OptionsFieldUnitTestBase { protected static $modules = ['options']; /** - * Test that allowed values can be updated. + * Tests that allowed values can be updated. */ public function testUpdateAllowedValues() { // All three options appear. diff --git a/core/modules/page_cache/tests/src/Functional/PageCacheTagsIntegrationTest.php b/core/modules/page_cache/tests/src/Functional/PageCacheTagsIntegrationTest.php index 5a0c99750c8d..3812010bee88 100644 --- a/core/modules/page_cache/tests/src/Functional/PageCacheTagsIntegrationTest.php +++ b/core/modules/page_cache/tests/src/Functional/PageCacheTagsIntegrationTest.php @@ -34,7 +34,7 @@ protected function setUp(): void { } /** - * Test that cache tags are properly bubbled up to the page level. + * Tests that cache tags are properly bubbled up to the page level. */ public function testPageCacheTags() { // Create two nodes. diff --git a/core/modules/page_cache/tests/src/Functional/PageCacheTest.php b/core/modules/page_cache/tests/src/Functional/PageCacheTest.php index 536e67dc67d2..ab661775eb17 100644 --- a/core/modules/page_cache/tests/src/Functional/PageCacheTest.php +++ b/core/modules/page_cache/tests/src/Functional/PageCacheTest.php @@ -47,7 +47,7 @@ protected function setUp(): void { } /** - * Test that cache tags are properly persisted. + * Tests that cache tags are properly persisted. * * Since tag based invalidation works, we know that our tag properly * persisted. @@ -84,7 +84,7 @@ public function testPageCacheTags() { } /** - * Test that the page cache doesn't depend on cacheability headers. + * Tests that the page cache doesn't depend on cacheability headers. */ public function testPageCacheTagsIndependentFromCacheabilityHeaders() { // Disable the cacheability headers. @@ -468,7 +468,7 @@ public function testPageCacheWithoutVaryCookie() { } /** - * Test the setting of forms to be immutable. + * Tests the setting of forms to be immutable. */ public function testFormImmutability() { // Install the module that provides the test form. @@ -577,7 +577,7 @@ public function testHead() { } /** - * Test a cacheable response with custom cache control. + * Tests a cacheable response with custom cache control. */ public function testCacheableWithCustomCacheControl() { $config = $this->config('system.performance'); @@ -590,7 +590,7 @@ public function testCacheableWithCustomCacheControl() { } /** - * Test that URLs are cached in a not normalized form. + * Tests that URLs are cached in a not normalized form. */ public function testNoUrlNormalization() { diff --git a/core/modules/path/tests/src/Functional/PathLanguageTest.php b/core/modules/path/tests/src/Functional/PathLanguageTest.php index e1ad8df14666..a1354a5df816 100644 --- a/core/modules/path/tests/src/Functional/PathLanguageTest.php +++ b/core/modules/path/tests/src/Functional/PathLanguageTest.php @@ -78,7 +78,7 @@ protected function setUp(): void { } /** - * Test alias functionality through the admin interfaces. + * Tests alias functionality through the admin interfaces. */ public function testAliasTranslation() { $node_storage = $this->container->get('entity_type.manager')->getStorage('node'); diff --git a/core/modules/path/tests/src/Functional/PathLanguageUiTest.php b/core/modules/path/tests/src/Functional/PathLanguageUiTest.php index 8c03409a3699..5f496e745e35 100644 --- a/core/modules/path/tests/src/Functional/PathLanguageUiTest.php +++ b/core/modules/path/tests/src/Functional/PathLanguageUiTest.php @@ -93,7 +93,7 @@ public function testNonDefaultUrl() { } /** - * Test that language unspecific aliases are shown and saved in the node form. + * Tests language unspecific aliases are shown and saved in the node form. */ public function testNotSpecifiedNode() { // Create test node. diff --git a/core/modules/path/tests/src/Kernel/Migrate/d6/MigrateUrlAliasTest.php b/core/modules/path/tests/src/Kernel/Migrate/d6/MigrateUrlAliasTest.php index 984014476c49..43bc7e72d312 100644 --- a/core/modules/path/tests/src/Kernel/Migrate/d6/MigrateUrlAliasTest.php +++ b/core/modules/path/tests/src/Kernel/Migrate/d6/MigrateUrlAliasTest.php @@ -67,7 +67,7 @@ private function assertPath($pid, $conditions, PathAliasInterface $path_alias) { } /** - * Test the url alias migration. + * Tests the url alias migration. */ public function testUrlAlias() { $id_map = $this->getMigration('d6_url_alias')->getIdMap(); @@ -123,7 +123,7 @@ public function testUrlAlias() { ]; $this->assertPath(8, $conditions, $path_alias); - // Test the URL alias migration with translated nodes. + // Tests the URL alias migration with translated nodes. // Alias for the 'The Real McCoy' node in English. $path_alias = $this->loadPathAliasByConditions(['alias' => '/the-real-mccoy']); $this->assertSame('/node/10', $path_alias->getPath()); diff --git a/core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasTest.php b/core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasTest.php index a73d0e5d3944..e29d74b9614b 100644 --- a/core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasTest.php +++ b/core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasTest.php @@ -30,7 +30,7 @@ protected function setUp(): void { } /** - * Test the URL alias migration with translated nodes. + * Tests the URL alias migration with translated nodes. */ public function testUrlAliasWithTranslatedNodes() { // Alias for the 'The thing about Deep Space 9' node in English. diff --git a/core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasTestBase.php b/core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasTestBase.php index 5cd39af2feb8..8c534d02f60c 100644 --- a/core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasTestBase.php +++ b/core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasTestBase.php @@ -46,7 +46,7 @@ protected function setUp() { } /** - * Test the URL alias migration. + * Tests the URL alias migration. */ public function testUrlAlias() { $path_alias = $this->loadPathAliasByConditions([ diff --git a/core/modules/path/tests/src/Kernel/PathItemTest.php b/core/modules/path/tests/src/Kernel/PathItemTest.php index 9299d563834b..4a39c7176f35 100644 --- a/core/modules/path/tests/src/Kernel/PathItemTest.php +++ b/core/modules/path/tests/src/Kernel/PathItemTest.php @@ -49,7 +49,7 @@ protected function setUp(): void { } /** - * Test creating, loading, updating and deleting aliases through PathItem. + * Tests creating, loading, updating and deleting aliases through PathItem. */ public function testPathItem() { /** @var \Drupal\path_alias\AliasRepositoryInterface $alias_repository */ diff --git a/core/modules/path_alias/tests/src/Functional/UrlAlterFunctionalTest.php b/core/modules/path_alias/tests/src/Functional/UrlAlterFunctionalTest.php index cfc6b2a4dc51..963bd14d1438 100644 --- a/core/modules/path_alias/tests/src/Functional/UrlAlterFunctionalTest.php +++ b/core/modules/path_alias/tests/src/Functional/UrlAlterFunctionalTest.php @@ -31,7 +31,7 @@ class UrlAlterFunctionalTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test that URL altering works and that it occurs in the correct order. + * Tests that URL altering works and that it occurs in the correct order. */ public function testUrlAlter() { // Ensure that the path_alias table exists after Drupal installation. diff --git a/core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditLoadingTest.php b/core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditLoadingTest.php index f35abf77aab9..7a8ee263bbe6 100644 --- a/core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditLoadingTest.php +++ b/core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditLoadingTest.php @@ -120,7 +120,7 @@ protected function setUp(): void { } /** - * Test the loading of Quick Edit with different permissions. + * Tests the loading of Quick Edit with different permissions. */ public function testUserPermissions() { $assert = $this->assertSession(); @@ -182,7 +182,7 @@ public function testUserPermissions() { } /** - * Test Quick Edit does not appear for entities with pending revisions. + * Tests Quick Edit does not appear for entities with pending revisions. */ public function testWithPendingRevision() { $this->drupalLogin($this->editorUser); diff --git a/core/modules/rdf/tests/src/Kernel/CrudTest.php b/core/modules/rdf/tests/src/Kernel/CrudTest.php index ee722a33dadb..aa4174eb23e6 100644 --- a/core/modules/rdf/tests/src/Kernel/CrudTest.php +++ b/core/modules/rdf/tests/src/Kernel/CrudTest.php @@ -53,7 +53,7 @@ public function testMappingCreation() { } /** - * Test the handling of bundle mappings. + * Tests the handling of bundle mappings. */ public function testBundleMapping() { // Test that the bundle mapping can be saved. @@ -76,7 +76,7 @@ public function testBundleMapping() { } /** - * Test the handling of field mappings. + * Tests the handling of field mappings. */ public function testFieldMapping() { $field_name = 'created'; diff --git a/core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php b/core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php index 19d22ac667c9..812ffeaf07c3 100644 --- a/core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php +++ b/core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php @@ -19,7 +19,7 @@ class RdfaAttributesTest extends KernelTestBase { protected static $modules = ['rdf']; /** - * Test attribute creation for mappings which use 'property'. + * Tests attribute creation for mappings which use 'property'. */ public function testProperty() { $properties = ['dc:title']; @@ -31,7 +31,7 @@ public function testProperty() { } /** - * Test attribute creation for mappings which use 'datatype'. + * Tests attribute creation for mappings which use 'datatype'. */ public function testDatatype() { $properties = ['foo:bar1']; @@ -50,7 +50,7 @@ public function testDatatype() { } /** - * Test attribute creation for mappings which override human-readable content. + * Tests attribute creation for mappings that override human-readable content. */ public function testDatatypeCallback() { $properties = ['dc:created']; @@ -74,7 +74,7 @@ public function testDatatypeCallback() { } /** - * Test attribute creation for mappings which use data converters. + * Tests attribute creation for mappings which use data converters. */ public function testDatatypeCallbackWithConverter() { $properties = ['schema:interactionCount']; @@ -98,7 +98,7 @@ public function testDatatypeCallbackWithConverter() { } /** - * Test attribute creation for mappings which use 'rel'. + * Tests attribute creation for mappings which use 'rel'. */ public function testRel() { $properties = ['sioc:has_creator', 'dc:creator']; diff --git a/core/modules/responsive_image/tests/src/Functional/ResponsiveImageAdminUITest.php b/core/modules/responsive_image/tests/src/Functional/ResponsiveImageAdminUITest.php index a5d79d7b2e8a..643a83643a68 100644 --- a/core/modules/responsive_image/tests/src/Functional/ResponsiveImageAdminUITest.php +++ b/core/modules/responsive_image/tests/src/Functional/ResponsiveImageAdminUITest.php @@ -39,7 +39,7 @@ protected function setUp(): void { } /** - * Test responsive image administration functionality. + * Tests responsive image administration functionality. */ public function testResponsiveImageAdmin() { // We start without any default styles. diff --git a/core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php b/core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php index fd09049d3f90..2aa5c15b0a2b 100644 --- a/core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php +++ b/core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php @@ -95,7 +95,7 @@ public function testResponsiveImageFieldFormattersPrivate() { } /** - * Test responsive image formatters when image style is empty. + * Tests responsive image formatters when image style is empty. */ public function testResponsiveImageFieldFormattersEmptyStyle() { $this->addTestImageStyleMappings(TRUE); @@ -166,7 +166,7 @@ protected function addTestImageStyleMappings($empty_styles = FALSE) { } /** - * Test responsive image formatters on node display. + * Tests responsive image formatters on node display. * * If the empty styles param is set, then the function only tests for the * fallback image style (large). diff --git a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php index 898f6770e451..e9ca8d6a172e 100644 --- a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php +++ b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php @@ -404,7 +404,7 @@ protected function getExpectedCacheContexts() { } /** - * Test a GET request for an entity, plus edge cases to ensure good DX. + * Tests a GET request for an entity, plus edge cases to ensure good DX. */ public function testGet() { $this->initAuthentication(); diff --git a/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php b/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php index 86080f5bf9a8..9e1439ec2cf1 100644 --- a/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php +++ b/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php @@ -450,7 +450,7 @@ public function testResponseFormatConfiguration() { } /** - * Test the field ID alias functionality of the DataFieldRow plugin. + * Tests the field ID alias functionality of the DataFieldRow plugin. */ public function testUIFieldAlias() { $this->drupalLogin($this->adminUser); @@ -842,7 +842,7 @@ public function testRestViewExposedFilter() { } /** - * Test multilingual entity rows. + * Tests multilingual entity rows. */ public function testMulEntityRows() { // Create some languages. diff --git a/core/modules/search/tests/src/Functional/SearchBlockTest.php b/core/modules/search/tests/src/Functional/SearchBlockTest.php index 509f8f7fa061..25b3d7286230 100644 --- a/core/modules/search/tests/src/Functional/SearchBlockTest.php +++ b/core/modules/search/tests/src/Functional/SearchBlockTest.php @@ -46,7 +46,7 @@ protected function setUp(): void { } /** - * Test that the search form block can be placed and works. + * Tests that the search form block can be placed and works. */ public function testSearchFormBlock() { diff --git a/core/modules/search/tests/src/Functional/SearchRankingTest.php b/core/modules/search/tests/src/Functional/SearchRankingTest.php index e3b7edce83e3..819b62bf477f 100644 --- a/core/modules/search/tests/src/Functional/SearchRankingTest.php +++ b/core/modules/search/tests/src/Functional/SearchRankingTest.php @@ -216,7 +216,7 @@ public function testRankings() { } /** - * Test rankings of HTML tags. + * Tests rankings of HTML tags. */ public function testHTMLRankings() { $full_html_format = FilterFormat::create([ diff --git a/core/modules/search/tests/src/Kernel/SearchMatchTest.php b/core/modules/search/tests/src/Kernel/SearchMatchTest.php index 0f39772425ae..511c0ef6782e 100644 --- a/core/modules/search/tests/src/Kernel/SearchMatchTest.php +++ b/core/modules/search/tests/src/Kernel/SearchMatchTest.php @@ -38,7 +38,7 @@ protected function setUp(): void { } /** - * Test search indexing. + * Tests search indexing. */ public function testMatching() { $this->_setup(); @@ -219,7 +219,7 @@ public function _testQueries() { } /** - * Test the matching abilities of the engine. + * Tests the matching abilities of the engine. * * Verify if a query produces the correct results. */ @@ -237,7 +237,7 @@ public function _testQueryMatching($query, $set, $results) { } /** - * Test the scoring abilities of the engine. + * Tests the scoring abilities of the engine. * * Verify if a query produces normalized, monotonous scores. */ diff --git a/core/modules/serialization/tests/src/Kernel/EntityResolverTest.php b/core/modules/serialization/tests/src/Kernel/EntityResolverTest.php index adbc95704943..0b687306f0b0 100644 --- a/core/modules/serialization/tests/src/Kernel/EntityResolverTest.php +++ b/core/modules/serialization/tests/src/Kernel/EntityResolverTest.php @@ -50,7 +50,7 @@ protected function setUp(): void { } /** - * Test that fields referencing UUIDs can be denormalized. + * Tests that fields referencing UUIDs can be denormalized. */ public function testUuidEntityResolver() { // Create an entity to get the UUID from. diff --git a/core/modules/serialization/tests/src/Kernel/EntitySerializationTest.php b/core/modules/serialization/tests/src/Kernel/EntitySerializationTest.php index 943627466bb6..16353354fb5a 100644 --- a/core/modules/serialization/tests/src/Kernel/EntitySerializationTest.php +++ b/core/modules/serialization/tests/src/Kernel/EntitySerializationTest.php @@ -120,7 +120,7 @@ protected function setUp(): void { } /** - * Test the normalize function. + * Tests the normalize function. */ public function testNormalize() { $expected = [ @@ -203,7 +203,7 @@ public function testUserNormalize() { } /** - * Test registered Serializer's entity serialization for core's formats. + * Tests registered Serializer's entity serialization for core's formats. */ public function testSerialize() { // Test that Serializer responds using the ComplexDataNormalizer and diff --git a/core/modules/serialization/tests/src/Kernel/MapDataNormalizerTest.php b/core/modules/serialization/tests/src/Kernel/MapDataNormalizerTest.php index ce6683f0e5b6..6be5f12aa8c4 100644 --- a/core/modules/serialization/tests/src/Kernel/MapDataNormalizerTest.php +++ b/core/modules/serialization/tests/src/Kernel/MapDataNormalizerTest.php @@ -59,7 +59,7 @@ public function testMapNormalize() { } /** - * Test whether map data with properties can be normalized. + * Tests whether map data with properties can be normalized. */ public function testMapWithPropertiesNormalize() { $typed_data = $this->buildExampleTypedDataWithProperties(); diff --git a/core/modules/serialization/tests/src/Unit/EntityResolver/ChainEntityResolverTest.php b/core/modules/serialization/tests/src/Unit/EntityResolver/ChainEntityResolverTest.php index 78ee23343208..2a9dd5b68df4 100644 --- a/core/modules/serialization/tests/src/Unit/EntityResolver/ChainEntityResolverTest.php +++ b/core/modules/serialization/tests/src/Unit/EntityResolver/ChainEntityResolverTest.php @@ -41,7 +41,7 @@ protected function setUp(): void { } /** - * Test the resolve method with no matching resolvers. + * Tests the resolve method with no matching resolvers. * * @covers ::__construct * @covers ::resolve @@ -58,7 +58,7 @@ public function testResolverWithNoneResolved() { } /** - * Test the resolve method with no matching resolvers, using addResolver. + * Tests the resolve method with no matching resolvers, using addResolver. * * @covers ::addResolver * @covers ::resolve @@ -72,7 +72,7 @@ public function testResolverWithNoneResolvedUsingAddResolver() { } /** - * Test the resolve method with a matching resolver first. + * Tests the resolve method with a matching resolver first. * * @covers ::__construct * @covers ::resolve @@ -89,7 +89,7 @@ public function testResolverWithFirstResolved() { } /** - * Test the resolve method with a matching resolver last. + * Tests the resolve method with a matching resolver last. * * @covers ::__construct * @covers ::resolve @@ -106,7 +106,7 @@ public function testResolverWithLastResolved() { } /** - * Test the resolve method where one resolver returns 0. + * Tests the resolve method where one resolver returns 0. * * @covers ::__construct * @covers ::resolve diff --git a/core/modules/serialization/tests/src/Unit/EntityResolver/UuidResolverTest.php b/core/modules/serialization/tests/src/Unit/EntityResolver/UuidResolverTest.php index 4eba61c25b58..9094e80609fc 100644 --- a/core/modules/serialization/tests/src/Unit/EntityResolver/UuidResolverTest.php +++ b/core/modules/serialization/tests/src/Unit/EntityResolver/UuidResolverTest.php @@ -36,7 +36,7 @@ protected function setUp(): void { } /** - * Test resolve() with a class using the incorrect interface. + * Tests resolve() with a class using the incorrect interface. */ public function testResolveNotInInterface() { $this->entityRepository->expects($this->never()) @@ -47,7 +47,7 @@ public function testResolveNotInInterface() { } /** - * Test resolve() with a class using the correct interface but no UUID. + * Tests resolve() with a class using the correct interface but no UUID. */ public function testResolveNoUuid() { $this->entityRepository->expects($this->never()) @@ -62,7 +62,7 @@ public function testResolveNoUuid() { } /** - * Test resolve() with correct interface but no matching entity for the UUID. + * Tests resolve() with correct interface but no matching entity for the UUID. */ public function testResolveNoEntity() { $uuid = '392eab92-35c2-4625-872d-a9dab4da008e'; @@ -82,7 +82,7 @@ public function testResolveNoEntity() { } /** - * Test resolve() when a UUID corresponds to an entity. + * Tests resolve() when a UUID corresponds to an entity. */ public function testResolveWithEntity() { $uuid = '392eab92-35c2-4625-872d-a9dab4da008e'; diff --git a/core/modules/serialization/tests/src/Unit/Normalizer/ComplexDataNormalizerTest.php b/core/modules/serialization/tests/src/Unit/Normalizer/ComplexDataNormalizerTest.php index 031aee188e83..9329a981070e 100644 --- a/core/modules/serialization/tests/src/Unit/Normalizer/ComplexDataNormalizerTest.php +++ b/core/modules/serialization/tests/src/Unit/Normalizer/ComplexDataNormalizerTest.php @@ -52,7 +52,7 @@ public function testSupportsNormalization() { } /** - * Test normalizing complex data. + * Tests normalizing complex data. * * @covers ::normalize */ @@ -80,7 +80,7 @@ public function testNormalizeComplexData() { } /** - * Test normalize() where $object does not implement ComplexDataInterface. + * Tests normalize() where $object does not implement ComplexDataInterface. * * Normalizers extending ComplexDataNormalizer may have a different supported * class. diff --git a/core/modules/settings_tray/tests/src/FunctionalJavascript/OverriddenConfigurationTest.php b/core/modules/settings_tray/tests/src/FunctionalJavascript/OverriddenConfigurationTest.php index f5959380b14c..cfe5c1566bb2 100644 --- a/core/modules/settings_tray/tests/src/FunctionalJavascript/OverriddenConfigurationTest.php +++ b/core/modules/settings_tray/tests/src/FunctionalJavascript/OverriddenConfigurationTest.php @@ -42,7 +42,7 @@ protected function setUp(): void { } /** - * Test blocks with overridden related configuration removed when overridden. + * Tests blocks with overridden related configuration removed when overridden. */ public function testOverriddenConfigurationRemoved() { $web_assert = $this->assertSession(); diff --git a/core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php b/core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php index bfbe7c4c299e..7ece59ef9474 100644 --- a/core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php +++ b/core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php @@ -262,7 +262,7 @@ public function testEditModeEnableDisable() { } /** - * Test that validation errors appear in the off-canvas dialog. + * Tests that validation errors appear in the off-canvas dialog. */ public function testValidationMessages() { $page = $this->getSession()->getPage(); diff --git a/core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutSetTest.php b/core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutSetTest.php index fe15ff9af629..61b438abbc5e 100644 --- a/core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutSetTest.php +++ b/core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutSetTest.php @@ -38,7 +38,7 @@ protected function setUp(): void { } /** - * Test the shortcut set migration. + * Tests the shortcut set migration. */ public function testShortcutSetMigration() { $this->assertEntity('default', 'Default', 2); diff --git a/core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutSetUsersTest.php b/core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutSetUsersTest.php index 8af588930ada..de91e8787b42 100644 --- a/core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutSetUsersTest.php +++ b/core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutSetUsersTest.php @@ -40,7 +40,7 @@ protected function setUp(): void { } /** - * Test the shortcut set migration. + * Tests the shortcut set migration. */ public function testShortcutSetUsersMigration() { // Check if migrated user has correct migrated shortcut set assigned. diff --git a/core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutTest.php b/core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutTest.php index 1f1cccefdae9..6e1b4fefe03e 100644 --- a/core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutTest.php +++ b/core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutTest.php @@ -59,7 +59,7 @@ protected function assertEntity($id, $title, $weight, $url) { } /** - * Test the shortcut migration. + * Tests the shortcut migration. */ public function testShortcutMigration() { // Check if the 4 shortcuts were migrated correctly. diff --git a/core/modules/syslog/tests/src/Kernel/SyslogTest.php b/core/modules/syslog/tests/src/Kernel/SyslogTest.php index 7a2ee56bc675..306602ed653a 100644 --- a/core/modules/syslog/tests/src/Kernel/SyslogTest.php +++ b/core/modules/syslog/tests/src/Kernel/SyslogTest.php @@ -54,7 +54,7 @@ public function testSyslogWriting() { } /** - * Test severity level logging. + * Tests severity level logging. * * @covers ::log */ diff --git a/core/modules/system/tests/modules/render_attached_test/src/Controller/RenderAttachedTestController.php b/core/modules/system/tests/modules/render_attached_test/src/Controller/RenderAttachedTestController.php index 43e406fdb20b..1bbf8ebe65db 100644 --- a/core/modules/system/tests/modules/render_attached_test/src/Controller/RenderAttachedTestController.php +++ b/core/modules/system/tests/modules/render_attached_test/src/Controller/RenderAttachedTestController.php @@ -8,7 +8,7 @@ class RenderAttachedTestController { /** - * Test special header and status code rendering. + * Tests special header and status code rendering. * * @return array * A render array using features of the 'http_header' directive. @@ -20,7 +20,7 @@ public function teapotHeaderStatus() { } /** - * Test attached HTML head rendering. + * Tests attached HTML head rendering. * * @return array * A render array using the 'http_head' directive. @@ -36,7 +36,7 @@ public function header() { } /** - * Test attached HTML head rendering. + * Tests attached HTML head rendering. * * @return array * A render array using the 'html_head' directive. @@ -58,7 +58,7 @@ public function head() { } /** - * Test attached feed rendering. + * Tests attached feed rendering. * * @return array * A render array using the 'feed' directive. @@ -70,7 +70,7 @@ public function feed() { } /** - * Test HTTP header rendering for link. + * Tests HTTP header rendering for link. * * @return array * A render array using the 'html_head_link' directive. diff --git a/core/modules/system/tests/modules/router_test_directory/src/TestControllers.php b/core/modules/system/tests/modules/router_test_directory/src/TestControllers.php index e8e0604e3ad4..5ee789fd0aff 100644 --- a/core/modules/system/tests/modules/router_test_directory/src/TestControllers.php +++ b/core/modules/system/tests/modules/router_test_directory/src/TestControllers.php @@ -65,7 +65,7 @@ public function test9($uid) { } /** - * Test controller for ExceptionHandlingTest::testBacktraceEscaping(). + * Tests controller for ExceptionHandlingTest::testBacktraceEscaping(). * * Passes unsafe HTML as an argument to a method which throws an exception. * This can be used to test if the generated backtrace is properly escaped. diff --git a/core/modules/system/tests/src/Functional/Ajax/OffCanvasDialogTest.php b/core/modules/system/tests/src/Functional/Ajax/OffCanvasDialogTest.php index 1300abbb0d41..cff73b818b0a 100644 --- a/core/modules/system/tests/src/Functional/Ajax/OffCanvasDialogTest.php +++ b/core/modules/system/tests/src/Functional/Ajax/OffCanvasDialogTest.php @@ -27,7 +27,7 @@ class OffCanvasDialogTest extends BrowserTestBase { protected static $modules = ['ajax_test']; /** - * Test sending AJAX requests to open and manipulate off-canvas dialog. + * Tests sending AJAX requests to open and manipulate off-canvas dialog. * * @dataProvider dialogPosition */ diff --git a/core/modules/system/tests/src/Functional/Batch/ProcessingTest.php b/core/modules/system/tests/src/Functional/Batch/ProcessingTest.php index fb83d42822b4..49f7888c1553 100644 --- a/core/modules/system/tests/src/Functional/Batch/ProcessingTest.php +++ b/core/modules/system/tests/src/Functional/Batch/ProcessingTest.php @@ -187,7 +187,7 @@ public function testBatchFormProgrammatic() { } /** - * Test form submission during a batch operation. + * Tests form submission during a batch operation. */ public function testDrupalFormSubmitInBatch() { // Displaying the page triggers a batch that programmatically submits a diff --git a/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php b/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php index 1744177153fd..f30f8aed3a67 100644 --- a/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php +++ b/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php @@ -32,7 +32,7 @@ protected function setUp(): void { } /** - * Test that the AJAX Timezone Callback can deal with various formats. + * Tests that the AJAX Timezone Callback can deal with various formats. */ public function testSystemTimezone() { $options = [ @@ -46,7 +46,7 @@ public function testSystemTimezone() { } /** - * Test that DrupalDateTime can detect the right timezone to use. + * Tests that DrupalDateTime can detect the right timezone to use. * Test with a variety of less commonly used timezone names to * help ensure that the system timezone will be different than the * stated timezones. diff --git a/core/modules/system/tests/src/Functional/Entity/EntityListBuilderTest.php b/core/modules/system/tests/src/Functional/Entity/EntityListBuilderTest.php index 682b5f6644ac..fca46b860391 100644 --- a/core/modules/system/tests/src/Functional/Entity/EntityListBuilderTest.php +++ b/core/modules/system/tests/src/Functional/Entity/EntityListBuilderTest.php @@ -37,7 +37,7 @@ protected function setUp(): void { } /** - * Test paging. + * Tests paging. */ public function testPager() { // Create 51 test entities. diff --git a/core/modules/system/tests/src/Functional/Entity/EntityReferenceSelection/EntityReferenceSelectionAccessTest.php b/core/modules/system/tests/src/Functional/Entity/EntityReferenceSelection/EntityReferenceSelectionAccessTest.php index 333cf1904ed7..1ab19c710c1b 100644 --- a/core/modules/system/tests/src/Functional/Entity/EntityReferenceSelection/EntityReferenceSelectionAccessTest.php +++ b/core/modules/system/tests/src/Functional/Entity/EntityReferenceSelection/EntityReferenceSelectionAccessTest.php @@ -115,7 +115,7 @@ protected function assertReferenceable(array $selection_options, $tests, $handle } /** - * Test the node-specific overrides of the entity handler. + * Tests the node-specific overrides of the entity handler. */ public function testNodeHandler() { $selection_options = [ @@ -239,7 +239,7 @@ public function testNodeHandler() { } /** - * Test the user-specific overrides of the entity handler. + * Tests the user-specific overrides of the entity handler. */ public function testUserHandler() { $selection_options = [ @@ -398,7 +398,7 @@ public function testUserHandler() { } /** - * Test the comment-specific overrides of the entity handler. + * Tests the comment-specific overrides of the entity handler. */ public function testCommentHandler() { $selection_options = [ @@ -556,7 +556,7 @@ public function testCommentHandler() { } /** - * Test the term-specific overrides of the selection handler. + * Tests the term-specific overrides of the selection handler. */ public function testTermHandler() { // Create a 'Tags' vocabulary. diff --git a/core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php b/core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php index 973be481350c..3ef36094767a 100644 --- a/core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php +++ b/core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php @@ -25,7 +25,7 @@ class ElementsLabelsTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test form elements, labels, title attributes and required marks output + * Tests form elements, labels, title attributes and required marks output * correctly and have the correct label option class if needed. */ public function testFormLabels() { @@ -122,7 +122,7 @@ public function testFormDescriptions() { } /** - * Test forms in theme-less environments. + * Tests forms in theme-less environments. */ public function testFormsInThemeLessEnvironments() { $form = $this->getFormWithLimitedProperties(); diff --git a/core/modules/system/tests/src/Functional/Form/ElementsTableSelectTest.php b/core/modules/system/tests/src/Functional/Form/ElementsTableSelectTest.php index 2ed48f04988c..6f140fe9ef26 100644 --- a/core/modules/system/tests/src/Functional/Form/ElementsTableSelectTest.php +++ b/core/modules/system/tests/src/Functional/Form/ElementsTableSelectTest.php @@ -25,7 +25,7 @@ class ElementsTableSelectTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test the display of checkboxes when #multiple is TRUE. + * Tests the display of checkboxes when #multiple is TRUE. */ public function testMultipleTrue() { @@ -43,7 +43,7 @@ public function testMultipleTrue() { } /** - * Test the display of radios when #multiple is FALSE. + * Tests the display of radios when #multiple is FALSE. */ public function testMultipleFalse() { $this->drupalGet('form_test/tableselect/multiple-false'); @@ -85,7 +85,7 @@ public function testTableSelectColSpan() { } /** - * Test the display of the #empty text when #options is an empty array. + * Tests the display of the #empty text when #options is an empty array. */ public function testEmptyText() { $this->drupalGet('form_test/tableselect/empty-text'); @@ -93,7 +93,7 @@ public function testEmptyText() { } /** - * Test the submission of single and multiple values when #multiple is TRUE. + * Tests the submission of single and multiple values when #multiple is TRUE. */ public function testMultipleTrueSubmit() { @@ -119,7 +119,7 @@ public function testMultipleTrueSubmit() { } /** - * Test submission of values when #multiple is FALSE. + * Tests submission of values when #multiple is FALSE. */ public function testMultipleFalseSubmit() { $edit['tableselect'] = 'row1'; @@ -128,7 +128,7 @@ public function testMultipleFalseSubmit() { } /** - * Test the #js_select property. + * Tests the #js_select property. */ public function testAdvancedSelect() { // When #multiple = TRUE a Select all checkbox should be displayed by default. @@ -148,7 +148,8 @@ public function testAdvancedSelect() { } /** - * Test the whether the option checker gives an error on invalid tableselect values for checkboxes. + * Tests the whether the option checker gives an error on invalid + * tableselect values for checkboxes. */ public function testMultipleTrueOptionchecker() { @@ -171,7 +172,8 @@ public function testMultipleTrueOptionchecker() { } /** - * Test the whether the option checker gives an error on invalid tableselect values for radios. + * Tests the whether the option checker gives an error on invalid + * tableselect values for radios. */ public function testMultipleFalseOptionchecker() { diff --git a/core/modules/system/tests/src/Functional/Form/FormTest.php b/core/modules/system/tests/src/Functional/Form/FormTest.php index 450aed38859e..a6e4c92d732c 100644 --- a/core/modules/system/tests/src/Functional/Form/FormTest.php +++ b/core/modules/system/tests/src/Functional/Form/FormTest.php @@ -369,7 +369,7 @@ public function testRequiredTextfieldNoTitle() { } /** - * Test default value handling for checkboxes. + * Tests default value handling for checkboxes. * * @see _form_test_checkbox() */ @@ -718,7 +718,7 @@ public function testColorValidation() { } /** - * Test handling of disabled elements. + * Tests handling of disabled elements. * * @see _form_test_disabled_elements() */ @@ -862,7 +862,7 @@ public function testDisabledMarkup() { } /** - * Test Form API protections against input forgery. + * Tests Form API protections against input forgery. * * @see \Drupal\form_test\Form\FormTestInputForgeryForm */ diff --git a/core/modules/system/tests/src/Functional/Mail/HtmlToTextTest.php b/core/modules/system/tests/src/Functional/Mail/HtmlToTextTest.php index 1734f3ea79cd..86e7c99ec8c1 100644 --- a/core/modules/system/tests/src/Functional/Mail/HtmlToTextTest.php +++ b/core/modules/system/tests/src/Functional/Mail/HtmlToTextTest.php @@ -61,7 +61,7 @@ protected function assertHtmlToText($html, $text, $message, $allowed_tags = NULL } /** - * Test supported tags of \Drupal\Core\Mail\MailFormatHelper::htmlToText(). + * Tests supported tags of \Drupal\Core\Mail\MailFormatHelper::htmlToText(). */ public function testTags() { global $base_path, $base_url; @@ -190,7 +190,7 @@ public function testDrupalHtmlToTextArgs() { } /** - * Test that whitespace is collapsed. + * Tests that whitespace is collapsed. */ public function testDrupalHtmltoTextCollapsesWhitespace() { $input = "<p>Drupal Drupal\n\nDrupal<pre>Drupal Drupal\n\nDrupal</pre>Drupal Drupal\n\nDrupal</p>"; @@ -205,7 +205,7 @@ public function testDrupalHtmltoTextCollapsesWhitespace() { } /** - * Test that text separated by block-level tags in HTML get separated by + * Tests that text separated by block-level tags in HTML get separated by * (at least) a newline in the plaintext version. */ public function testDrupalHtmlToTextBlockTagToNewline() { @@ -242,7 +242,7 @@ public function testDrupalHtmlToTextBlockTagToNewline() { } /** - * Test that headers are properly separated from surrounding text. + * Tests that headers are properly separated from surrounding text. */ public function testHeaderSeparation() { $html = 'Drupal<h1>Drupal</h1>Drupal'; @@ -267,7 +267,7 @@ public function testHeaderSeparation() { } /** - * Test that footnote references are properly generated. + * Tests that footnote references are properly generated. */ public function testFootnoteReferences() { global $base_path, $base_url; @@ -296,7 +296,7 @@ public function testFootnoteReferences() { } /** - * Test that combinations of paragraph breaks, line breaks, linefeeds, + * Tests that combinations of paragraph breaks, line breaks, linefeeds, * and spaces are properly handled. */ public function testDrupalHtmlToTextParagraphs() { diff --git a/core/modules/system/tests/src/Functional/Menu/LocalTasksTest.php b/core/modules/system/tests/src/Functional/Menu/LocalTasksTest.php index a7f8a6c6c78b..23ea8bf52d6b 100644 --- a/core/modules/system/tests/src/Functional/Menu/LocalTasksTest.php +++ b/core/modules/system/tests/src/Functional/Menu/LocalTasksTest.php @@ -254,7 +254,7 @@ public function testLocalTaskBlock() { } /** - * Test that local tasks blocks cache is invalidated correctly. + * Tests that local tasks blocks cache is invalidated correctly. */ public function testLocalTaskBlockCache() { $this->drupalLogin($this->rootUser); diff --git a/core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php b/core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php index c5eb2b53b7f9..f7902c7c0bc9 100644 --- a/core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php +++ b/core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php @@ -55,7 +55,7 @@ public function testMenuIntegration() { } /** - * Test local tasks with route placeholders. + * Tests local tasks with route placeholders. */ protected function doTestHookMenuIntegration() { // Generate base path with random argument. @@ -75,7 +75,7 @@ protected function doTestHookMenuIntegration() { } /** - * Test title callback set to FALSE. + * Tests title callback set to FALSE. */ protected function doTestTitleCallbackFalse() { $this->drupalGet('test-page'); @@ -160,7 +160,7 @@ protected function doTestMenuHierarchy() { } /** - * Test menu links that have optional placeholders. + * Tests menu links that have optional placeholders. */ protected function doTestMenuOptionalPlaceholders() { $this->drupalGet('menu-test/optional'); @@ -187,7 +187,7 @@ protected function doTestMenuOnRoute() { } /** - * Test path containing "exotic" characters. + * Tests path containing "exotic" characters. */ protected function doTestExoticPath() { // "Special" ASCII characters. @@ -221,7 +221,7 @@ public function testMaintenanceModeLoginPaths() { } /** - * Test that an authenticated user hitting 'user/login' gets redirected to + * Tests that an authenticated user hitting 'user/login' gets redirected to * 'user' and 'user/register' gets redirected to the user edit page. */ public function testAuthUserUserLogin() { @@ -264,7 +264,8 @@ public function testThemeIntegration() { } /** - * Test the theme negotiation when it is set to use an administrative theme. + * Tests the theme negotiation when it is set to use an administrative + * theme. */ protected function doTestThemeCallbackAdministrative() { $this->drupalGet('menu-test/theme-callback/use-admin-theme'); @@ -273,7 +274,7 @@ protected function doTestThemeCallbackAdministrative() { } /** - * Test the theme negotiation when the site is in maintenance mode. + * Tests the theme negotiation when the site is in maintenance mode. */ protected function doTestThemeCallbackMaintenanceMode() { $this->container->get('state')->set('system.maintenance_mode', TRUE); @@ -296,7 +297,7 @@ protected function doTestThemeCallbackMaintenanceMode() { } /** - * Test the theme negotiation when it is set to use an optional theme. + * Tests the theme negotiation when it is set to use an optional theme. */ protected function doTestThemeCallbackOptionalTheme() { // Request a theme that is not installed. @@ -319,7 +320,7 @@ protected function doTestThemeCallbackOptionalTheme() { } /** - * Test the theme negotiation when it is set to use a theme that does not exist. + * Tests the theme negotiation when it is set to use a theme that does not exist. */ protected function doTestThemeCallbackFakeTheme() { $this->drupalGet('menu-test/theme-callback/use-fake-theme'); @@ -329,7 +330,7 @@ protected function doTestThemeCallbackFakeTheme() { } /** - * Test the theme negotiation when no theme is requested. + * Tests the theme negotiation when no theme is requested. */ protected function doTestThemeCallbackNoThemeRequested() { $this->drupalGet('menu-test/theme-callback/no-theme-requested'); diff --git a/core/modules/system/tests/src/Functional/Module/DependencyTest.php b/core/modules/system/tests/src/Functional/Module/DependencyTest.php index 5ae54121fbdf..d73acadaaa22 100644 --- a/core/modules/system/tests/src/Functional/Module/DependencyTest.php +++ b/core/modules/system/tests/src/Functional/Module/DependencyTest.php @@ -68,7 +68,8 @@ public function testMissingModules() { } /** - * Tests enabling a module that depends on an incompatible version of a module. + * Tests enabling a module that depends on an incompatible version of a + * module. */ public function testIncompatibleModuleVersionDependency() { // Test that the system_incompatible_module_version_dependencies_test is diff --git a/core/modules/system/tests/src/Functional/Module/VersionTest.php b/core/modules/system/tests/src/Functional/Module/VersionTest.php index 21262c51f934..cf340febfa63 100644 --- a/core/modules/system/tests/src/Functional/Module/VersionTest.php +++ b/core/modules/system/tests/src/Functional/Module/VersionTest.php @@ -15,7 +15,7 @@ class VersionTest extends ModuleTestBase { protected $defaultTheme = 'stark'; /** - * Test version dependencies. + * Tests version dependencies. */ public function testModuleVersions() { $dependencies = [ diff --git a/core/modules/system/tests/src/Functional/Pager/PagerTest.php b/core/modules/system/tests/src/Functional/Pager/PagerTest.php index 4d7c43d8da4d..04d90d6d1ddf 100644 --- a/core/modules/system/tests/src/Functional/Pager/PagerTest.php +++ b/core/modules/system/tests/src/Functional/Pager/PagerTest.php @@ -79,7 +79,8 @@ public function testActiveClass() { } /** - * Test proper functioning of the query parameters and the pager cache context. + * Tests proper functioning of the query parameters and the pager cache + * context. */ public function testPagerQueryParametersAndCacheContext() { // First page. @@ -108,7 +109,7 @@ public function testPagerQueryParametersAndCacheContext() { } /** - * Test proper functioning of multiple pagers. + * Tests proper functioning of multiple pagers. */ public function testMultiplePagers() { // First page. @@ -191,7 +192,7 @@ public function testMultiplePagers() { } /** - * Test proper functioning of the ellipsis. + * Tests proper functioning of the ellipsis. */ public function testPagerEllipsis() { // Insert 100 extra log messages to get 9 pages. diff --git a/core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php b/core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php index 4be935d7d545..d13f90f9c8de 100644 --- a/core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php +++ b/core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php @@ -80,7 +80,7 @@ public function testDrupalSettingsIsNotLoaded() { } /** - * Test if multiple libraries can be excluded. + * Tests if multiple libraries can be excluded. * * The ajax_page_state[libraries] should be able to support multiple libraries * comma separated. diff --git a/core/modules/system/tests/src/Functional/Render/HtmlResponseAttachmentsTest.php b/core/modules/system/tests/src/Functional/Render/HtmlResponseAttachmentsTest.php index 69fb5c152beb..a0ace372dbbf 100644 --- a/core/modules/system/tests/src/Functional/Render/HtmlResponseAttachmentsTest.php +++ b/core/modules/system/tests/src/Functional/Render/HtmlResponseAttachmentsTest.php @@ -24,7 +24,7 @@ class HtmlResponseAttachmentsTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test rendering of ['#attached']. + * Tests rendering of ['#attached']. */ public function testAttachments() { // Test ['#attached']['http_header] = ['Status', $code]. @@ -70,7 +70,7 @@ public function testAttachments() { } /** - * Test caching of ['#attached']. + * Tests caching of ['#attached']. */ public function testRenderCachedBlock() { // Make sure our test block is visible. diff --git a/core/modules/system/tests/src/Functional/Render/PlaceholderMessageTest.php b/core/modules/system/tests/src/Functional/Render/PlaceholderMessageTest.php index 313e0b97f04a..68fd9543b002 100644 --- a/core/modules/system/tests/src/Functional/Render/PlaceholderMessageTest.php +++ b/core/modules/system/tests/src/Functional/Render/PlaceholderMessageTest.php @@ -25,7 +25,7 @@ class PlaceholderMessageTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test rendering of message placeholder. + * Tests rendering of message placeholder. */ public function testMessagePlaceholder() { $messages_markup = '<div role="contentinfo" aria-label="Status message"'; diff --git a/core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php b/core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php index 4657df6c3732..617a124fe7b4 100644 --- a/core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php +++ b/core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php @@ -242,7 +242,7 @@ protected function getPathFromLocationHeader(ResponseInterface $response, $https } /** - * Test that there exists a session with two specific session IDs. + * Tests that there exists a session with two specific session IDs. * * @param $sid * The insecure session ID to search for. diff --git a/core/modules/system/tests/src/Functional/Session/SessionTest.php b/core/modules/system/tests/src/Functional/Session/SessionTest.php index 6bc87f73e263..2a67a33c5c6c 100644 --- a/core/modules/system/tests/src/Functional/Session/SessionTest.php +++ b/core/modules/system/tests/src/Functional/Session/SessionTest.php @@ -82,7 +82,7 @@ public function testSessionSaveRegenerate() { } /** - * Test data persistence via the session_test module callbacks. + * Tests data persistence via the session_test module callbacks. */ public function testDataPersistence() { $user = $this->drupalCreateUser([]); @@ -178,7 +178,7 @@ public function testSessionPersistenceOnLogin() { } /** - * Test that empty anonymous sessions are destroyed. + * Tests that empty anonymous sessions are destroyed. */ public function testEmptyAnonymousSession() { // Disable the dynamic_page_cache module; it'd cause session_test's debug @@ -243,7 +243,7 @@ public function testEmptyAnonymousSession() { } /** - * Test that sessions are only saved when necessary. + * Tests that sessions are only saved when necessary. */ public function testSessionWrite() { $user = $this->drupalCreateUser([]); @@ -294,7 +294,7 @@ public function testSessionWrite() { } /** - * Test that empty session IDs are not allowed. + * Tests that empty session IDs are not allowed. */ public function testEmptySessionID() { $user = $this->drupalCreateUser([]); @@ -323,7 +323,7 @@ public function testEmptySessionID() { } /** - * Test session bag. + * Tests session bag. */ public function testSessionBag() { // Ensure the flag is absent to start with. diff --git a/core/modules/system/tests/src/Functional/System/AdminTest.php b/core/modules/system/tests/src/Functional/System/AdminTest.php index d97f8ce6c2dc..bf036e55d67f 100644 --- a/core/modules/system/tests/src/Functional/System/AdminTest.php +++ b/core/modules/system/tests/src/Functional/System/AdminTest.php @@ -146,7 +146,7 @@ protected function getTopLevelMenuLinks() { } /** - * Test compact mode. + * Tests compact mode. */ public function testCompactMode() { $session = $this->getSession(); diff --git a/core/modules/system/tests/src/Functional/System/CronRunTest.php b/core/modules/system/tests/src/Functional/System/CronRunTest.php index cd9e98252ca4..1fd271e3364f 100644 --- a/core/modules/system/tests/src/Functional/System/CronRunTest.php +++ b/core/modules/system/tests/src/Functional/System/CronRunTest.php @@ -31,7 +31,7 @@ class CronRunTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test cron runs. + * Tests cron runs. */ public function testCronRun() { // Run cron anonymously without any cron key. diff --git a/core/modules/system/tests/src/Functional/System/DateTimeTest.php b/core/modules/system/tests/src/Functional/System/DateTimeTest.php index fb65b916963b..16dba63554d9 100644 --- a/core/modules/system/tests/src/Functional/System/DateTimeTest.php +++ b/core/modules/system/tests/src/Functional/System/DateTimeTest.php @@ -50,7 +50,7 @@ protected function setUp(): void { } /** - * Test time zones and DST handling. + * Tests time zones and DST handling. */ public function testTimeZoneHandling() { // Setup date/time settings for Honolulu time. @@ -91,7 +91,7 @@ public function testTimeZoneHandling() { } /** - * Test date format configuration. + * Tests date format configuration. */ public function testDateFormatConfiguration() { // Confirm 'no custom date formats available' message appears. @@ -195,7 +195,7 @@ public function testDateFormatConfiguration() { } /** - * Test handling case with invalid data in selectors (like February, 31st). + * Tests handling case with invalid data in selectors (like February, 31st). */ public function testEnteringDateTimeViaSelectors() { diff --git a/core/modules/system/tests/src/Functional/System/ErrorHandlerTest.php b/core/modules/system/tests/src/Functional/System/ErrorHandlerTest.php index cfbe1f7861f1..1751c42801b5 100644 --- a/core/modules/system/tests/src/Functional/System/ErrorHandlerTest.php +++ b/core/modules/system/tests/src/Functional/System/ErrorHandlerTest.php @@ -25,7 +25,7 @@ class ErrorHandlerTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test the error handler. + * Tests the error handler. */ public function testErrorHandler() { $config = $this->config('system.logging'); @@ -93,7 +93,7 @@ public function testErrorHandler() { } /** - * Test the exception handler. + * Tests the exception handler. */ public function testExceptionHandler() { $error_exception = [ diff --git a/core/modules/system/tests/src/Functional/System/FrontPageTest.php b/core/modules/system/tests/src/Functional/System/FrontPageTest.php index a42f27b3ac3b..95c1530e2909 100644 --- a/core/modules/system/tests/src/Functional/System/FrontPageTest.php +++ b/core/modules/system/tests/src/Functional/System/FrontPageTest.php @@ -49,7 +49,7 @@ protected function setUp(): void { } /** - * Test front page functionality. + * Tests front page functionality. */ public function testDrupalFrontPage() { // Create a promoted node to test the <title> tag on the front page view. diff --git a/core/modules/system/tests/src/Functional/System/IndexPhpTest.php b/core/modules/system/tests/src/Functional/System/IndexPhpTest.php index 2599abb5eb77..d1e101ba7d39 100644 --- a/core/modules/system/tests/src/Functional/System/IndexPhpTest.php +++ b/core/modules/system/tests/src/Functional/System/IndexPhpTest.php @@ -21,7 +21,7 @@ protected function setUp(): void { } /** - * Test index.php handling. + * Tests index.php handling. */ public function testIndexPhpHandling() { $index_php = $GLOBALS['base_url'] . '/index.php'; diff --git a/core/modules/system/tests/src/Functional/System/MainContentFallbackTest.php b/core/modules/system/tests/src/Functional/System/MainContentFallbackTest.php index f71082b03974..f1918198a8bb 100644 --- a/core/modules/system/tests/src/Functional/System/MainContentFallbackTest.php +++ b/core/modules/system/tests/src/Functional/System/MainContentFallbackTest.php @@ -42,7 +42,7 @@ protected function setUp(): void { } /** - * Test availability of main content: Drupal falls back to SimplePageVariant. + * Tests availability of main content: Drupal falls back to SimplePageVariant. */ public function testMainContentFallback() { $edit = []; diff --git a/core/modules/system/tests/src/Functional/System/PageTitleTest.php b/core/modules/system/tests/src/Functional/System/PageTitleTest.php index 84f81fb0ca43..e3a00208cd1c 100644 --- a/core/modules/system/tests/src/Functional/System/PageTitleTest.php +++ b/core/modules/system/tests/src/Functional/System/PageTitleTest.php @@ -71,7 +71,7 @@ public function testTitleTags() { } /** - * Test if the title of the site is XSS proof. + * Tests if the title of the site is XSS proof. */ public function testTitleXSS() { // Set some title with JavaScript and HTML chars to escape. diff --git a/core/modules/system/tests/src/Functional/System/ResponseGeneratorTest.php b/core/modules/system/tests/src/Functional/System/ResponseGeneratorTest.php index 42ec40702e5f..db6039fed133 100644 --- a/core/modules/system/tests/src/Functional/System/ResponseGeneratorTest.php +++ b/core/modules/system/tests/src/Functional/System/ResponseGeneratorTest.php @@ -36,7 +36,7 @@ protected function setUp(): void { } /** - * Test to see if generator header is added. + * Tests to see if generator header is added. */ public function testGeneratorHeaderAdded() { diff --git a/core/modules/system/tests/src/Functional/System/ShutdownFunctionsTest.php b/core/modules/system/tests/src/Functional/System/ShutdownFunctionsTest.php index 589f0cf20f21..8c8fccafa166 100644 --- a/core/modules/system/tests/src/Functional/System/ShutdownFunctionsTest.php +++ b/core/modules/system/tests/src/Functional/System/ShutdownFunctionsTest.php @@ -32,7 +32,7 @@ protected function tearDown(): void { } /** - * Test shutdown functions. + * Tests shutdown functions. */ public function testShutdownFunctions() { $arg1 = $this->randomMachineName(); diff --git a/core/modules/system/tests/src/Functional/System/ThemeTest.php b/core/modules/system/tests/src/Functional/System/ThemeTest.php index 89012faf4592..ff6ac5b5682f 100644 --- a/core/modules/system/tests/src/Functional/System/ThemeTest.php +++ b/core/modules/system/tests/src/Functional/System/ThemeTest.php @@ -56,7 +56,7 @@ protected function setUp(): void { } /** - * Test the theme settings form. + * Tests the theme settings form. */ public function testThemeSettings() { // Ensure a disabled theme settings form URL returns 404. @@ -231,7 +231,7 @@ public function testThemeSettings() { } /** - * Test the theme settings logo form. + * Tests the theme settings logo form. */ public function testThemeSettingsLogo() { // Visit Bartik's theme settings page to replace the logo. @@ -276,7 +276,7 @@ public function testThemeSettingsRenderCacheClear() { } /** - * Test the administration theme functionality. + * Tests the administration theme functionality. */ public function testAdministrationTheme() { $this->container->get('theme_installer')->install(['seven']); @@ -344,7 +344,7 @@ public function testAdministrationTheme() { } /** - * Test switching the default theme. + * Tests switching the default theme. */ public function testSwitchDefaultTheme() { /** @var \Drupal\Core\Extension\ThemeInstallerInterface $theme_installer */ @@ -372,7 +372,7 @@ public function testSwitchDefaultTheme() { } /** - * Test themes can't be installed when the base theme or engine is missing. + * Tests themes can't be installed when the base theme or engine is missing. * * Include test for themes that have a missing base theme somewhere further up * the chain than the immediate base theme. @@ -395,7 +395,7 @@ public function testInvalidTheme() { } /** - * Test uninstalling of themes works. + * Tests uninstalling of themes works. */ public function testUninstallingThemes() { // Install Bartik and set it as the default theme. @@ -484,7 +484,7 @@ public function testInstallAndSetAsDefault() { } /** - * Test the theme settings form when logo and favicon features are disabled. + * Tests the theme settings form when logo and favicon features are disabled. */ public function testThemeSettingsNoLogoNoFavicon() { // Install theme with no logo and no favicon feature. diff --git a/core/modules/system/tests/src/Functional/Theme/ThemeEarlyInitializationTest.php b/core/modules/system/tests/src/Functional/Theme/ThemeEarlyInitializationTest.php index 895d0f9b0fd6..2c8c5f9aad14 100644 --- a/core/modules/system/tests/src/Functional/Theme/ThemeEarlyInitializationTest.php +++ b/core/modules/system/tests/src/Functional/Theme/ThemeEarlyInitializationTest.php @@ -25,7 +25,7 @@ class ThemeEarlyInitializationTest extends BrowserTestBase { protected $defaultTheme = 'classy'; /** - * Test that the theme system can generate output in a request listener. + * Tests that the theme system can generate output in a request listener. */ public function testRequestListener() { $this->drupalGet('theme-test/request-listener'); diff --git a/core/modules/system/tests/src/Functional/Theme/TwigTransTest.php b/core/modules/system/tests/src/Functional/Theme/TwigTransTest.php index c24bc5703d8d..9d067574f0bd 100644 --- a/core/modules/system/tests/src/Functional/Theme/TwigTransTest.php +++ b/core/modules/system/tests/src/Functional/Theme/TwigTransTest.php @@ -78,7 +78,7 @@ protected function setUp(): void { } /** - * Test Twig "trans" tags. + * Tests Twig "trans" tags. */ public function testTwigTransTags() { // Run this once without and once with Twig debug because trans can work @@ -98,7 +98,7 @@ public function testTwigTransTags() { } /** - * Test empty Twig "trans" tags. + * Tests empty Twig "trans" tags. */ public function testEmptyTwigTransTags() { $elements = [ diff --git a/core/modules/system/tests/src/Functional/UpdateSystem/DependencyHookInvocationTest.php b/core/modules/system/tests/src/Functional/UpdateSystem/DependencyHookInvocationTest.php index b73744c02e4e..42e772e70e2b 100644 --- a/core/modules/system/tests/src/Functional/UpdateSystem/DependencyHookInvocationTest.php +++ b/core/modules/system/tests/src/Functional/UpdateSystem/DependencyHookInvocationTest.php @@ -34,7 +34,7 @@ protected function setUp(): void { } /** - * Test the structure of the array returned by hook_update_dependencies(). + * Tests the structure of the array returned by hook_update_dependencies(). */ public function testHookUpdateDependencies() { $update_dependencies = update_retrieve_dependencies(); diff --git a/core/modules/system/tests/src/Functional/UpdateSystem/DependencyOrderingTest.php b/core/modules/system/tests/src/Functional/UpdateSystem/DependencyOrderingTest.php index 0129329df21c..8576e7eae8fd 100644 --- a/core/modules/system/tests/src/Functional/UpdateSystem/DependencyOrderingTest.php +++ b/core/modules/system/tests/src/Functional/UpdateSystem/DependencyOrderingTest.php @@ -34,7 +34,7 @@ protected function setUp(): void { } /** - * Test that updates within a single module run in the correct order. + * Tests that updates within a single module run in the correct order. */ public function testUpdateOrderingSingleModule() { $starting_updates = [ @@ -50,7 +50,7 @@ public function testUpdateOrderingSingleModule() { } /** - * Test that dependencies between modules are resolved correctly. + * Tests that dependencies between modules are resolved correctly. */ public function testUpdateOrderingModuleInterdependency() { $starting_updates = [ diff --git a/core/modules/system/tests/src/Functional/UpdateSystem/NoPreExistingSchemaUpdateTest.php b/core/modules/system/tests/src/Functional/UpdateSystem/NoPreExistingSchemaUpdateTest.php index 7cce848020a0..0f889155d488 100644 --- a/core/modules/system/tests/src/Functional/UpdateSystem/NoPreExistingSchemaUpdateTest.php +++ b/core/modules/system/tests/src/Functional/UpdateSystem/NoPreExistingSchemaUpdateTest.php @@ -42,7 +42,7 @@ protected function setUp(): void { } /** - * Test the system module updates with no dependencies installed. + * Tests the system module updates with no dependencies installed. */ public function testNoPreExistingSchema() { $schema = \Drupal::keyValue('system.schema')->getAll(); diff --git a/core/modules/system/tests/src/Functional/UpdateSystem/RebuildScriptTest.php b/core/modules/system/tests/src/Functional/UpdateSystem/RebuildScriptTest.php index e5e0baf6c192..442476c1ef0f 100644 --- a/core/modules/system/tests/src/Functional/UpdateSystem/RebuildScriptTest.php +++ b/core/modules/system/tests/src/Functional/UpdateSystem/RebuildScriptTest.php @@ -24,7 +24,7 @@ class RebuildScriptTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test redirect in rebuild.php. + * Tests redirect in rebuild.php. */ public function testRebuild() { $cache = $this->container->get('cache.default'); diff --git a/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathNewDependencyTest.php b/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathNewDependencyTest.php index 95fe1b5f4bc5..d126d91609ab 100644 --- a/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathNewDependencyTest.php +++ b/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathNewDependencyTest.php @@ -20,7 +20,7 @@ class UpdatePathNewDependencyTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test that a module can add services that depend on new modules. + * Tests that a module can add services that depend on new modules. */ public function testUpdateNewDependency() { // The new_dependency_test before the update is just an empty info.yml file. diff --git a/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestJavaScriptTest.php b/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestJavaScriptTest.php index 0e2680c68bb1..209ca4801daa 100644 --- a/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestJavaScriptTest.php +++ b/core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestJavaScriptTest.php @@ -27,7 +27,7 @@ protected function setUp(): void { } /** - * Test JavaScript loading at update.php. + * Tests JavaScript loading at update.php. * * @see ::doPreUpdateTests */ diff --git a/core/modules/system/tests/src/FunctionalJavascript/Form/ElementsTableSelectTest.php b/core/modules/system/tests/src/FunctionalJavascript/Form/ElementsTableSelectTest.php index 560ee6c8bf8a..c38627553bc9 100644 --- a/core/modules/system/tests/src/FunctionalJavascript/Form/ElementsTableSelectTest.php +++ b/core/modules/system/tests/src/FunctionalJavascript/Form/ElementsTableSelectTest.php @@ -22,7 +22,7 @@ class ElementsTableSelectTest extends WebDriverTestBase { protected $defaultTheme = 'stark'; /** - * Test the presence of ajax functionality for all options. + * Tests the presence of ajax functionality for all options. */ public function testAjax() { // Test checkboxes (#multiple == TRUE). diff --git a/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php b/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php index a864b7ca7a0e..c924b55676f2 100644 --- a/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php +++ b/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php @@ -21,7 +21,7 @@ class ProgrammaticTest extends KernelTestBase { protected static $modules = ['form_test']; /** - * Test the programmatic form submission workflow. + * Tests the programmatic form submission workflow. */ public function testSubmissionWorkflow() { // Backup the current batch status and reset it to avoid conflicts while @@ -91,7 +91,7 @@ protected function doSubmitForm($values, $valid_input) { } /** - * Test the programmed_bypass_access_check flag. + * Tests the programmed_bypass_access_check flag. */ public function testProgrammaticAccessBypass() { $form_state = (new FormState())->setValues([ diff --git a/core/modules/system/tests/src/Kernel/Mail/MailTest.php b/core/modules/system/tests/src/Kernel/Mail/MailTest.php index af593f3f137d..9582084a032d 100644 --- a/core/modules/system/tests/src/Kernel/Mail/MailTest.php +++ b/core/modules/system/tests/src/Kernel/Mail/MailTest.php @@ -89,7 +89,7 @@ public function testErrorMessageDisplay() { } /** - * Test that message sending may be canceled. + * Tests that message sending may be canceled. * * @see mail_cancel_test_mail_alter() */ diff --git a/core/modules/system/tests/src/Kernel/Render/ClassyTest.php b/core/modules/system/tests/src/Kernel/Render/ClassyTest.php index 1eab0f78a742..8adb4ebd9808 100644 --- a/core/modules/system/tests/src/Kernel/Render/ClassyTest.php +++ b/core/modules/system/tests/src/Kernel/Render/ClassyTest.php @@ -34,7 +34,7 @@ public function setUp(): void { } /** - * Test the classy theme. + * Tests the classy theme. */ public function testClassyTheme() { \Drupal::messenger()->addError('An error occurred'); diff --git a/core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php b/core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php index 0b31ec6db94e..3c6d8aa34eb1 100644 --- a/core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php +++ b/core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php @@ -26,7 +26,7 @@ class DbCommandBaseTest extends KernelTestBase { /** - * Test specifying a database key. + * Tests specifying a database key. */ public function testSpecifyDatabaseKey() { $command = new DbCommandBaseTester(); @@ -55,7 +55,7 @@ public function testSpecifyDatabaseDoesNotExist() { } /** - * Test supplying database connection as a url. + * Tests supplying database connection as a url. */ public function testSpecifyDbUrl() { $command = new DbCommandBaseTester(); @@ -73,7 +73,7 @@ public function testSpecifyDbUrl() { } /** - * Test specifying a prefix for different connections. + * Tests specifying a prefix for different connections. */ public function testPrefix() { if (Database::getConnection()->driver() == 'sqlite') { diff --git a/core/modules/system/tests/src/Kernel/Scripts/DbDumpCommandTest.php b/core/modules/system/tests/src/Kernel/Scripts/DbDumpCommandTest.php index 35412fc70645..4f24cebf8c26 100644 --- a/core/modules/system/tests/src/Kernel/Scripts/DbDumpCommandTest.php +++ b/core/modules/system/tests/src/Kernel/Scripts/DbDumpCommandTest.php @@ -45,7 +45,7 @@ protected function setUp(): void { } /** - * Test the command directly. + * Tests the command directly. */ public function testDbDumpCommand() { $command = new DbDumpCommand(); @@ -65,7 +65,7 @@ public function testDbDumpCommand() { } /** - * Test schema only option. + * Tests schema only option. */ public function testSchemaOnly() { $command = new DbDumpCommand(); diff --git a/core/modules/system/tests/src/Kernel/Scripts/DbImportCommandTest.php b/core/modules/system/tests/src/Kernel/Scripts/DbImportCommandTest.php index c56095b08f73..c88128bf4275 100644 --- a/core/modules/system/tests/src/Kernel/Scripts/DbImportCommandTest.php +++ b/core/modules/system/tests/src/Kernel/Scripts/DbImportCommandTest.php @@ -55,7 +55,7 @@ class DbImportCommandTest extends KernelTestBase { ]; /** - * Test the command directly. + * Tests the command directly. * * @requires extension pdo_sqlite */ diff --git a/core/modules/system/tests/src/Kernel/Scripts/DbToolsApplicationTest.php b/core/modules/system/tests/src/Kernel/Scripts/DbToolsApplicationTest.php index 47c5f6aac9de..8f35dd478121 100644 --- a/core/modules/system/tests/src/Kernel/Scripts/DbToolsApplicationTest.php +++ b/core/modules/system/tests/src/Kernel/Scripts/DbToolsApplicationTest.php @@ -16,7 +16,7 @@ class DbToolsApplicationTest extends KernelTestBase { /** - * Test that the dump command is correctly registered. + * Tests that the dump command is correctly registered. */ public function testDumpCommandRegistration() { $application = new DbToolsApplication(); @@ -26,7 +26,7 @@ public function testDumpCommandRegistration() { } /** - * Test that the dump command is correctly registered. + * Tests that the dump command is correctly registered. */ public function testImportCommandRegistration() { $application = new DbToolsApplication(); diff --git a/core/modules/system/tests/src/Kernel/System/FloodTest.php b/core/modules/system/tests/src/Kernel/System/FloodTest.php index ba7bd51928aa..cf32fd9fed76 100644 --- a/core/modules/system/tests/src/Kernel/System/FloodTest.php +++ b/core/modules/system/tests/src/Kernel/System/FloodTest.php @@ -19,7 +19,7 @@ class FloodTest extends KernelTestBase { protected static $modules = ['system']; /** - * Test flood control mechanism clean-up. + * Tests flood control mechanism clean-up. */ public function testCleanUp() { $threshold = 1; @@ -47,7 +47,7 @@ public function testCleanUp() { } /** - * Test flood control memory backend. + * Tests flood control memory backend. */ public function testMemoryBackend() { $threshold = 1; @@ -75,7 +75,7 @@ public function testMemoryBackend() { } /** - * Test flood control database backend. + * Tests flood control database backend. */ public function testDatabaseBackend() { $threshold = 1; diff --git a/core/modules/system/tests/src/Kernel/Theme/FunctionsTest.php b/core/modules/system/tests/src/Kernel/Theme/FunctionsTest.php index 87e21a0d997f..067c7ff89e97 100644 --- a/core/modules/system/tests/src/Kernel/Theme/FunctionsTest.php +++ b/core/modules/system/tests/src/Kernel/Theme/FunctionsTest.php @@ -418,7 +418,7 @@ public function testIndexedKeyedLinks() { } /** - * Test the use of Link::preRenderLinks() on a nested array of links. + * Tests the use of Link::preRenderLinks() on a nested array of links. * * @see \Drupal\Core\Render\Element\Link::preRenderLinks() */ diff --git a/core/modules/system/tests/src/Kernel/Theme/ThemeTest.php b/core/modules/system/tests/src/Kernel/Theme/ThemeTest.php index 40601f74ba73..932790d6b45a 100644 --- a/core/modules/system/tests/src/Kernel/Theme/ThemeTest.php +++ b/core/modules/system/tests/src/Kernel/Theme/ThemeTest.php @@ -27,7 +27,7 @@ protected function setUp(): void { } /** - * Test attribute merging. + * Tests attribute merging. * * Render arrays that use a render element and templates (and hence call * template_preprocess()) must ensure the attributes at different occasions @@ -49,7 +49,7 @@ public function testAttributeMerging() { } /** - * Test that ThemeManager renders the expected data types. + * Tests that ThemeManager renders the expected data types. */ public function testThemeDataTypes() { // theme_test_false is an implemented theme hook so \Drupal::theme() service @@ -74,7 +74,7 @@ public function testThemeDataTypes() { } /** - * Test function theme_get_suggestions() for SA-CORE-2009-003. + * Tests function theme_get_suggestions() for SA-CORE-2009-003. */ public function testThemeSuggestions() { // Set the front page as something random otherwise the CLI @@ -101,7 +101,7 @@ public function testThemeSuggestions() { } /** - * Test the listInfo() function. + * Tests the listInfo() function. */ public function testListThemes() { $this->container->get('theme_installer')->install(['test_subtheme']); diff --git a/core/modules/system/tests/src/Kernel/Theme/TwigFilterTest.php b/core/modules/system/tests/src/Kernel/Theme/TwigFilterTest.php index 2d6806a23400..f369cfd44e6d 100644 --- a/core/modules/system/tests/src/Kernel/Theme/TwigFilterTest.php +++ b/core/modules/system/tests/src/Kernel/Theme/TwigFilterTest.php @@ -19,7 +19,7 @@ class TwigFilterTest extends KernelTestBase { protected static $modules = ['twig_theme_test']; /** - * Test Twig "without" filter. + * Tests Twig "without" filter. */ public function testTwigWithoutFilter() { $filter_test = [ diff --git a/core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php b/core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php index 092212ac572f..e875c0101141 100644 --- a/core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php +++ b/core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php @@ -26,7 +26,7 @@ protected function setUp(): void { } /** - * Test whether token-replacement works in various contexts. + * Tests whether token-replacement works in various contexts. */ public function testSystemTokenRecognition() { // Generate prefixes and suffixes for the token context. diff --git a/core/modules/taxonomy/tests/src/Functional/EarlyDateTest.php b/core/modules/taxonomy/tests/src/Functional/EarlyDateTest.php index 9164025ee654..2b9925b29def 100644 --- a/core/modules/taxonomy/tests/src/Functional/EarlyDateTest.php +++ b/core/modules/taxonomy/tests/src/Functional/EarlyDateTest.php @@ -59,7 +59,7 @@ protected function setUp(): void { } /** - * Test taxonomy functionality with nodes prior to 1970. + * Tests taxonomy functionality with nodes prior to 1970. */ public function testTaxonomyEarlyDateNode() { // Posts an article with a taxonomy term and a date prior to 1970. diff --git a/core/modules/taxonomy/tests/src/Functional/TermAccessTest.php b/core/modules/taxonomy/tests/src/Functional/TermAccessTest.php index a69fdf144d41..39a4c5d3c877 100644 --- a/core/modules/taxonomy/tests/src/Functional/TermAccessTest.php +++ b/core/modules/taxonomy/tests/src/Functional/TermAccessTest.php @@ -21,7 +21,7 @@ class TermAccessTest extends TaxonomyTestBase { protected $defaultTheme = 'stark'; /** - * Test access control functionality for taxonomy terms. + * Tests access control functionality for taxonomy terms. */ public function testTermAccess() { $assert_session = $this->assertSession(); diff --git a/core/modules/taxonomy/tests/src/Functional/TermTest.php b/core/modules/taxonomy/tests/src/Functional/TermTest.php index 7bb083173ed3..dc0cdaf54886 100644 --- a/core/modules/taxonomy/tests/src/Functional/TermTest.php +++ b/core/modules/taxonomy/tests/src/Functional/TermTest.php @@ -91,7 +91,7 @@ public function testParentHandlerSettings() { } /** - * Test terms in a single and multiple hierarchy. + * Tests terms in a single and multiple hierarchy. */ public function testTaxonomyTermHierarchy() { // Create two taxonomy terms. @@ -186,7 +186,7 @@ public function testTaxonomyTermChildTerms() { } /** - * Test that hook_node_$op implementations work correctly. + * Tests that hook_node_$op implementations work correctly. * * Save & edit a node and assert that taxonomy terms are saved/loaded properly. */ @@ -229,7 +229,7 @@ public function testTaxonomyNode() { } /** - * Test term creation with a free-tagging vocabulary from the node form. + * Tests term creation with a free-tagging vocabulary from the node form. */ public function testNodeTermCreationAndDeletion() { // Enable tags in the vocabulary. @@ -468,7 +468,7 @@ public function testTermReorder() { } /** - * Test saving a term with multiple parents through the UI. + * Tests saving a term with multiple parents through the UI. */ public function testTermMultipleParentsInterface() { // Add a new term to the vocabulary so that we can have multiple parents. @@ -497,7 +497,7 @@ public function testTermMultipleParentsInterface() { } /** - * Test taxonomy_term_load_multiple_by_name(). + * Tests taxonomy_term_load_multiple_by_name(). */ public function testTaxonomyGetTermByName() { $term = $this->createTerm($this->vocabulary); diff --git a/core/modules/taxonomy/tests/src/Functional/TermTranslationTest.php b/core/modules/taxonomy/tests/src/Functional/TermTranslationTest.php index e755dabd0ec4..598d864e8886 100644 --- a/core/modules/taxonomy/tests/src/Functional/TermTranslationTest.php +++ b/core/modules/taxonomy/tests/src/Functional/TermTranslationTest.php @@ -56,7 +56,7 @@ protected function setUp(): void { } /** - * Test translated breadcrumbs. + * Tests translated breadcrumbs. */ public function testTranslatedBreadcrumbs() { // Ensure non-translated breadcrumb is correct. @@ -90,7 +90,7 @@ public function testTranslatedBreadcrumbs() { } /** - * Test translation of terms are showed in the node. + * Tests translation of terms are showed in the node. */ public function testTermsTranslation() { diff --git a/core/modules/taxonomy/tests/src/Functional/ThemeTest.php b/core/modules/taxonomy/tests/src/Functional/ThemeTest.php index c5fdc866cc90..985b1ce2bbb6 100644 --- a/core/modules/taxonomy/tests/src/Functional/ThemeTest.php +++ b/core/modules/taxonomy/tests/src/Functional/ThemeTest.php @@ -35,7 +35,7 @@ protected function setUp(): void { } /** - * Test the theme used when adding, viewing and editing taxonomy terms. + * Tests the theme used when adding, viewing and editing taxonomy terms. */ public function testTaxonomyTermThemes() { // Adding a term to a vocabulary is considered an administrative action and diff --git a/core/modules/taxonomy/tests/src/Functional/VocabularyPermissionsTest.php b/core/modules/taxonomy/tests/src/Functional/VocabularyPermissionsTest.php index c5b3aed5a51e..eaa802e313e2 100644 --- a/core/modules/taxonomy/tests/src/Functional/VocabularyPermissionsTest.php +++ b/core/modules/taxonomy/tests/src/Functional/VocabularyPermissionsTest.php @@ -60,7 +60,7 @@ public function testVocabularyPermissionsVocabulary() { } /** - * Test the vocabulary overview permission. + * Tests the vocabulary overview permission. */ public function testTaxonomyVocabularyOverviewPermissions() { // Create two vocabularies, one with two terms, the other without any term. diff --git a/core/modules/taxonomy/tests/src/Functional/VocabularyUiTest.php b/core/modules/taxonomy/tests/src/Functional/VocabularyUiTest.php index d7f3b8b029c3..8e153730aeed 100644 --- a/core/modules/taxonomy/tests/src/Functional/VocabularyUiTest.php +++ b/core/modules/taxonomy/tests/src/Functional/VocabularyUiTest.php @@ -114,7 +114,7 @@ public function testTaxonomyAdminChangingWeights() { } /** - * Test the vocabulary overview with no vocabularies. + * Tests the vocabulary overview with no vocabularies. */ public function testTaxonomyAdminNoVocabularies() { // Delete all vocabularies. diff --git a/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateNodeTaxonomyTest.php b/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateNodeTaxonomyTest.php index 4cf6616907e2..a2a866ec163d 100644 --- a/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateNodeTaxonomyTest.php +++ b/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateNodeTaxonomyTest.php @@ -37,7 +37,7 @@ protected function setUp(): void { } /** - * Test node migration from Drupal 7 to 8. + * Tests node migration from Drupal 7 to 8. */ public function testMigration() { $node = Node::load(2); diff --git a/core/modules/taxonomy/tests/src/Kernel/TermKernelTest.php b/core/modules/taxonomy/tests/src/Kernel/TermKernelTest.php index 3d2037dad7ef..3f85b2f81940 100644 --- a/core/modules/taxonomy/tests/src/Kernel/TermKernelTest.php +++ b/core/modules/taxonomy/tests/src/Kernel/TermKernelTest.php @@ -66,7 +66,7 @@ public function testMultipleParentDelete() { } /** - * Test a taxonomy with terms that have multiple parents of different depths. + * Tests a taxonomy with terms that have multiple parents of different depths. */ public function testTaxonomyVocabularyTree() { // Create a new vocabulary with 6 terms. diff --git a/core/modules/taxonomy/tests/src/Kernel/VocabularyCrudTest.php b/core/modules/taxonomy/tests/src/Kernel/VocabularyCrudTest.php index 471a0dc5a7cf..91d9d39bb30c 100644 --- a/core/modules/taxonomy/tests/src/Kernel/VocabularyCrudTest.php +++ b/core/modules/taxonomy/tests/src/Kernel/VocabularyCrudTest.php @@ -40,7 +40,7 @@ protected function setUp(): void { } /** - * Test deleting a taxonomy that contains terms. + * Tests deleting a taxonomy that contains terms. */ public function testTaxonomyVocabularyDeleteWithTerms() { $vocabulary = $this->createVocabulary(); @@ -127,7 +127,7 @@ public function testTaxonomyVocabularyLoadMultiple() { } /** - * Test uninstall and reinstall of the taxonomy module. + * Tests uninstall and reinstall of the taxonomy module. */ public function testUninstallReinstall() { $vocabulary = $this->createVocabulary(); diff --git a/core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php b/core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php index bbee5ff007c8..6caa60205ec2 100644 --- a/core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php +++ b/core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php @@ -82,7 +82,7 @@ protected function setUp(): void { } /** - * Test to confirm the widget is setup. + * Tests to confirm the widget is setup. * * @covers \Drupal\telephone\Plugin\Field\FieldWidget\TelephoneDefaultWidget::formElement */ @@ -93,7 +93,7 @@ public function testTelephoneWidget() { } /** - * Test the telephone formatter. + * Tests the telephone formatter. * * @covers \Drupal\telephone\Plugin\Field\FieldFormatter\TelephoneLinkFormatter::viewElements * diff --git a/core/modules/text/tests/src/Functional/TextFieldTest.php b/core/modules/text/tests/src/Functional/TextFieldTest.php index 34c6a6bbc2b4..cd3cdef99d2a 100644 --- a/core/modules/text/tests/src/Functional/TextFieldTest.php +++ b/core/modules/text/tests/src/Functional/TextFieldTest.php @@ -42,7 +42,7 @@ protected function setUp(): void { // Test fields. /** - * Test text field validation. + * Tests text field validation. */ public function testTextFieldValidation() { // Create a field with settings to validate. @@ -77,7 +77,7 @@ public function testTextFieldValidation() { } /** - * Test required long text with file upload. + * Tests required long text with file upload. */ public function testRequiredLongTextWithFileUpload() { // Create a text field. @@ -138,7 +138,7 @@ public function testRequiredLongTextWithFileUpload() { } /** - * Test widgets. + * Tests widgets. */ public function testTextfieldWidgets() { $this->_testTextfieldWidgets('text', 'text_textfield'); @@ -146,7 +146,7 @@ public function testTextfieldWidgets() { } /** - * Test widgets + 'formatted_text' setting. + * Tests widgets + 'formatted_text' setting. */ public function testTextfieldWidgetsFormatted() { $this->_testTextfieldWidgetsFormatted('text', 'text_textfield'); diff --git a/core/modules/text/tests/src/Kernel/TextSummaryTest.php b/core/modules/text/tests/src/Kernel/TextSummaryTest.php index 83b20f659d55..420632d71f50 100644 --- a/core/modules/text/tests/src/Kernel/TextSummaryTest.php +++ b/core/modules/text/tests/src/Kernel/TextSummaryTest.php @@ -47,7 +47,7 @@ public function testFirstSentenceQuestion() { } /** - * Test summary with long example. + * Tests summary with long example. */ public function testLongSentence() { // 125. @@ -69,7 +69,7 @@ public function testLongSentence() { } /** - * Test various summary length edge cases. + * Tests various summary length edge cases. */ public function testLength() { FilterFormat::create([ @@ -225,8 +225,8 @@ public function testLength() { } /** - * Test text_summary() returns an empty string without any error when called - * with an invalid format. + * Tests text_summary() returns an empty string without any error when + * called with an invalid format. */ public function testInvalidFilterFormat() { @@ -242,7 +242,7 @@ public function assertTextSummary($text, $expected, $format = NULL, $size = NULL } /** - * Test required summary. + * Tests required summary. */ public function testRequiredSummary() { $this->installEntitySchema('entity_test'); diff --git a/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php b/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php index 15b6adb4a6e7..f612fc57f5e2 100644 --- a/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php +++ b/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php @@ -359,7 +359,7 @@ public function testSubtreesJsonRequest() { } /** - * Test that subtrees hashes vary by the language of the page. + * Tests that subtrees hashes vary by the language of the page. */ public function testLanguageSwitching() { // Create a new language with the langcode 'xx'. @@ -383,7 +383,7 @@ public function testLanguageSwitching() { } /** - * Test that back to site link exists on admin pages, not on content pages. + * Tests that back to site link exists on admin pages, not on content pages. */ public function testBackToSiteLink() { // Back to site link should exist in the markup. diff --git a/core/modules/tour/tests/src/Functional/TourTest.php b/core/modules/tour/tests/src/Functional/TourTest.php index 05ec3c5dcc78..329f3284cb05 100644 --- a/core/modules/tour/tests/src/Functional/TourTest.php +++ b/core/modules/tour/tests/src/Functional/TourTest.php @@ -62,7 +62,7 @@ protected function setUp(): void { } /** - * Test tour functionality. + * Tests tour functionality. */ public function testTourFunctionality() { // Navigate to tour-test-1 and verify the tour_test_1 tip is found with appropriate classes. diff --git a/core/modules/tour/tests/src/Kernel/TourPluginTest.php b/core/modules/tour/tests/src/Kernel/TourPluginTest.php index 3b96b3773615..3cd3a2c634c8 100644 --- a/core/modules/tour/tests/src/Kernel/TourPluginTest.php +++ b/core/modules/tour/tests/src/Kernel/TourPluginTest.php @@ -38,7 +38,7 @@ protected function setUp(): void { } /** - * Test tour plugins. + * Tests tour plugins. */ public function testTourPlugins() { $this->assertCount(1, $this->pluginManager->getDefinitions(), 'Only tour plugins for the enabled modules were returned.'); diff --git a/core/modules/user/tests/src/Functional/UserBlocksTest.php b/core/modules/user/tests/src/Functional/UserBlocksTest.php index fa5589be7f61..7ca009e57cc4 100644 --- a/core/modules/user/tests/src/Functional/UserBlocksTest.php +++ b/core/modules/user/tests/src/Functional/UserBlocksTest.php @@ -65,7 +65,7 @@ public function testUserLoginBlockVisibility() { } /** - * Test the user login block. + * Tests the user login block. */ public function testUserLoginBlock() { // Create a user with some permission that anonymous users lack. diff --git a/core/modules/user/tests/src/Functional/UserCancelTest.php b/core/modules/user/tests/src/Functional/UserCancelTest.php index 43ef05e99d29..02291b38f751 100644 --- a/core/modules/user/tests/src/Functional/UserCancelTest.php +++ b/core/modules/user/tests/src/Functional/UserCancelTest.php @@ -75,7 +75,7 @@ public function testUserCancelWithoutPermission() { } /** - * Test ability to change the permission for canceling users. + * Tests ability to change the permission for canceling users. */ public function testUserCancelChangePermission() { \Drupal::service('module_installer')->install(['user_form_test']); diff --git a/core/modules/user/tests/src/Functional/UserEditTest.php b/core/modules/user/tests/src/Functional/UserEditTest.php index 4bbf1e1d6ea0..3dd8191b8fc4 100644 --- a/core/modules/user/tests/src/Functional/UserEditTest.php +++ b/core/modules/user/tests/src/Functional/UserEditTest.php @@ -18,7 +18,7 @@ class UserEditTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test user edit page. + * Tests user edit page. */ public function testUserEdit() { // Test user edit functionality. diff --git a/core/modules/user/tests/src/Functional/UserLanguageTest.php b/core/modules/user/tests/src/Functional/UserLanguageTest.php index 19f9faee4cf8..0e71788ce8b6 100644 --- a/core/modules/user/tests/src/Functional/UserLanguageTest.php +++ b/core/modules/user/tests/src/Functional/UserLanguageTest.php @@ -25,7 +25,7 @@ class UserLanguageTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test if user can change their default language. + * Tests if user can change their default language. */ public function testUserLanguageConfiguration() { // User to add and remove language. diff --git a/core/modules/user/tests/src/Functional/UserLoginHttpTest.php b/core/modules/user/tests/src/Functional/UserLoginHttpTest.php index 8be14653c72f..87c68c2c718d 100644 --- a/core/modules/user/tests/src/Functional/UserLoginHttpTest.php +++ b/core/modules/user/tests/src/Functional/UserLoginHttpTest.php @@ -351,7 +351,7 @@ protected function assertHttpResponseWithMessage(ResponseInterface $response, $e } /** - * Test the per-user login flood control. + * Tests the per-user login flood control. * * @see \Drupal\user\Tests\UserLoginTest::testPerUserLoginFloodControl * @see \Drupal\basic_auth\Tests\Authentication\BasicAuthTest::testPerUserLoginFloodControl @@ -452,7 +452,7 @@ protected function logoutRequest($format = 'json', $logout_token = '') { } /** - * Test csrf protection of User Logout route. + * Tests csrf protection of User Logout route. */ public function testLogoutCsrfProtection() { $client = \Drupal::httpClient(); diff --git a/core/modules/user/tests/src/Functional/UserLoginTest.php b/core/modules/user/tests/src/Functional/UserLoginTest.php index 4d1b750d4edd..51c187bd1b06 100644 --- a/core/modules/user/tests/src/Functional/UserLoginTest.php +++ b/core/modules/user/tests/src/Functional/UserLoginTest.php @@ -40,7 +40,7 @@ public function testLoginCacheTagsAndDestination() { } /** - * Test the global login flood control. + * Tests the global login flood control. */ public function testGlobalLoginFloodControl() { $this->config('user.flood') @@ -77,7 +77,7 @@ public function testGlobalLoginFloodControl() { } /** - * Test the per-user login flood control. + * Tests the per-user login flood control. */ public function testPerUserLoginFloodControl() { $this->config('user.flood') @@ -117,7 +117,7 @@ public function testPerUserLoginFloodControl() { } /** - * Test that user password is re-hashed upon login after changing $count_log2. + * Tests user password is re-hashed upon login after changing $count_log2. */ public function testPasswordRehashOnLogin() { // Determine default log2 for phpass hashing algorithm diff --git a/core/modules/user/tests/src/Functional/UserPasswordResetTest.php b/core/modules/user/tests/src/Functional/UserPasswordResetTest.php index a53b6f35c7d4..14019b5b6d4b 100644 --- a/core/modules/user/tests/src/Functional/UserPasswordResetTest.php +++ b/core/modules/user/tests/src/Functional/UserPasswordResetTest.php @@ -318,7 +318,7 @@ public function getResetURL() { } /** - * Test user password reset while logged in. + * Tests user password reset while logged in. */ public function testUserPasswordResetLoggedIn() { $another_account = $this->drupalCreateUser(); diff --git a/core/modules/user/tests/src/Functional/UserPermissionsTest.php b/core/modules/user/tests/src/Functional/UserPermissionsTest.php index 7ebff34ad366..e1f54620f54c 100644 --- a/core/modules/user/tests/src/Functional/UserPermissionsTest.php +++ b/core/modules/user/tests/src/Functional/UserPermissionsTest.php @@ -51,7 +51,7 @@ protected function setUp(): void { } /** - * Test changing user permissions through the permissions page. + * Tests changing user permissions through the permissions page. */ public function testUserPermissionChanges() { $permissions_hash_generator = $this->container->get('user_permissions_hash_generator'); @@ -102,7 +102,7 @@ public function testUserPermissionChanges() { } /** - * Test assigning of permissions for the administrator role. + * Tests assigning of permissions for the administrator role. */ public function testAdministratorRole() { $this->drupalLogin($this->adminUser); diff --git a/core/modules/user/tests/src/Functional/UserRoleAdminTest.php b/core/modules/user/tests/src/Functional/UserRoleAdminTest.php index 0630c73477e3..846979de0422 100644 --- a/core/modules/user/tests/src/Functional/UserRoleAdminTest.php +++ b/core/modules/user/tests/src/Functional/UserRoleAdminTest.php @@ -45,7 +45,7 @@ protected function setUp(): void { } /** - * Test adding, renaming and deleting roles. + * Tests adding, renaming and deleting roles. */ public function testRoleAdministration() { $this->drupalLogin($this->adminUser); @@ -104,7 +104,7 @@ public function testRoleAdministration() { } /** - * Test user role weight change operation and ordering. + * Tests user role weight change operation and ordering. */ public function testRoleWeightOrdering() { $this->drupalLogin($this->adminUser); diff --git a/core/modules/user/tests/src/Functional/UserSubAdminTest.php b/core/modules/user/tests/src/Functional/UserSubAdminTest.php index e549523ae43d..3b20194ea130 100644 --- a/core/modules/user/tests/src/Functional/UserSubAdminTest.php +++ b/core/modules/user/tests/src/Functional/UserSubAdminTest.php @@ -22,7 +22,7 @@ class UserSubAdminTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test create and cancel forms as 'sub-admin'. + * Tests create and cancel forms as 'sub-admin'. */ public function testSubAdmin() { $user = $this->drupalCreateUser(['sub-admin']); diff --git a/core/modules/user/tests/src/Functional/UserTranslationUITest.php b/core/modules/user/tests/src/Functional/UserTranslationUITest.php index b104b5ba94d3..cece42c27ff4 100644 --- a/core/modules/user/tests/src/Functional/UserTranslationUITest.php +++ b/core/modules/user/tests/src/Functional/UserTranslationUITest.php @@ -86,7 +86,7 @@ protected function doTestTranslationEdit() { } /** - * Test translated user deletion. + * Tests translated user deletion. */ public function testTranslatedUserDeletion() { $this->drupalLogin($this->administrator); diff --git a/core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php b/core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php index 59f4024ac577..cc00ab67c1c9 100644 --- a/core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php +++ b/core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php @@ -100,7 +100,7 @@ protected function setUp(): void { } /** - * Test the user_role condition. + * Tests the user_role condition. */ public function testConditions() { // Grab the user role condition and configure it to check against diff --git a/core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureFieldInstanceTest.php b/core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureFieldInstanceTest.php index c23773f214f0..309fd12e7cfc 100644 --- a/core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureFieldInstanceTest.php +++ b/core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureFieldInstanceTest.php @@ -27,7 +27,7 @@ protected function setUp(): void { } /** - * Test the user picture field migration. + * Tests the user picture field migration. */ public function testUserPictureField() { /** @var \Drupal\field\FieldConfigInterface $field */ diff --git a/core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureFieldTest.php b/core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureFieldTest.php index d47d63f0646b..30c50b4ff28c 100644 --- a/core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureFieldTest.php +++ b/core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureFieldTest.php @@ -24,7 +24,7 @@ protected function setUp(): void { } /** - * Test the user picture field migration. + * Tests the user picture field migration. */ public function testUserPictureField() { /** @var \Drupal\field\FieldStorageConfigInterface $field_storage */ diff --git a/core/modules/user/tests/src/Kernel/UserDeleteTest.php b/core/modules/user/tests/src/Kernel/UserDeleteTest.php index 928c095ec2bf..74ce534041cc 100644 --- a/core/modules/user/tests/src/Kernel/UserDeleteTest.php +++ b/core/modules/user/tests/src/Kernel/UserDeleteTest.php @@ -25,7 +25,7 @@ class UserDeleteTest extends KernelTestBase { ]; /** - * Test deleting multiple users. + * Tests deleting multiple users. */ public function testUserDeleteMultiple() { $this->installSchema('system', ['sequences']); diff --git a/core/modules/user/tests/src/Kernel/UserInstallTest.php b/core/modules/user/tests/src/Kernel/UserInstallTest.php index e93980cf34aa..b9bce0e03aac 100644 --- a/core/modules/user/tests/src/Kernel/UserInstallTest.php +++ b/core/modules/user/tests/src/Kernel/UserInstallTest.php @@ -29,7 +29,7 @@ protected function setUp(): void { } /** - * Test that the initial users have correct values. + * Tests that the initial users have correct values. */ public function testUserInstall() { $user_ids = \Drupal::entityQuery('user')->sort('uid')->accessCheck(FALSE)->execute(); diff --git a/core/modules/user/tests/src/Kernel/UserSaveStatusTest.php b/core/modules/user/tests/src/Kernel/UserSaveStatusTest.php index 7ada06b16ccd..8432a8da0232 100644 --- a/core/modules/user/tests/src/Kernel/UserSaveStatusTest.php +++ b/core/modules/user/tests/src/Kernel/UserSaveStatusTest.php @@ -25,7 +25,7 @@ protected function setUp(): void { } /** - * Test SAVED_NEW and SAVED_UPDATED statuses for user entity type. + * Tests SAVED_NEW and SAVED_UPDATED statuses for user entity type. */ public function testUserSaveStatus() { // Create a new user. diff --git a/core/modules/user/tests/src/Kernel/WhosOnlineBlockTest.php b/core/modules/user/tests/src/Kernel/WhosOnlineBlockTest.php index 57fda04f7620..90551a75c155 100644 --- a/core/modules/user/tests/src/Kernel/WhosOnlineBlockTest.php +++ b/core/modules/user/tests/src/Kernel/WhosOnlineBlockTest.php @@ -69,7 +69,7 @@ protected function setUp(): void { } /** - * Test the Who's Online block. + * Tests the Who's Online block. */ public function testWhosOnlineBlock() { $request_time = \Drupal::time()->getRequestTime(); diff --git a/core/modules/user/tests/src/Unit/UserAuthTest.php b/core/modules/user/tests/src/Unit/UserAuthTest.php index eb2a65616c14..06c92b9e7e05 100644 --- a/core/modules/user/tests/src/Unit/UserAuthTest.php +++ b/core/modules/user/tests/src/Unit/UserAuthTest.php @@ -189,7 +189,7 @@ public function testAuthenticateWithZeroPassword() { } /** - * Tests the authenticate method with a correct password and new password hash. + * Tests the authenticate method with a correct password & new password hash. * * @covers ::authenticate */ diff --git a/core/modules/views/tests/modules/views_test_data/src/Controller/ViewsTestDataController.php b/core/modules/views/tests/modules/views_test_data/src/Controller/ViewsTestDataController.php index 7a5c6f01558c..1a467131b529 100644 --- a/core/modules/views/tests/modules/views_test_data/src/Controller/ViewsTestDataController.php +++ b/core/modules/views/tests/modules/views_test_data/src/Controller/ViewsTestDataController.php @@ -35,7 +35,7 @@ public static function placeholderLazyBuilder() { } /** - * Test pre_render function. + * Tests pre_render function. * * @param array $element * A render array. diff --git a/core/modules/views/tests/src/Functional/DefaultViewsTest.php b/core/modules/views/tests/src/Functional/DefaultViewsTest.php index 4e9470211b73..d2bae2d52483 100644 --- a/core/modules/views/tests/src/Functional/DefaultViewsTest.php +++ b/core/modules/views/tests/src/Functional/DefaultViewsTest.php @@ -132,7 +132,7 @@ protected function setUp($import_test_views = TRUE): void { } /** - * Test that all Default views work as expected. + * Tests that all Default views work as expected. */ public function testDefaultViews() { // Get all default views. diff --git a/core/modules/views/tests/src/Functional/Entity/BaseFieldAccessTest.php b/core/modules/views/tests/src/Functional/Entity/BaseFieldAccessTest.php index e06d4185989f..b24afb3801f7 100644 --- a/core/modules/views/tests/src/Functional/Entity/BaseFieldAccessTest.php +++ b/core/modules/views/tests/src/Functional/Entity/BaseFieldAccessTest.php @@ -62,7 +62,7 @@ protected function setUp($import_test_views = TRUE): void { } /** - * Test access to protected base fields. + * Tests access to protected base fields. */ public function testProtectedField() { $this->drupalGet('test-entity-protected-access'); diff --git a/core/modules/views/tests/src/Functional/Handler/FilterDateTest.php b/core/modules/views/tests/src/Functional/Handler/FilterDateTest.php index eb3d7812e639..540cd9cec6e2 100644 --- a/core/modules/views/tests/src/Functional/Handler/FilterDateTest.php +++ b/core/modules/views/tests/src/Functional/Handler/FilterDateTest.php @@ -93,7 +93,7 @@ public function testDateFilter() { } /** - * Test the general offset functionality. + * Tests the general offset functionality. */ protected function _testOffset() { $view = Views::getView('test_filter_date_between'); @@ -200,7 +200,7 @@ protected function _testUiValidation() { } /** - * Test date filter UI. + * Tests date filter UI. */ protected function _testFilterDateUI() { $this->drupalLogin($this->drupalCreateUser(['administer views'])); @@ -286,7 +286,7 @@ protected function _testFilterDateUI() { } /** - * Test datetime grouped filter UI. + * Tests datetime grouped filter UI. */ protected function _testFilterDatetimeUI() { $this->drupalLogin($this->drupalCreateUser(['administer views'])); diff --git a/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php b/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php index e965b7bb0ac7..9e0ac98ad818 100644 --- a/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php +++ b/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php @@ -140,7 +140,7 @@ public function testArgumentDefaultFixed() { // function testArgumentDefaultPhp() {} /** - * Test node default argument. + * Tests node default argument. */ public function testArgumentDefaultNode() { // Create a user that has permission to place a view block. diff --git a/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php b/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php index 81edfd35c09e..7d5596cc1bdf 100644 --- a/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php +++ b/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php @@ -411,7 +411,7 @@ public function testOutputIsEmpty() { } /** - * Test translation rendering settings based on entity translatability. + * Tests translation rendering settings based on entity translatability. */ public function testTranslationSetting() { \Drupal::service('module_installer')->install(['file']); diff --git a/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php b/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php index c42e0d45216c..647edcf6b292 100644 --- a/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php +++ b/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php @@ -256,7 +256,7 @@ public function testExposedBlock() { } /** - * Test the input required exposed form type. + * Tests the input required exposed form type. */ public function testInputRequired() { $view = View::load('test_exposed_form_buttons'); @@ -279,7 +279,7 @@ public function testInputRequired() { } /** - * Test the "on demand text" for the input required exposed form type. + * Tests the "on demand text" for the input required exposed form type. */ public function testTextInputRequired() { $view = Views::getView('test_exposed_form_buttons'); diff --git a/core/modules/views/tests/src/Functional/Plugin/FilterTest.php b/core/modules/views/tests/src/Functional/Plugin/FilterTest.php index 955cdc63d77f..cd55557faff2 100644 --- a/core/modules/views/tests/src/Functional/Plugin/FilterTest.php +++ b/core/modules/views/tests/src/Functional/Plugin/FilterTest.php @@ -56,7 +56,7 @@ protected function viewsData() { } /** - * Test query of the row plugin. + * Tests query of the row plugin. */ public function testFilterQuery() { // Check that we can find the test filter plugin. @@ -151,7 +151,7 @@ public function testFilterQuery() { } /** - * Test no error message is displayed when all options are selected in an + * Tests no error message is displayed when all options are selected in an * exposed filter. */ public function testInOperatorSelectAllOptions() { diff --git a/core/modules/views/tests/src/Functional/Plugin/MenuLinkTest.php b/core/modules/views/tests/src/Functional/Plugin/MenuLinkTest.php index bc48565a7e0a..eb2ad2820602 100644 --- a/core/modules/views/tests/src/Functional/Plugin/MenuLinkTest.php +++ b/core/modules/views/tests/src/Functional/Plugin/MenuLinkTest.php @@ -62,7 +62,7 @@ protected function setUp($import_test_views = TRUE): void { } /** - * Test that menu links using menu_link_content as parent are visible. + * Tests that menu links using menu_link_content as parent are visible. */ public function testHierarchicalMenuLinkVisibility() { $this->drupalLogin($this->adminUser); diff --git a/core/modules/views/tests/src/Functional/Plugin/NumericFormatPluralTest.php b/core/modules/views/tests/src/Functional/Plugin/NumericFormatPluralTest.php index 9d11cc1fef22..367bd331bf68 100644 --- a/core/modules/views/tests/src/Functional/Plugin/NumericFormatPluralTest.php +++ b/core/modules/views/tests/src/Functional/Plugin/NumericFormatPluralTest.php @@ -44,7 +44,7 @@ protected function setUp($import_test_views = TRUE): void { } /** - * Test plural formatting setting on a numeric views handler. + * Tests plural formatting setting on a numeric views handler. */ public function testNumericFormatPlural() { // Create a file. diff --git a/core/modules/views/tests/src/Functional/Plugin/PagerTest.php b/core/modules/views/tests/src/Functional/Plugin/PagerTest.php index e78c511f7132..0b8eac24842a 100644 --- a/core/modules/views/tests/src/Functional/Plugin/PagerTest.php +++ b/core/modules/views/tests/src/Functional/Plugin/PagerTest.php @@ -363,7 +363,7 @@ public function testRenderNullPager() { } /** - * Test the api functions on the view object. + * Tests the api functions on the view object. */ public function testPagerApi() { $view = Views::getView('test_pager_full'); diff --git a/core/modules/views/tests/src/Functional/Plugin/StyleTableTest.php b/core/modules/views/tests/src/Functional/Plugin/StyleTableTest.php index 55214bbb3433..0e3b30e6a258 100644 --- a/core/modules/views/tests/src/Functional/Plugin/StyleTableTest.php +++ b/core/modules/views/tests/src/Functional/Plugin/StyleTableTest.php @@ -36,7 +36,7 @@ protected function setUp($import_test_views = TRUE): void { } /** - * Test table caption/summary/description. + * Tests table caption/summary/description. */ public function testAccessibilitySettings() { $this->drupalGet('test-table'); @@ -87,7 +87,7 @@ public function testAccessibilitySettings() { } /** - * Test table fields in columns. + * Tests table fields in columns. */ public function testFieldInColumns() { $this->drupalGet('test-table'); @@ -119,7 +119,7 @@ public function testFieldInColumns() { } /** - * Test that a number with the value of "0" is displayed in the table. + * Tests that a number with the value of "0" is displayed in the table. */ public function testNumericFieldVisible() { // Adds a new datapoint in the views_test_data table to have a person with @@ -146,7 +146,7 @@ public function testNumericFieldVisible() { } /** - * Test that empty columns are hidden when empty_column is set. + * Tests that empty columns are hidden when empty_column is set. */ public function testEmptyColumn() { // Empty the 'job' data. diff --git a/core/modules/views/tests/src/FunctionalJavascript/GlossaryViewTest.php b/core/modules/views/tests/src/FunctionalJavascript/GlossaryViewTest.php index 1366f23a3cc5..9ecfd4d84aa5 100644 --- a/core/modules/views/tests/src/FunctionalJavascript/GlossaryViewTest.php +++ b/core/modules/views/tests/src/FunctionalJavascript/GlossaryViewTest.php @@ -100,7 +100,7 @@ public function testGlossaryDefault() { } /** - * Test that the glossary also works on a language prefixed URL. + * Tests that the glossary also works on a language prefixed URL. */ public function testGlossaryLanguagePrefix() { ConfigurableLanguage::createFromLangcode('nl')->save(); diff --git a/core/modules/views/tests/src/FunctionalJavascript/Plugin/views/Handler/ContextualFilterTest.php b/core/modules/views/tests/src/FunctionalJavascript/Plugin/views/Handler/ContextualFilterTest.php index e6aaace307f4..da4759d08bf0 100644 --- a/core/modules/views/tests/src/FunctionalJavascript/Plugin/views/Handler/ContextualFilterTest.php +++ b/core/modules/views/tests/src/FunctionalJavascript/Plugin/views/Handler/ContextualFilterTest.php @@ -55,7 +55,7 @@ protected function setUp(): void { } /** - * Test adding a contextual filter handler through the UI. + * Tests adding a contextual filter handler through the UI. */ public function testAddContextualFilterUI() { $this->drupalGet('/admin/structure/views/view/test_field_body'); diff --git a/core/modules/views/tests/src/FunctionalJavascript/Plugin/views/Handler/GroupedExposedFilterTest.php b/core/modules/views/tests/src/FunctionalJavascript/Plugin/views/Handler/GroupedExposedFilterTest.php index 8f4501ba8d98..9df73f43aa40 100644 --- a/core/modules/views/tests/src/FunctionalJavascript/Plugin/views/Handler/GroupedExposedFilterTest.php +++ b/core/modules/views/tests/src/FunctionalJavascript/Plugin/views/Handler/GroupedExposedFilterTest.php @@ -71,7 +71,7 @@ protected function setUp(): void { } /** - * Test if the right fields are shown and the right values set. + * Tests if the right fields are shown and the right values set. */ public function testGroupedFilterValuesUI() { $web_assert = $this->assertSession(); diff --git a/core/modules/views/tests/src/Kernel/Handler/ComputedFieldTest.php b/core/modules/views/tests/src/Kernel/Handler/ComputedFieldTest.php index 5b1e81b99ccb..a91c02d6dd0e 100644 --- a/core/modules/views/tests/src/Kernel/Handler/ComputedFieldTest.php +++ b/core/modules/views/tests/src/Kernel/Handler/ComputedFieldTest.php @@ -38,7 +38,7 @@ protected function setUp($import_test_views = TRUE): void { } /** - * Test the computed field handler. + * Tests the computed field handler. */ public function testComputedFieldHandler() { \Drupal::state()->set('entity_test_computed_field_item_list_value', ['computed string']); diff --git a/core/modules/views/tests/src/Kernel/Handler/SortTranslationTest.php b/core/modules/views/tests/src/Kernel/Handler/SortTranslationTest.php index 0fa5d144d35c..f9c4107cad1b 100644 --- a/core/modules/views/tests/src/Kernel/Handler/SortTranslationTest.php +++ b/core/modules/views/tests/src/Kernel/Handler/SortTranslationTest.php @@ -93,7 +93,7 @@ protected function setUp($import_test_views = TRUE): void { } /** - * Test sorting on an untranslated field. + * Tests sorting on an untranslated field. */ public function testSortbyUntranslatedIntegerField() { $map = [ diff --git a/core/modules/views/tests/src/Kernel/Plugin/Display/ViewsMenuLinkTest.php b/core/modules/views/tests/src/Kernel/Plugin/Display/ViewsMenuLinkTest.php index 8edaa2965bda..3fa5ed401be0 100644 --- a/core/modules/views/tests/src/Kernel/Plugin/Display/ViewsMenuLinkTest.php +++ b/core/modules/views/tests/src/Kernel/Plugin/Display/ViewsMenuLinkTest.php @@ -50,7 +50,7 @@ protected function setUp($import_test_views = TRUE): void { } /** - * Test views internal menu link options. + * Tests views internal menu link options. */ public function testMenuLinkOverrides() { // Link from views module. diff --git a/core/modules/views/tests/src/Kernel/Plugin/DisplayExtenderTest.php b/core/modules/views/tests/src/Kernel/Plugin/DisplayExtenderTest.php index 4d60524a5fde..32bb1095808f 100644 --- a/core/modules/views/tests/src/Kernel/Plugin/DisplayExtenderTest.php +++ b/core/modules/views/tests/src/Kernel/Plugin/DisplayExtenderTest.php @@ -23,7 +23,7 @@ class DisplayExtenderTest extends ViewsKernelTestBase { public static $testViews = ['test_view']; /** - * Test display extenders. + * Tests display extenders. */ public function testDisplayExtenders() { $this->config('views.settings')->set('display_extenders', ['display_extender_test'])->save(); @@ -44,7 +44,7 @@ public function testDisplayExtenders() { } /** - * Test display extenders validation. + * Tests display extenders validation. */ public function testDisplayExtendersValidate() { $this->config('views.settings')->set('display_extenders', ['display_extender_test_3'])->save(); diff --git a/core/modules/views/tests/src/Kernel/Plugin/PluginBaseTest.php b/core/modules/views/tests/src/Kernel/Plugin/PluginBaseTest.php index 804b43dec8e6..7b485d3daa4d 100644 --- a/core/modules/views/tests/src/Kernel/Plugin/PluginBaseTest.php +++ b/core/modules/views/tests/src/Kernel/Plugin/PluginBaseTest.php @@ -30,7 +30,7 @@ protected function setUp(): void { } /** - * Test that the token replacement in views works correctly. + * Tests that the token replacement in views works correctly. */ public function testViewsTokenReplace() { $text = '{{ langcode__value }} means {{ langcode }}'; @@ -44,7 +44,7 @@ public function testViewsTokenReplace() { } /** - * Test that the token replacement in views works correctly with dots. + * Tests that the token replacement in views works correctly with dots. */ public function testViewsTokenReplaceWithDots() { $text = '{{ argument.first }} comes before {{ argument.second }}'; diff --git a/core/modules/views/tests/src/Kernel/Plugin/QueryTest.php b/core/modules/views/tests/src/Kernel/Plugin/QueryTest.php index d4861850da48..955876229b18 100644 --- a/core/modules/views/tests/src/Kernel/Plugin/QueryTest.php +++ b/core/modules/views/tests/src/Kernel/Plugin/QueryTest.php @@ -59,7 +59,7 @@ public function _testQueryExecute() { } /** - * Test methods provided by the QueryPluginBase. + * Tests methods provided by the QueryPluginBase. * * @see \Drupal\views\Plugin\views\query\QueryPluginBase */ diff --git a/core/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php b/core/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php index cdb5961af7fa..6523c40cbcd3 100644 --- a/core/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php +++ b/core/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php @@ -81,7 +81,7 @@ protected function setUpFixtures() { } /** - * Test complex field rewriting and uncacheable field handlers. + * Tests complex field rewriting and uncacheable field handlers. */ public function testAdvancedCaching() { // Test that row field output is actually cached and with the proper cache @@ -104,7 +104,7 @@ public function testAdvancedCaching() { } /** - * Test that rows are not cached when the none cache plugin is used. + * Tests that rows are not cached when the none cache plugin is used. */ public function testNoCaching() { $this->setCurrentUser($this->regularUser); diff --git a/core/modules/views/tests/src/Unit/Plugin/argument_default/QueryParameterTest.php b/core/modules/views/tests/src/Unit/Plugin/argument_default/QueryParameterTest.php index 8bacd3dcdb5a..212f24969601 100644 --- a/core/modules/views/tests/src/Unit/Plugin/argument_default/QueryParameterTest.php +++ b/core/modules/views/tests/src/Unit/Plugin/argument_default/QueryParameterTest.php @@ -13,7 +13,7 @@ class QueryParameterTest extends UnitTestCase { /** - * Test the getArgument() method. + * Tests the getArgument() method. * * @covers ::getArgument * @dataProvider providerGetArgument diff --git a/core/modules/views/tests/src/Unit/Plugin/argument_default/RawTest.php b/core/modules/views/tests/src/Unit/Plugin/argument_default/RawTest.php index c3c7dd140d52..a153c09a962f 100644 --- a/core/modules/views/tests/src/Unit/Plugin/argument_default/RawTest.php +++ b/core/modules/views/tests/src/Unit/Plugin/argument_default/RawTest.php @@ -16,7 +16,7 @@ class RawTest extends UnitTestCase { /** - * Test the getArgument() method. + * Tests the getArgument() method. * * @see \Drupal\views\Plugin\views\argument_default\Raw::getArgument() */ diff --git a/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php b/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php index 99beba785ebb..b72947321c52 100644 --- a/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php +++ b/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php @@ -210,7 +210,7 @@ protected function setupDisplayWithEmptyArgumentsAndFields() { } /** - * Test rendering as a link without a path. + * Tests rendering as a link without a path. * * @covers ::renderAsLink */ @@ -230,7 +230,7 @@ public function testRenderAsLinkWithoutPath() { } /** - * Test rendering with a more link. + * Tests rendering with a more link. * * @param string $path * An internal or external path. @@ -313,7 +313,7 @@ public function testRenderNoResult() { } /** - * Test rendering of a link with a path and options. + * Tests rendering of a link with a path and options. * * @dataProvider providerTestRenderAsLinkWithPathAndOptions * @covers ::renderAsLink @@ -529,7 +529,7 @@ public function providerTestRenderAsLinkWithUrlAndOptions() { } /** - * Test rendering of a link with a path and options. + * Tests rendering of a link with a path and options. * * @dataProvider providerTestRenderAsLinkWithPathAndTokens * @covers ::renderAsLink @@ -589,7 +589,7 @@ public function providerTestRenderAsLinkWithPathAndTokens() { } /** - * Test rendering of a link with a path and options. + * Tests rendering of a link with a path and options. * * @dataProvider providerTestRenderAsExternalLinkWithPathAndTokens * @covers ::renderAsLink diff --git a/core/modules/views_ui/tests/src/Functional/TokenizeAreaUITest.php b/core/modules/views_ui/tests/src/Functional/TokenizeAreaUITest.php index 6a6d34dc66ff..9462e1caa0a5 100644 --- a/core/modules/views_ui/tests/src/Functional/TokenizeAreaUITest.php +++ b/core/modules/views_ui/tests/src/Functional/TokenizeAreaUITest.php @@ -24,7 +24,7 @@ class TokenizeAreaUITest extends UITestBase { protected $defaultTheme = 'stark'; /** - * Test that the right tokens are shown as available for replacement. + * Tests that the right tokens are shown as available for replacement. */ public function testTokenUI() { $entity_test = EntityTest::create(['bundle' => 'entity_test']); diff --git a/core/modules/workflows/tests/src/Functional/WorkflowCustomStateTransitionAccessTest.php b/core/modules/workflows/tests/src/Functional/WorkflowCustomStateTransitionAccessTest.php index e01b0d044f8b..04934ca48eba 100644 --- a/core/modules/workflows/tests/src/Functional/WorkflowCustomStateTransitionAccessTest.php +++ b/core/modules/workflows/tests/src/Functional/WorkflowCustomStateTransitionAccessTest.php @@ -54,7 +54,7 @@ protected function setUp(): void { } /** - * Test the custom state/transition operation access rules. + * Tests the custom state/transition operation access rules. */ public function testCustomWorkflowAccessOperations() { $this->drupalLogin($this->adminUser); diff --git a/core/modules/workflows/tests/src/Functional/WorkflowUiTest.php b/core/modules/workflows/tests/src/Functional/WorkflowUiTest.php index b6ca2ff04c18..9c135b67ea53 100644 --- a/core/modules/workflows/tests/src/Functional/WorkflowUiTest.php +++ b/core/modules/workflows/tests/src/Functional/WorkflowUiTest.php @@ -86,7 +86,7 @@ public function testAccess() { } /** - * Test the machine name validation of the state add form. + * Tests the machine name validation of the state add form. */ public function testStateMachineNameValidation() { Workflow::create([ @@ -283,7 +283,7 @@ public function testWorkflowCreation() { } /** - * Test the workflow configuration form. + * Tests the workflow configuration form. */ public function testWorkflowConfigurationForm() { $workflow = Workflow::create(['id' => 'test', 'type' => 'workflow_type_complex_test', 'label' => 'Test']); @@ -306,7 +306,7 @@ public function testWorkflowConfigurationForm() { } /** - * Test a workflow, state, and transition can have a numeric ID and label. + * Tests a workflow, state, and transition can have a numeric ID and label. */ public function testNumericIds() { $this->drupalLogin($this->createUser(['administer workflows'])); @@ -335,7 +335,7 @@ public function testNumericIds() { } /** - * Test the sorting of states and transitions by weight and label. + * Tests the sorting of states and transitions by weight and label. */ public function testSorting() { $workflow = Workflow::create(['id' => 'test', 'type' => 'workflow_type_complex_test', 'label' => 'Test']); diff --git a/core/modules/workflows/tests/src/Kernel/PredefinedWorkflowTypeTest.php b/core/modules/workflows/tests/src/Kernel/PredefinedWorkflowTypeTest.php index 2f294fd915b9..05f343a4d782 100644 --- a/core/modules/workflows/tests/src/Kernel/PredefinedWorkflowTypeTest.php +++ b/core/modules/workflows/tests/src/Kernel/PredefinedWorkflowTypeTest.php @@ -18,7 +18,7 @@ class PredefinedWorkflowTypeTest extends KernelTestBase { protected static $modules = ['workflows', 'workflow_type_test']; /** - * Test a predefined workflow type. + * Tests a predefined workflow type. */ public function testPredefinedWorkflowType() { $workflow = Workflow::create([ diff --git a/core/modules/workflows/tests/src/Unit/WorkflowStateTransitionOperationsAccessCheckTest.php b/core/modules/workflows/tests/src/Unit/WorkflowStateTransitionOperationsAccessCheckTest.php index deb29bdf855c..63f1fec26e71 100644 --- a/core/modules/workflows/tests/src/Unit/WorkflowStateTransitionOperationsAccessCheckTest.php +++ b/core/modules/workflows/tests/src/Unit/WorkflowStateTransitionOperationsAccessCheckTest.php @@ -18,7 +18,7 @@ class WorkflowStateTransitionOperationsAccessCheckTest extends UnitTestCase { /** - * Test the access method correctly proxies to the entity access system. + * Tests the access method correctly proxies to the entity access system. * * @covers ::access * @dataProvider accessTestCases diff --git a/core/modules/workflows/tests/src/Unit/WorkflowTest.php b/core/modules/workflows/tests/src/Unit/WorkflowTest.php index 63bf2f08ed78..7db051e46296 100644 --- a/core/modules/workflows/tests/src/Unit/WorkflowTest.php +++ b/core/modules/workflows/tests/src/Unit/WorkflowTest.php @@ -120,7 +120,7 @@ public function testGetStates() { } /** - * Test numeric IDs when added to a workflow. + * Tests numeric IDs when added to a workflow. */ public function testNumericIdSorting() { $workflow = new Workflow(['id' => 'test', 'type' => 'test_type'], 'workflow'); diff --git a/core/modules/workspaces/tests/src/Functional/WorkspaceConcurrentEditingTest.php b/core/modules/workspaces/tests/src/Functional/WorkspaceConcurrentEditingTest.php index 3922f98e5637..d6d2fd2b3991 100644 --- a/core/modules/workspaces/tests/src/Functional/WorkspaceConcurrentEditingTest.php +++ b/core/modules/workspaces/tests/src/Functional/WorkspaceConcurrentEditingTest.php @@ -24,7 +24,7 @@ class WorkspaceConcurrentEditingTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test editing a node in multiple workspaces. + * Tests editing a node in multiple workspaces. */ public function testConcurrentEditing() { // Create a test node. diff --git a/core/modules/workspaces/tests/src/Functional/WorkspaceSwitcherTest.php b/core/modules/workspaces/tests/src/Functional/WorkspaceSwitcherTest.php index dab04abc64c2..3f0f54c9f4c2 100644 --- a/core/modules/workspaces/tests/src/Functional/WorkspaceSwitcherTest.php +++ b/core/modules/workspaces/tests/src/Functional/WorkspaceSwitcherTest.php @@ -45,7 +45,7 @@ protected function setUp(): void { } /** - * Test switching workspace via the switcher block and admin page. + * Tests switching workspace via the switcher block and admin page. */ public function testSwitchingWorkspaces() { $vultures = $this->createWorkspaceThroughUi('Vultures', 'vultures'); @@ -67,7 +67,7 @@ public function testSwitchingWorkspaces() { } /** - * Test switching workspace via a query parameter. + * Tests switching workspace via a query parameter. */ public function testQueryParameterNegotiator() { $web_assert = $this->assertSession(); diff --git a/core/modules/workspaces/tests/src/Functional/WorkspaceTest.php b/core/modules/workspaces/tests/src/Functional/WorkspaceTest.php index 99a9ce7164f2..afb16f27203f 100644 --- a/core/modules/workspaces/tests/src/Functional/WorkspaceTest.php +++ b/core/modules/workspaces/tests/src/Functional/WorkspaceTest.php @@ -59,7 +59,7 @@ public function setUp(): void { } /** - * Test creating a workspace with special characters. + * Tests creating a workspace with special characters. */ public function testSpecialCharacters() { $this->drupalLogin($this->editor1); @@ -79,7 +79,7 @@ public function testSpecialCharacters() { } /** - * Test that the toolbar correctly shows the active workspace. + * Tests that the toolbar correctly shows the active workspace. */ public function testWorkspaceToolbar() { $this->drupalLogin($this->editor1); @@ -109,7 +109,7 @@ public function testWorkspaceToolbar() { } /** - * Test changing the owner of a workspace. + * Tests changing the owner of a workspace. */ public function testWorkspaceOwner() { $this->drupalLogin($this->editor1); diff --git a/core/modules/workspaces/tests/src/FunctionalJavascript/WorkspaceToolbarIntegrationTest.php b/core/modules/workspaces/tests/src/FunctionalJavascript/WorkspaceToolbarIntegrationTest.php index 2ec2353a05e6..768b940b02db 100644 --- a/core/modules/workspaces/tests/src/FunctionalJavascript/WorkspaceToolbarIntegrationTest.php +++ b/core/modules/workspaces/tests/src/FunctionalJavascript/WorkspaceToolbarIntegrationTest.php @@ -35,7 +35,7 @@ protected function setUp(): void { } /** - * Test workspace canvas can be toggled with JavaScript. + * Tests workspace canvas can be toggled with JavaScript. */ public function testWorkspaceCanvasToggling() { $page = $this->getSession()->getPage(); @@ -59,7 +59,7 @@ public function testWorkspaceCanvasToggling() { } /** - * Test workspace switch and landing page behavior. + * Tests workspace switch and landing page behavior. */ public function testWorkspaceSwitch() { $page = $this->getSession()->getPage(); diff --git a/core/modules/workspaces/tests/src/Kernel/WorkspaceAccessTest.php b/core/modules/workspaces/tests/src/Kernel/WorkspaceAccessTest.php index c158760b2e36..451926633389 100644 --- a/core/modules/workspaces/tests/src/Kernel/WorkspaceAccessTest.php +++ b/core/modules/workspaces/tests/src/Kernel/WorkspaceAccessTest.php @@ -45,7 +45,7 @@ protected function setUp(): void { } /** - * Test cases for testWorkspaceAccess(). + * Tests cases for testWorkspaceAccess(). * * @return array * An array of operations and permissions to test with. diff --git a/core/modules/workspaces/tests/src/Kernel/WorkspaceIntegrationTest.php b/core/modules/workspaces/tests/src/Kernel/WorkspaceIntegrationTest.php index 788b00e9ed7a..dd32a2682b48 100644 --- a/core/modules/workspaces/tests/src/Kernel/WorkspaceIntegrationTest.php +++ b/core/modules/workspaces/tests/src/Kernel/WorkspaceIntegrationTest.php @@ -1005,7 +1005,7 @@ public function testFormCacheForRegularForms() { } /** - * Test publishing with fields in dedicated table storage. + * Tests publishing with fields in dedicated table storage. */ public function testPublishWorkspaceDedicatedTableStorage() { $this->initializeWorkspacesModule(); diff --git a/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php b/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php index d87398ea2f28..31f19889e236 100644 --- a/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php +++ b/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php @@ -91,7 +91,8 @@ protected function assertDefaultConfig(StorageInterface $default_config_storage, } /** - * Tests that the users can log in with the admin password selected at install. + * Tests that the users can log in with the admin password selected at + * install. */ public function testUser() { $password = $this->rootUser->pass_raw; diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php index 253f18e934f3..efeb61676905 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php @@ -48,7 +48,7 @@ public function testAjaxWithAdminRoute() { } /** - * Test that AJAX loaded libraries are not retained between requests. + * Tests that AJAX loaded libraries are not retained between requests. * * @see https://www.drupal.org/node/2647916 */ diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/DialogTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/DialogTest.php index c269889dc526..0036e88a8f0d 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/DialogTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/DialogTest.php @@ -24,7 +24,7 @@ class DialogTest extends WebDriverTestBase { protected $defaultTheme = 'classy'; /** - * Test sending non-JS and AJAX requests to open and manipulate modals. + * Tests sending non-JS and AJAX requests to open and manipulate modals. */ public function testDialog() { $this->drupalLogin($this->drupalCreateUser(['administer contact forms'])); diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/MessageCommandTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/MessageCommandTest.php index 0073c74fc207..a0c1d57cbb8b 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Ajax/MessageCommandTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/MessageCommandTest.php @@ -22,7 +22,7 @@ class MessageCommandTest extends WebDriverTestBase { protected $defaultTheme = 'stark'; /** - * Test AJAX MessageCommand use in a form. + * Tests AJAX MessageCommand use in a form. */ public function testMessageCommand() { $page = $this->getSession()->getPage(); diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Core/CsrfTokenRaceTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Core/CsrfTokenRaceTest.php index 74f72f2f0465..04307a825f5f 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Core/CsrfTokenRaceTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Core/CsrfTokenRaceTest.php @@ -22,7 +22,7 @@ class CsrfTokenRaceTest extends WebDriverTestBase { protected $defaultTheme = 'stark'; /** - * Test race condition for CSRF tokens for simultaneous requests. + * Tests race condition for CSRF tokens for simultaneous requests. */ public function testCsrfRace() { $user = $this->createUser(['access content']); diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Core/JsMessageTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Core/JsMessageTest.php index ea6a0dedf9c3..32e6c4531c03 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Core/JsMessageTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Core/JsMessageTest.php @@ -36,7 +36,7 @@ protected function setUp(): void { } /** - * Test click on links to show messages and remove messages. + * Tests click on links to show messages and remove messages. */ public function testAddRemoveMessages() { $web_assert = $this->assertSession(); diff --git a/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php b/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php index 23d406ab2698..3cbb7f1ae39b 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php @@ -236,7 +236,7 @@ public function waitOnAutocomplete() { } /** - * Test that a node, or its specific corner, is visible in the viewport. + * Tests that a node, or its specific corner, is visible in the viewport. * * Note: Always set the viewport size. This can be done in your test with * \Behat\Mink\Session->resizeWindow(). Drupal CI JavaScript tests by default @@ -281,7 +281,7 @@ public function assertVisibleInViewport($selector_type, $selector, $corner = FAL } /** - * Test that a node, or its specific corner, is not visible in the viewport. + * Tests that a node, or its specific corner, is not visible in the viewport. * * Note: the node should exist in the page, otherwise this assertion fails. * diff --git a/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php b/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php index bfb5f1da4700..33e8b533fba5 100644 --- a/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php +++ b/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php @@ -813,7 +813,7 @@ public function testProfileModules() { } /** - * Test the protections provided by .htkey. + * Tests the protections provided by .htkey. */ public function testHtkey() { // Remove the Simpletest private key file so we can test the protection diff --git a/core/tests/Drupal/FunctionalTests/BrowserTestBaseUserAgentTest.php b/core/tests/Drupal/FunctionalTests/BrowserTestBaseUserAgentTest.php index 28f9c1e5675e..42f462d20c16 100644 --- a/core/tests/Drupal/FunctionalTests/BrowserTestBaseUserAgentTest.php +++ b/core/tests/Drupal/FunctionalTests/BrowserTestBaseUserAgentTest.php @@ -24,7 +24,7 @@ class BrowserTestBaseUserAgentTest extends BrowserTestBase { protected $agent; /** - * Test validation of the User-Agent header we use to perform test requests. + * Tests validation of the User-Agent header we use to perform test requests. */ public function testUserAgentValidation() { $assert_session = $this->assertSession(); diff --git a/core/tests/Drupal/FunctionalTests/Image/ToolkitSetupFormTest.php b/core/tests/Drupal/FunctionalTests/Image/ToolkitSetupFormTest.php index 505ea6672dfc..2ee6b7a6349f 100644 --- a/core/tests/Drupal/FunctionalTests/Image/ToolkitSetupFormTest.php +++ b/core/tests/Drupal/FunctionalTests/Image/ToolkitSetupFormTest.php @@ -42,7 +42,7 @@ protected function setUp(): void { } /** - * Test Image toolkit setup form. + * Tests Image toolkit setup form. */ public function testToolkitSetupForm() { // Get form. diff --git a/core/tests/Drupal/FunctionalTests/MailCaptureTest.php b/core/tests/Drupal/FunctionalTests/MailCaptureTest.php index 8acae8629d66..c74cc08565f8 100644 --- a/core/tests/Drupal/FunctionalTests/MailCaptureTest.php +++ b/core/tests/Drupal/FunctionalTests/MailCaptureTest.php @@ -23,7 +23,7 @@ class MailCaptureTest extends BrowserTestBase { protected $defaultTheme = 'stark'; /** - * Test to see if the wrapper function is executed correctly. + * Tests to see if the wrapper function is executed correctly. */ public function testMailSend() { // Create an email. diff --git a/core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php b/core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php index 78844ad89969..7af61a150552 100644 --- a/core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php +++ b/core/tests/Drupal/FunctionalTests/Theme/ClaroTest.php @@ -40,7 +40,7 @@ public function testRegressionMissingElementsCss() { } /** - * Test Claro's configuration schema. + * Tests Claro's configuration schema. */ public function testConfigSchema() { $this->drupalLogin($this->rootUser); diff --git a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php index 4ad49c4c1f95..fa05eb2c2065 100644 --- a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php +++ b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php @@ -80,7 +80,7 @@ public function testDatabaseLoaded() { } /** - * Test that updates are properly run. + * Tests that updates are properly run. */ public function testUpdateHookN() { $connection = Database::getConnection(); @@ -213,7 +213,7 @@ public function testSchemaChecking() { } /** - * Test the database fixtures are setup correctly. + * Tests the database fixtures are setup correctly. */ public function testFixturesSetup() { $this->assertCount(3, $this->databaseDumpFiles); diff --git a/core/tests/Drupal/KernelTests/Core/Action/EmailActionTest.php b/core/tests/Drupal/KernelTests/Core/Action/EmailActionTest.php index ae69854fa982..4b1f921358a5 100644 --- a/core/tests/Drupal/KernelTests/Core/Action/EmailActionTest.php +++ b/core/tests/Drupal/KernelTests/Core/Action/EmailActionTest.php @@ -28,7 +28,7 @@ protected function setUp(): void { } /** - * Test the email action plugin. + * Tests the email action plugin. */ public function testEmailAction() { /** @var \Drupal\Core\Action\ActionManager $plugin_manager */ diff --git a/core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php b/core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php index eb23ff5e5303..147c89856758 100644 --- a/core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php +++ b/core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php @@ -433,7 +433,7 @@ public function testSetMultiple() { } /** - * Test Drupal\Core\Cache\CacheBackendInterface::delete() and + * Tests Drupal\Core\Cache\CacheBackendInterface::delete() and * Drupal\Core\Cache\CacheBackendInterface::deleteMultiple(). */ public function testDeleteMultiple() { @@ -481,7 +481,7 @@ public function testDeleteMultiple() { } /** - * Test Drupal\Core\Cache\CacheBackendInterface::deleteAll(). + * Tests Drupal\Core\Cache\CacheBackendInterface::deleteAll(). */ public function testDeleteAll() { $backend_a = $this->getCacheBackend(); @@ -500,7 +500,7 @@ public function testDeleteAll() { } /** - * Test Drupal\Core\Cache\CacheBackendInterface::invalidate() and + * Tests Drupal\Core\Cache\CacheBackendInterface::invalidate() and * Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple(). */ public function testInvalidate() { @@ -600,7 +600,7 @@ public function testInvalidateTags() { } /** - * Test Drupal\Core\Cache\CacheBackendInterface::invalidateAll(). + * Tests Drupal\Core\Cache\CacheBackendInterface::invalidateAll(). */ public function testInvalidateAll() { $backend_a = $this->getCacheBackend(); diff --git a/core/tests/Drupal/KernelTests/Core/Command/DbDumpTest.php b/core/tests/Drupal/KernelTests/Core/Command/DbDumpTest.php index 55961a8c2068..b8ed52a1a6c1 100644 --- a/core/tests/Drupal/KernelTests/Core/Command/DbDumpTest.php +++ b/core/tests/Drupal/KernelTests/Core/Command/DbDumpTest.php @@ -147,7 +147,7 @@ protected function setUp(): void { } /** - * Test the command directly. + * Tests the command directly. */ public function testDbDumpCommand() { $application = new DbDumpApplication(); @@ -176,7 +176,7 @@ public function testDbDumpCommand() { } /** - * Test loading the script back into the database. + * Tests loading the script back into the database. */ public function testScriptLoad() { // Generate the script. diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php index fb5d720b3241..10081d92da4e 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php @@ -228,7 +228,8 @@ public function testDependencyChecking() { } /** - * Tests imported configuration entities with and without language information. + * Tests imported configuration entities with and without language + * information. */ public function testLanguage() { $this->installModules(['config_test_language']); diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php index 88606857a434..6d5b86712f2d 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php @@ -350,7 +350,7 @@ public function testSchemaData() { } /** - * Test configuration value data type enforcement using schemas. + * Tests configuration value data type enforcement using schemas. */ public function testConfigSaveWithSchema() { $untyped_values = [ diff --git a/core/tests/Drupal/KernelTests/Core/Config/ExcludedModulesEventSubscriberTest.php b/core/tests/Drupal/KernelTests/Core/Config/ExcludedModulesEventSubscriberTest.php index fc9507e81d08..7048ec8f5dcf 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/ExcludedModulesEventSubscriberTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/ExcludedModulesEventSubscriberTest.php @@ -30,7 +30,7 @@ protected function setUp(): void { } /** - * Test excluding modules from the config export. + * Tests excluding modules from the config export. */ public function testExcludedModules() { // Assert that config_test is in the active config. diff --git a/core/tests/Drupal/KernelTests/Core/Config/ExportStorageManagerTest.php b/core/tests/Drupal/KernelTests/Core/Config/ExportStorageManagerTest.php index b6202d36b1cb..dbb8db474284 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/ExportStorageManagerTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/ExportStorageManagerTest.php @@ -31,7 +31,7 @@ protected function setUp(): void { } /** - * Test getting the export storage. + * Tests getting the export storage. */ public function testGetStorage() { // Get the raw system.site config and set it in the sync storage. @@ -75,7 +75,7 @@ public function testGetStorage() { } /** - * Test the export storage when it is locked. + * Tests the export storage when it is locked. */ public function testGetStorageLock() { $lock = $this->createMock('Drupal\Core\Lock\LockBackendInterface'); diff --git a/core/tests/Drupal/KernelTests/Core/Config/ImportStorageTransformerTest.php b/core/tests/Drupal/KernelTests/Core/Config/ImportStorageTransformerTest.php index 2cb9c961f968..2a06ed69e1b0 100644 --- a/core/tests/Drupal/KernelTests/Core/Config/ImportStorageTransformerTest.php +++ b/core/tests/Drupal/KernelTests/Core/Config/ImportStorageTransformerTest.php @@ -33,7 +33,7 @@ protected function setUp(): void { } /** - * Test the import transformation. + * Tests the import transformation. */ public function testTransform() { // Get the raw system.site config and set it in the sync storage. @@ -61,7 +61,7 @@ public function testTransform() { } /** - * Test that the import transformer throws an exception. + * Tests that the import transformer throws an exception. */ public function testTransformLocked() { // Mock the request lock not being available. @@ -92,7 +92,7 @@ public function testTransformLocked() { } /** - * Test the import transformer during a running config import. + * Tests the import transformer during a running config import. */ public function testTransformWhileImporting() { // Set up the database table with the current active config. diff --git a/core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php b/core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php index 2944e0987a74..4d7f74feaf2c 100644 --- a/core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php +++ b/core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php @@ -197,7 +197,7 @@ public function testMultipleStatements() { } /** - * Test that the method ::condition() returns a Condition object. + * Tests that the method ::condition() returns a Condition object. */ public function testCondition() { $connection = Database::getConnection('default', 'default'); diff --git a/core/tests/Drupal/KernelTests/Core/Database/SelectCloneTest.php b/core/tests/Drupal/KernelTests/Core/Database/SelectCloneTest.php index beed733eb5d8..b33be3bfbf82 100644 --- a/core/tests/Drupal/KernelTests/Core/Database/SelectCloneTest.php +++ b/core/tests/Drupal/KernelTests/Core/Database/SelectCloneTest.php @@ -10,7 +10,7 @@ class SelectCloneTest extends DatabaseTestBase { /** - * Test that subqueries as value within conditions are cloned properly. + * Tests that subqueries as value within conditions are cloned properly. */ public function testSelectConditionSubQueryCloning() { $subquery = $this->connection->select('test', 't'); diff --git a/core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php b/core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php index 7f388909d9d4..44ef6ccb4795 100644 --- a/core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php +++ b/core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php @@ -161,7 +161,7 @@ public function testRange() { } /** - * Test whether the range property of a select clause can be undone. + * Tests whether the range property of a select clause can be undone. */ public function testRangeUndo() { $query = $this->connection->select('test'); @@ -395,7 +395,7 @@ public function testSelectWithRowCount() { } /** - * Test that join conditions can use Condition objects. + * Tests that join conditions can use Condition objects. */ public function testJoinConditionObject() { // Same test as testDefaultJoin, but with a Condition object. diff --git a/core/tests/Drupal/KernelTests/Core/Database/SelectSubqueryTest.php b/core/tests/Drupal/KernelTests/Core/Database/SelectSubqueryTest.php index dba7db1ae283..102d26c7223d 100644 --- a/core/tests/Drupal/KernelTests/Core/Database/SelectSubqueryTest.php +++ b/core/tests/Drupal/KernelTests/Core/Database/SelectSubqueryTest.php @@ -93,7 +93,8 @@ public function testConditionSubquerySelect() { } /** - * Test that we can use a subquery with a relational operator in a WHERE clause. + * Tests that we can use a subquery with a relational operator in a WHERE + * clause. */ public function testConditionSubquerySelect2() { // Create a subquery, which is just a normal query object. @@ -114,7 +115,8 @@ public function testConditionSubquerySelect2() { } /** - * Test that we can use 2 subqueries with a relational operator in a WHERE clause. + * Tests that we can use 2 subqueries with a relational operator in a WHERE + * clause. */ public function testConditionSubquerySelect3() { // Create subquery 1, which is just a normal query object. @@ -140,7 +142,7 @@ public function testConditionSubquerySelect3() { } /** - * Test that we can use multiple subqueries. + * Tests that we can use multiple subqueries. * * This test uses a subquery at the left hand side and multiple subqueries at * the right hand side. The test query may not be that logical but that's due diff --git a/core/tests/Drupal/KernelTests/Core/Database/TaggingTest.php b/core/tests/Drupal/KernelTests/Core/Database/TaggingTest.php index 93dcf53ef1d7..3a9ea2c7e6e0 100644 --- a/core/tests/Drupal/KernelTests/Core/Database/TaggingTest.php +++ b/core/tests/Drupal/KernelTests/Core/Database/TaggingTest.php @@ -89,7 +89,7 @@ public function testExtenderHasAllTags() { } /** - * Tests extended query tagging "has at least one of these tags" functionality. + * Tests extended query tagging for "has at least one of these tags". */ public function testExtenderHasAnyTag() { $query = $this->connection->select('test') diff --git a/core/tests/Drupal/KernelTests/Core/Database/UpdateComplexTest.php b/core/tests/Drupal/KernelTests/Core/Database/UpdateComplexTest.php index 030464b26c02..40b96e7ece13 100644 --- a/core/tests/Drupal/KernelTests/Core/Database/UpdateComplexTest.php +++ b/core/tests/Drupal/KernelTests/Core/Database/UpdateComplexTest.php @@ -121,7 +121,7 @@ public function testUpdateOnlyExpression() { } /** - * Test UPDATE with a subselect value. + * Tests UPDATE with a subselect value. */ public function testSubSelectUpdate() { $subselect = $this->connection->select('test_task', 't'); diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php index 57e5f5f09b5f..5541ec27c411 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php @@ -193,7 +193,7 @@ public function dataTestDecoupledPendingRevisions() { } /** - * Test decoupled default revisions. + * Tests decoupled default revisions. * * @param array[] $sequence * An array with arrays of arguments for the ::doSaveNewRevision() method as diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityDuplicateTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityDuplicateTest.php index b01f6e439698..c663ebd724b1 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityDuplicateTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityDuplicateTest.php @@ -26,7 +26,7 @@ protected function setUp(): void { } /** - * Test duplicating a non-default revision. + * Tests duplicating a non-default revision. */ public function testDuplicateNonDefaultRevision() { $entity = EntityTestRev::create([ diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityKeysTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityKeysTest.php index 834f04cc27be..79a06c936ffd 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityKeysTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityKeysTest.php @@ -13,7 +13,7 @@ class EntityKeysTest extends EntityKernelTestBase { /** - * Test the cache when multiple keys reference a single field. + * Tests the cache when multiple keys reference a single field. * * @dataProvider multipleKeysCacheTestCases */ diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php index 1cc686a57f26..a3361bd40fe2 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php @@ -108,7 +108,7 @@ protected function setUp(): void { } /** - * Test aggregation support. + * Tests aggregation support. */ public function testAggregation() { // Apply a simple groupby. diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php index a142f9322b82..c1af0b9120a1 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php @@ -155,7 +155,7 @@ protected function setUp(): void { } /** - * Test basic functionality. + * Tests basic functionality. */ public function testEntityQuery() { $greetings = $this->greetings; @@ -377,7 +377,7 @@ public function testEntityQuery() { } /** - * Test sort(). + * Tests sort(). * * Warning: this is complicated. */ @@ -473,7 +473,7 @@ public function testSort() { } /** - * Test tablesort(). + * Tests tablesort(). */ public function testTableSort() { // While ordering on bundles do not give us a definite order, we can still @@ -528,7 +528,7 @@ public function testTableSort() { } /** - * Test that count queries are separated across entity types. + * Tests that count queries are separated across entity types. */ public function testCount() { // Create a field with the same name in a different entity type. @@ -620,7 +620,7 @@ public function testConditionCount() { } /** - * Test queries with delta conditions. + * Tests queries with delta conditions. */ public function testDelta() { $figures = $this->figures; @@ -763,7 +763,7 @@ protected function assertBundleOrder($order) { } /** - * Test adding a tag and metadata to the Entity query object. + * Tests adding a tag and metadata to the Entity query object. * * The tags and metadata should propagate to the SQL query object. */ @@ -779,7 +779,7 @@ public function testMetaData() { } /** - * Test case sensitive and in-sensitive query conditions. + * Tests case sensitive and in-sensitive query conditions. */ public function testCaseSensitivity() { $bundle = $this->randomMachineName(); @@ -1022,7 +1022,7 @@ public function testCaseSensitivity() { } /** - * Test base fields with multiple columns. + * Tests base fields with multiple columns. */ public function testBaseFieldMultipleColumns() { $this->enableModules(['taxonomy']); @@ -1081,7 +1081,7 @@ public function testBaseFieldMultipleColumns() { } /** - * Test pending revisions. + * Tests pending revisions. */ public function testPendingRevisions() { // Ensure entity 14 is returned. @@ -1190,7 +1190,7 @@ public function testPendingRevisions() { } /** - * Test against SQL inject of condition field. This covers a + * Tests against SQL inject of condition field. This covers a * database driver's EntityQuery\Condition class. */ public function testInjectionInCondition() { diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityRevisionsTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityRevisionsTest.php index 1d9b8d9a6881..384d44aa8198 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityRevisionsTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityRevisionsTest.php @@ -36,7 +36,7 @@ protected function setUp(): void { } /** - * Test getLoadedRevisionId() returns the correct ID throughout the process. + * Tests getLoadedRevisionId() returns the correct ID throughout the process. */ public function testLoadedRevisionId() { // Create a basic EntityTestMulRev entity and save it. diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityViewHookTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityViewHookTest.php index 630ff68bd76e..eab7feedcac3 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityViewHookTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityViewHookTest.php @@ -20,7 +20,7 @@ class EntityViewHookTest extends EntityKernelTestBase { /** - * Test hook_entity_display_build_alter(). + * Tests hook_entity_display_build_alter(). */ public function testHookEntityDisplayBuildAlter() { entity_test_create_bundle('display_build_alter_bundle'); diff --git a/core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php b/core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php index aa99a043eace..c8c770ef3a1a 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php @@ -312,7 +312,7 @@ public function testLongNames() { } /** - * Test trying to update a field with data. + * Tests trying to update a field with data. */ public function testUpdateFieldSchemaWithData() { $entity_type = 'entity_test_rev'; @@ -345,7 +345,7 @@ public function testUpdateFieldSchemaWithData() { } /** - * Test that failure to create fields is handled gracefully. + * Tests that failure to create fields is handled gracefully. */ public function testFieldUpdateFailure() { // Create a text field. @@ -384,7 +384,7 @@ public function testFieldUpdateFailure() { } /** - * Test adding and removing indexes while data is present. + * Tests adding and removing indexes while data is present. */ public function testFieldUpdateIndexesWithData() { // Create a decimal field. @@ -441,7 +441,7 @@ public function testFieldUpdateIndexesWithData() { } /** - * Test foreign key support. + * Tests foreign key support. */ public function testFieldSqlStorageForeignKeys() { // Create a 'shape' field, with a configurable foreign key (see diff --git a/core/tests/Drupal/KernelTests/Core/Extension/ModuleConfigureRouteTest.php b/core/tests/Drupal/KernelTests/Core/Extension/ModuleConfigureRouteTest.php index 656e964d9563..e81a11de31b1 100644 --- a/core/tests/Drupal/KernelTests/Core/Extension/ModuleConfigureRouteTest.php +++ b/core/tests/Drupal/KernelTests/Core/Extension/ModuleConfigureRouteTest.php @@ -42,7 +42,7 @@ protected function setUp(): void { } /** - * Test the module configure routes exist. + * Tests the module configure routes exist. * * @dataProvider coreModuleListDataProvider */ diff --git a/core/tests/Drupal/KernelTests/Core/Field/Entity/BaseFieldOverrideTest.php b/core/tests/Drupal/KernelTests/Core/Field/Entity/BaseFieldOverrideTest.php index a944087b201a..9ddfa59acc14 100644 --- a/core/tests/Drupal/KernelTests/Core/Field/Entity/BaseFieldOverrideTest.php +++ b/core/tests/Drupal/KernelTests/Core/Field/Entity/BaseFieldOverrideTest.php @@ -68,7 +68,7 @@ public function getClassTestCases() { } /** - * Test the default value callback. + * Tests the default value callback. */ public function testDefaultValueCallback() { $base_field = BaseFieldDefinition::create('entity_reference') diff --git a/core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php b/core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php index 57b0f0b70745..a496f902d763 100644 --- a/core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php +++ b/core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php @@ -17,7 +17,7 @@ class DirectoryTest extends FileTestBase { /** - * Test local directory handling functions. + * Tests local directory handling functions. */ public function testFileCheckLocalDirectoryHandling() { $site_path = $this->container->getParameter('site.path'); @@ -58,7 +58,7 @@ public function testFileCheckLocalDirectoryHandling() { } /** - * Test directory handling functions. + * Tests directory handling functions. */ public function testFileCheckDirectoryHandling() { // A directory to operate on. diff --git a/core/tests/Drupal/KernelTests/Core/File/FileSaveDataTest.php b/core/tests/Drupal/KernelTests/Core/File/FileSaveDataTest.php index 2153e88cce45..be2059ba3b5b 100644 --- a/core/tests/Drupal/KernelTests/Core/File/FileSaveDataTest.php +++ b/core/tests/Drupal/KernelTests/Core/File/FileSaveDataTest.php @@ -12,7 +12,7 @@ class FileSaveDataTest extends FileTestBase { /** - * Test the file_unmanaged_save_data() function. + * Tests the file_unmanaged_save_data() function. */ public function testFileSaveData() { $contents = $this->randomMachineName(8); diff --git a/core/tests/Drupal/KernelTests/Core/File/MimeTypeTest.php b/core/tests/Drupal/KernelTests/Core/File/MimeTypeTest.php index 4772d3947562..15541a42bd1d 100644 --- a/core/tests/Drupal/KernelTests/Core/File/MimeTypeTest.php +++ b/core/tests/Drupal/KernelTests/Core/File/MimeTypeTest.php @@ -17,7 +17,7 @@ class MimeTypeTest extends FileTestBase { protected static $modules = ['file_test']; /** - * Test mapping of mimetypes from filenames. + * Tests mapping of mimetypes from filenames. */ public function testFileMimeTypeDetection() { $prefixes = ['public://', 'private://', 'temporary://', 'dummy-remote://']; diff --git a/core/tests/Drupal/KernelTests/Core/File/ReadOnlyStreamWrapperTest.php b/core/tests/Drupal/KernelTests/Core/File/ReadOnlyStreamWrapperTest.php index 6c25fab06ec8..5f8d6eadf3fd 100644 --- a/core/tests/Drupal/KernelTests/Core/File/ReadOnlyStreamWrapperTest.php +++ b/core/tests/Drupal/KernelTests/Core/File/ReadOnlyStreamWrapperTest.php @@ -27,7 +27,7 @@ class ReadOnlyStreamWrapperTest extends FileTestBase { protected $classname = 'Drupal\file_test\StreamWrapper\DummyReadOnlyStreamWrapper'; /** - * Test read-only specific behavior. + * Tests read-only specific behavior. */ public function testReadOnlyBehavior() { $type = DummyReadOnlyStreamWrapper::getType(); diff --git a/core/tests/Drupal/KernelTests/Core/File/StreamWrapperTest.php b/core/tests/Drupal/KernelTests/Core/File/StreamWrapperTest.php index e01b6bdf0634..845cebef9f3b 100644 --- a/core/tests/Drupal/KernelTests/Core/File/StreamWrapperTest.php +++ b/core/tests/Drupal/KernelTests/Core/File/StreamWrapperTest.php @@ -46,7 +46,7 @@ public function setUp(): void { } /** - * Test the getClassName() function. + * Tests the getClassName() function. */ public function testGetClassName() { // Check the dummy scheme. @@ -56,7 +56,7 @@ public function testGetClassName() { } /** - * Test the getViaScheme() method. + * Tests the getViaScheme() method. */ public function testGetInstanceByScheme() { $instance = \Drupal::service('stream_wrapper_manager')->getViaScheme($this->scheme); @@ -67,7 +67,7 @@ public function testGetInstanceByScheme() { } /** - * Test the getViaUri() and getViaScheme() methods and target functions. + * Tests the getViaUri() and getViaScheme() methods and target functions. */ public function testUriFunctions() { $config = $this->config('system.file'); @@ -107,7 +107,7 @@ public function testUriFunctions() { } /** - * Test some file handle functions. + * Tests some file handle functions. */ public function testFileFunctions() { $filename = 'public://' . $this->randomMachineName(); @@ -139,7 +139,7 @@ public function testFileFunctions() { } /** - * Test the scheme functions. + * Tests the scheme functions. */ public function testGetValidStreamScheme() { diff --git a/core/tests/Drupal/KernelTests/Core/File/UrlRewritingTest.php b/core/tests/Drupal/KernelTests/Core/File/UrlRewritingTest.php index 69f0641329bc..fdabb1a3f83e 100644 --- a/core/tests/Drupal/KernelTests/Core/File/UrlRewritingTest.php +++ b/core/tests/Drupal/KernelTests/Core/File/UrlRewritingTest.php @@ -94,7 +94,7 @@ public function testPublicManagedFileURL() { } /** - * Test file_url_transform_relative(). + * Tests file_url_transform_relative(). */ public function testRelativeFileURL() { // Disable file_test.module's hook_file_url_alter() implementation. diff --git a/core/tests/Drupal/KernelTests/Core/Messenger/MessengerTest.php b/core/tests/Drupal/KernelTests/Core/Messenger/MessengerTest.php index e244e05e044c..b81395c9d77a 100644 --- a/core/tests/Drupal/KernelTests/Core/Messenger/MessengerTest.php +++ b/core/tests/Drupal/KernelTests/Core/Messenger/MessengerTest.php @@ -124,7 +124,7 @@ public function testAddWithDuplicates() { } /** - * Test adding markup. + * Tests adding markup. * * @covers ::addStatus * @covers ::deleteByType diff --git a/core/tests/Drupal/KernelTests/Core/ParamConverter/EntityConverterLatestRevisionTest.php b/core/tests/Drupal/KernelTests/Core/ParamConverter/EntityConverterLatestRevisionTest.php index 5af86b2ad84c..9e06a63b20ff 100644 --- a/core/tests/Drupal/KernelTests/Core/ParamConverter/EntityConverterLatestRevisionTest.php +++ b/core/tests/Drupal/KernelTests/Core/ParamConverter/EntityConverterLatestRevisionTest.php @@ -175,7 +175,7 @@ public function testOptimizedConvert() { } /** - * Test the latest revision flag and non-revisionable entities. + * Tests the latest revision flag and non-revisionable entities. */ public function testConvertNonRevisionableEntityType() { $entity = EntityTest::create(); diff --git a/core/tests/Drupal/KernelTests/Core/Plugin/FactoryTest.php b/core/tests/Drupal/KernelTests/Core/Plugin/FactoryTest.php index 612884e8e0cc..015dff01bbdb 100644 --- a/core/tests/Drupal/KernelTests/Core/Plugin/FactoryTest.php +++ b/core/tests/Drupal/KernelTests/Core/Plugin/FactoryTest.php @@ -17,7 +17,7 @@ class FactoryTest extends PluginTestBase { protected static $modules = ['node', 'user']; /** - * Test that DefaultFactory can create a plugin instance. + * Tests that DefaultFactory can create a plugin instance. */ public function testDefaultFactory() { // Ensure a non-derivative plugin can be instantiated. @@ -37,7 +37,7 @@ public function testDefaultFactory() { } /** - * Test that the Reflection factory can create a plugin instance. + * Tests that the Reflection factory can create a plugin instance. * * The mock plugin classes use different values for their constructors * allowing us to test the reflection capabilities as well. diff --git a/core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php b/core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php index db3086cb489e..e1960708c5d9 100644 --- a/core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php +++ b/core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php @@ -111,7 +111,7 @@ public function testThemeTableWithNoStriping() { } /** - * Test that the 'footer' option works correctly. + * Tests that the 'footer' option works correctly. */ public function testThemeTableFooter() { $footer = [ diff --git a/core/tests/Drupal/KernelTests/Core/Render/Element/WeightTest.php b/core/tests/Drupal/KernelTests/Core/Render/Element/WeightTest.php index 018c1d1c6d00..0f03ec2d783e 100644 --- a/core/tests/Drupal/KernelTests/Core/Render/Element/WeightTest.php +++ b/core/tests/Drupal/KernelTests/Core/Render/Element/WeightTest.php @@ -28,7 +28,7 @@ protected function setUp(): void { } /** - * Test existing #default_value value in #options list. + * Tests existing #default_value value in #options list. * * @covers ::processWeight */ @@ -52,7 +52,7 @@ public function testProcessWeight() { } /** - * Test transformation from "select" to "number" for MAX_DELTA + 1. + * Tests transformation from "select" to "number" for MAX_DELTA + 1. * * @throws \Exception * diff --git a/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php b/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php index fbf26e08e0ca..fac83cd2b847 100644 --- a/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php +++ b/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php @@ -640,7 +640,7 @@ public function testRouteCaching() { } /** - * Test RouteProvider::getRouteByName() and RouteProvider::getRoutesByNames(). + * Tests RouteProvider::getRouteByName() & RouteProvider::getRoutesByNames(). */ public function testRouteByName() { $connection = Database::getConnection(); diff --git a/core/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php b/core/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php index 2cd32e6c8d24..783a0ec9bc26 100644 --- a/core/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php +++ b/core/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php @@ -193,7 +193,7 @@ public function register(ContainerBuilder $container) { } /** - * Test template invalidation. + * Tests template invalidation. */ public function testTemplateInvalidation() { $template_before = <<<TWIG diff --git a/core/tests/Drupal/KernelTests/Core/TypedData/RecursiveContextualValidatorTest.php b/core/tests/Drupal/KernelTests/Core/TypedData/RecursiveContextualValidatorTest.php index 8ba4784807b4..d43cd7d7a1a0 100644 --- a/core/tests/Drupal/KernelTests/Core/TypedData/RecursiveContextualValidatorTest.php +++ b/core/tests/Drupal/KernelTests/Core/TypedData/RecursiveContextualValidatorTest.php @@ -43,7 +43,7 @@ public function testRecursiveValidate() { } /** - * Test recursive propagation of violations. + * Tests recursive propagation of violations. */ public function testRecursiveViolationPropagation() { // We create an entity reference field with a constraint which will diff --git a/core/tests/Drupal/Tests/Component/Annotation/AnnotatedClassDiscoveryCachedTest.php b/core/tests/Drupal/Tests/Component/Annotation/AnnotatedClassDiscoveryCachedTest.php index 942edd3bf240..17c4202c6fc5 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/AnnotatedClassDiscoveryCachedTest.php +++ b/core/tests/Drupal/Tests/Component/Annotation/AnnotatedClassDiscoveryCachedTest.php @@ -26,7 +26,7 @@ protected function setUp(): void { } /** - * Test that getDefinitions() retrieves the file cache correctly. + * Tests that getDefinitions() retrieves the file cache correctly. * * @covers ::getDefinitions */ diff --git a/core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php b/core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php index b37a2bfde4f6..b117bcf8bce6 100644 --- a/core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php +++ b/core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php @@ -237,14 +237,14 @@ public function testAssertAllObjects() { } /** - * Test method referenced by ::testAllCallable(). + * Defines a test method referenced by ::testAllCallable(). */ public function callMe() { return TRUE; } /** - * Test method referenced by ::testAllCallable(). + * Defines a test method referenced by ::testAllCallable(). */ public static function callMeStatic() { return TRUE; diff --git a/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php b/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php index 30330574a454..5918bafece67 100644 --- a/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php +++ b/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php @@ -12,7 +12,7 @@ class DateTimePlusTest extends TestCase { /** - * Test creating dates from string and array input. + * Tests creating dates from string and array input. * * @param mixed $input * Input argument for DateTimePlus. @@ -34,7 +34,7 @@ public function testDates($input, $timezone, $expected) { } /** - * Test creating dates from string and array input. + * Tests creating dates from string and array input. * * @param mixed $input * Input argument for DateTimePlus. @@ -56,7 +56,7 @@ public function testDateArrays($input, $timezone, $expected) { } /** - * Test date diffs. + * Tests date diffs. * * @param mixed $input1 * A DateTimePlus object. @@ -75,7 +75,7 @@ public function testDateDiff($input1, $input2, $absolute, \DateInterval $expecte } /** - * Test date diff exception caused by invalid input. + * Tests date diff exception caused by invalid input. * * @param mixed $input1 * A DateTimePlus object. @@ -93,7 +93,7 @@ public function testInvalidDateDiff($input1, $input2, $absolute) { } /** - * Test creating dates from invalid array input. + * Tests creating dates from invalid array input. * * @param mixed $input * Input argument for DateTimePlus. @@ -130,7 +130,7 @@ public function testCheckArray(array $array, $expected) { } /** - * Test creating dates from timestamps, and manipulating timezones. + * Tests creating dates from timestamps, and manipulating timezones. * * @param int $input * Input argument for DateTimePlus::createFromTimestamp(). @@ -164,7 +164,7 @@ public function testTimestamp($input, array $initial, array $transform) { } /** - * Test creating dates from datetime strings. + * Tests creating dates from datetime strings. * * @param string $input * Input argument for DateTimePlus(). @@ -224,7 +224,7 @@ public function assertDateTimestamp($date, $input, $initial, $transform) { } /** - * Test creating dates from format strings. + * Tests creating dates from format strings. * * @param string $input * Input argument for DateTimePlus. @@ -245,7 +245,7 @@ public function testDateFormat($input, $timezone, $format, $format_date, $expect } /** - * Test invalid date handling. + * Tests invalid date handling. * * @param mixed $input * Input argument for DateTimePlus. @@ -287,8 +287,7 @@ public function testDateTimezone($input, $timezone, $expected_timezone, $message } /** - * Test that DrupalDateTime can detect the right timezone to use when - * constructed from a datetime object. + * Tests DrupalDateTime with a datetime object. */ public function testDateTimezoneWithDateTimeObject() { // Create a date object with another date object. diff --git a/core/tests/Drupal/Tests/Component/Graph/GraphTest.php b/core/tests/Drupal/Tests/Component/Graph/GraphTest.php index bd56a94f9cc9..0d64cbf0240a 100644 --- a/core/tests/Drupal/Tests/Component/Graph/GraphTest.php +++ b/core/tests/Drupal/Tests/Component/Graph/GraphTest.php @@ -12,7 +12,7 @@ class GraphTest extends TestCase { /** - * Test depth-first-search features. + * Tests depth-first-search features. */ public function testDepthFirstSearch() { // The sample graph used is: diff --git a/core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php b/core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php index 23e8467291f2..a22655c1f986 100644 --- a/core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php +++ b/core/tests/Drupal/Tests/Component/HttpFoundation/SecuredRedirectResponseTest.php @@ -21,7 +21,7 @@ class SecuredRedirectResponseTest extends TestCase { /** - * Test copying of redirect response. + * Tests copying of redirect response. * * @covers ::createFromRedirectResponse * @covers ::fromResponse diff --git a/core/tests/Drupal/Tests/Component/Serialization/JsonTest.php b/core/tests/Drupal/Tests/Component/Serialization/JsonTest.php index 34a00712ab5e..2876661d2f8d 100644 --- a/core/tests/Drupal/Tests/Component/Serialization/JsonTest.php +++ b/core/tests/Drupal/Tests/Component/Serialization/JsonTest.php @@ -95,7 +95,7 @@ public function testReversibility() { } /** - * Test the reversibility of structured data. + * Tests the reversibility of structured data. */ public function testStructuredReversibility() { // Verify reversibility for structured data. Also verify that necessary diff --git a/core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php b/core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php index b44481b348c4..0f7bf2bb1743 100644 --- a/core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php +++ b/core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php @@ -552,7 +552,7 @@ protected function dataEnhanceWithPrefix(array $urls) { } /** - * Test detecting external urls that point to local resources. + * Tests detecting external urls that point to local resources. * * @param string $url * The external url to test. @@ -607,7 +607,7 @@ public function providerTestExternalIsLocal() { } /** - * Test invalid url arguments. + * Tests invalid url arguments. * * @param string $url * The url to test. diff --git a/core/tests/Drupal/Tests/Component/Utility/UserAgentTest.php b/core/tests/Drupal/Tests/Component/Utility/UserAgentTest.php index f18d071df1d5..67f5fee6aa84 100644 --- a/core/tests/Drupal/Tests/Component/Utility/UserAgentTest.php +++ b/core/tests/Drupal/Tests/Component/Utility/UserAgentTest.php @@ -65,7 +65,7 @@ protected function getMappings() { } /** - * Test matching language from user agent. + * Tests matching language from user agent. * * @dataProvider providerTestGetBestMatchingLangcode * @covers ::getBestMatchingLangcode diff --git a/core/tests/Drupal/Tests/Composer/Generator/BuilderTest.php b/core/tests/Drupal/Tests/Composer/Generator/BuilderTest.php index c246827d0c69..639f8218d789 100644 --- a/core/tests/Drupal/Tests/Composer/Generator/BuilderTest.php +++ b/core/tests/Drupal/Tests/Composer/Generator/BuilderTest.php @@ -16,7 +16,7 @@ class BuilderTest extends TestCase { /** - * Test data for testBuilder. + * Provides test data for testBuilder. */ public function builderTestData() { return [ @@ -82,7 +82,7 @@ public function builderTestData() { } /** - * Test all of the various kinds of builders. + * Tests all of the various kinds of builders. * * @dataProvider builderTestData */ diff --git a/core/tests/Drupal/Tests/Composer/Generator/MetapackageUpdateTest.php b/core/tests/Drupal/Tests/Composer/Generator/MetapackageUpdateTest.php index 8a8ee84cd912..80d4f73799b4 100644 --- a/core/tests/Drupal/Tests/Composer/Generator/MetapackageUpdateTest.php +++ b/core/tests/Drupal/Tests/Composer/Generator/MetapackageUpdateTest.php @@ -18,7 +18,7 @@ class MetapackageUpdateTest extends TestCase { /** - * Test data for testUpdated. + * Provides test data for testUpdated. */ public function updatedTestData() { return [ @@ -38,7 +38,7 @@ public function updatedTestData() { } /** - * Test to see if the generated metapackages are in sync with composer.lock. + * Tests to see if the generated metapackages are in sync with composer.lock. * * Note that this is not a test of code correctness, but rather it merely * confirms if the package builder was used on the most recent set of diff --git a/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php b/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php index 6f351eeb4eb0..fb5651b16b1d 100644 --- a/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php +++ b/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php @@ -68,7 +68,7 @@ protected function tearDown(): void { } /** - * Test to see if scaffold operation runs at the correct times. + * Tests to see if scaffold operation runs at the correct times. */ public function testComposerHooks() { $topLevelProjectDir = 'composer-hooks-fixture'; @@ -126,7 +126,7 @@ public function testComposerHooks() { } /** - * Test to see if scaffold messages are omitted when running scaffold twice. + * Tests to see if scaffold messages are omitted when running scaffold twice. */ public function testScaffoldMessagesDoNotPrintTwice() { $topLevelProjectDir = 'drupal-drupal'; diff --git a/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ManageGitIgnoreTest.php b/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ManageGitIgnoreTest.php index eabbb1f8e98d..7ea7e90d313c 100644 --- a/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ManageGitIgnoreTest.php +++ b/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ManageGitIgnoreTest.php @@ -160,7 +160,7 @@ public function testUnmanagedGitIgnoreWhenDisabled() { } /** - * Test appending to an unmanaged file, and confirm it is not .gitignored. + * Tests appending to an unmanaged file, and confirm it is not .gitignored. * * If we append to an unmanaged (not scaffolded) file, and we are managing * .gitignore files, then we expect that the unmanaged file should not be diff --git a/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php b/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php index 52b0e18ff320..77ab06c3a768 100644 --- a/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php +++ b/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php @@ -254,7 +254,7 @@ public function testDrupalDrupalFileWasReplaced() { } /** - * Test values for testDrupalDrupalFileWasAppended. + * Provides test values for testDrupalDrupalFileWasAppended. */ public function scaffoldAppendTestValues() { return array_merge( @@ -277,7 +277,7 @@ public function scaffoldAppendTestValues() { } /** - * Test values to run both with $is_link FALSE and $is_link TRUE. + * Tests values to run both with $is_link FALSE and $is_link TRUE. * * @param bool $is_link * Whether or not symlinking should be used. diff --git a/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldUpgradeTest.php b/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldUpgradeTest.php index 3127d6e4a17c..29f50fa13b80 100644 --- a/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldUpgradeTest.php +++ b/core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldUpgradeTest.php @@ -42,7 +42,7 @@ protected function setUp(): void { } /** - * Test upgrading the Composer Scaffold plugin. + * Tests upgrading the Composer Scaffold plugin. */ public function testScaffoldUpgrade() { $composerVersionLine = exec('composer --version'); diff --git a/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php b/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php index 9ec3e281af90..167a62fc297f 100644 --- a/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php @@ -297,7 +297,7 @@ public function providerTestCheckConjunctions() { } /** - * Test \Drupal\Core\Access\AccessManager::check() with conjunctions. + * Tests \Drupal\Core\Access\AccessManager::check() with conjunctions. * * @dataProvider providerTestCheckConjunctions */ diff --git a/core/tests/Drupal/Tests/Core/Access/AccessResultForbiddenTest.php b/core/tests/Drupal/Tests/Core/Access/AccessResultForbiddenTest.php index 3409f379712c..0c42d2c191e3 100644 --- a/core/tests/Drupal/Tests/Core/Access/AccessResultForbiddenTest.php +++ b/core/tests/Drupal/Tests/Core/Access/AccessResultForbiddenTest.php @@ -28,7 +28,7 @@ public function testConstruction() { } /** - * Test setReason() + * Tests setReason() * * @covers ::setReason */ diff --git a/core/tests/Drupal/Tests/Core/Access/AccessResultNeutralTest.php b/core/tests/Drupal/Tests/Core/Access/AccessResultNeutralTest.php index 5b96b199d0e7..684528cecb24 100644 --- a/core/tests/Drupal/Tests/Core/Access/AccessResultNeutralTest.php +++ b/core/tests/Drupal/Tests/Core/Access/AccessResultNeutralTest.php @@ -27,7 +27,7 @@ public function testConstruction() { } /** - * Test setReason() + * Tests setReason() * * @covers ::setReason */ diff --git a/core/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php b/core/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php index 896dd4004f26..d5be432e5b7d 100644 --- a/core/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php +++ b/core/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php @@ -56,7 +56,7 @@ protected function setUp(): void { } /** - * Test the access method. + * Tests the access method. */ public function testAccess() { $route_match = $this->createMock('Drupal\Core\Routing\RouteMatchInterface'); diff --git a/core/tests/Drupal/Tests/Core/Access/DefaultAccessCheckTest.php b/core/tests/Drupal/Tests/Core/Access/DefaultAccessCheckTest.php index 827beedac60d..addef57973f0 100644 --- a/core/tests/Drupal/Tests/Core/Access/DefaultAccessCheckTest.php +++ b/core/tests/Drupal/Tests/Core/Access/DefaultAccessCheckTest.php @@ -39,7 +39,7 @@ protected function setUp(): void { } /** - * Test the access method. + * Tests the access method. */ public function testAccess() { $request = new Request([]); diff --git a/core/tests/Drupal/Tests/Core/Cache/BackendChainImplementationUnitTest.php b/core/tests/Drupal/Tests/Core/Cache/BackendChainImplementationUnitTest.php index e977d9e7e956..10a209e88b1b 100644 --- a/core/tests/Drupal/Tests/Core/Cache/BackendChainImplementationUnitTest.php +++ b/core/tests/Drupal/Tests/Core/Cache/BackendChainImplementationUnitTest.php @@ -81,7 +81,7 @@ protected function setUp(): void { } /** - * Test the get feature. + * Tests the get feature. */ public function testGet() { $cached = $this->chain->get('t123'); @@ -98,7 +98,7 @@ public function testGet() { } /** - * Test the get multiple feature. + * Tests the get multiple feature. */ public function testGetMultiple() { $cids = ['t123', 't23', 't3', 't4']; @@ -116,7 +116,7 @@ public function testGetMultiple() { } /** - * Test that set will propagate. + * Tests that set will propagate. */ public function testSet() { $this->chain->set('test', 123); @@ -135,7 +135,7 @@ public function testSet() { } /** - * Test that delete will propagate. + * Tests that delete will propagate. */ public function testDelete() { $this->chain->set('test', 5); @@ -192,7 +192,8 @@ public function testGetMultipleHasPropagated() { } /** - * Test that the delete all operation is propagated to all backends in the chain. + * Tests that the delete all operation is propagated to all backends in the + * chain. */ public function testDeleteAllPropagation() { // Set both expiring and permanent keys. @@ -209,7 +210,7 @@ public function testDeleteAllPropagation() { } /** - * Test that the delete tags operation is propagated to all backends + * Tests that the delete tags operation is propagated to all backends * in the chain. */ public function testDeleteTagsPropagation() { @@ -286,7 +287,7 @@ public function testDeleteTagsPropagation() { } /** - * Test that removing bin propagates to all backends. + * Tests that removing bin propagates to all backends. */ public function testRemoveBin() { $chain = new BackendChain(); diff --git a/core/tests/Drupal/Tests/Core/Cache/CacheFactoryTest.php b/core/tests/Drupal/Tests/Core/Cache/CacheFactoryTest.php index 40dcd8265751..2876d7177b36 100644 --- a/core/tests/Drupal/Tests/Core/Cache/CacheFactoryTest.php +++ b/core/tests/Drupal/Tests/Core/Cache/CacheFactoryTest.php @@ -14,7 +14,7 @@ class CacheFactoryTest extends UnitTestCase { /** - * Test that the cache factory falls back to the built-in default service. + * Tests that the cache factory falls back to the built-in default service. * * @covers ::__construct * @covers ::get @@ -40,7 +40,7 @@ public function testCacheFactoryWithDefaultSettings() { } /** - * Test that the cache factory falls back to customized default service. + * Tests that the cache factory falls back to customized default service. * * @covers ::__construct * @covers ::get @@ -70,7 +70,7 @@ public function testCacheFactoryWithCustomizedDefaultBackend() { } /** - * Test that the cache factory uses the correct default bin backend. + * Tests that the cache factory uses the correct default bin backend. * * @covers ::__construct * @covers ::get @@ -106,7 +106,7 @@ public function testCacheFactoryWithDefaultBinBackend() { } /** - * Test that the cache factory picks the correct per-bin service. + * Tests that the cache factory picks the correct per-bin service. * * @covers ::__construct * @covers ::get diff --git a/core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php b/core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php index 5827622f2287..b59e996f9af1 100644 --- a/core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php +++ b/core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php @@ -103,7 +103,7 @@ public function testAddCacheTags() { } /** - * Test valid and invalid values as max age. + * Tests valid and invalid values as max age. * * @covers ::setCacheMaxAge * @dataProvider providerSetCacheMaxAge diff --git a/core/tests/Drupal/Tests/Core/Common/AttributesTest.php b/core/tests/Drupal/Tests/Core/Common/AttributesTest.php index 24439ee8a03c..e96704038927 100644 --- a/core/tests/Drupal/Tests/Core/Common/AttributesTest.php +++ b/core/tests/Drupal/Tests/Core/Common/AttributesTest.php @@ -57,7 +57,7 @@ public function testDrupalAttributes($attributes, $expected, $message) { } /** - * Test attribute iteration. + * Tests attribute iteration. */ public function testAttributeIteration() { $attribute = new Attribute(['key1' => 'value1']); @@ -67,7 +67,7 @@ public function testAttributeIteration() { } /** - * Test AttributeValueBase copy. + * Tests AttributeValueBase copy. */ public function testAttributeValueBaseCopy() { $original_attributes = new Attribute([ diff --git a/core/tests/Drupal/Tests/Core/Config/CachedStorageTest.php b/core/tests/Drupal/Tests/Core/Config/CachedStorageTest.php index 9d4d8a1993c6..8c1b18dbcef5 100644 --- a/core/tests/Drupal/Tests/Core/Config/CachedStorageTest.php +++ b/core/tests/Drupal/Tests/Core/Config/CachedStorageTest.php @@ -19,7 +19,7 @@ class CachedStorageTest extends UnitTestCase { protected $cacheFactory; /** - * Test listAll static cache. + * Tests listAll static cache. */ public function testListAllStaticCache() { $prefix = __FUNCTION__; diff --git a/core/tests/Drupal/Tests/Core/Config/NullStorageTest.php b/core/tests/Drupal/Tests/Core/Config/NullStorageTest.php index c281ebf4816e..9cb15a81f5ba 100644 --- a/core/tests/Drupal/Tests/Core/Config/NullStorageTest.php +++ b/core/tests/Drupal/Tests/Core/Config/NullStorageTest.php @@ -14,7 +14,7 @@ class NullStorageTest extends UnitTestCase { /** - * Test createCollection. + * Tests createCollection. */ public function testCollection() { $nullStorage = new NullStorage(); diff --git a/core/tests/Drupal/Tests/Core/Database/ConditionTest.php b/core/tests/Drupal/Tests/Core/Database/ConditionTest.php index 614a501d1cb1..9c8072664b74 100644 --- a/core/tests/Drupal/Tests/Core/Database/ConditionTest.php +++ b/core/tests/Drupal/Tests/Core/Database/ConditionTest.php @@ -182,7 +182,7 @@ public function providerTestCompileWithSqlInjectionForOperator() { } /** - * Test that the core Condition can be overridden. + * Tests that the core Condition can be overridden. */ public function testContribCondition() { $mockCondition = $this->getMockBuilder(Condition::class) diff --git a/core/tests/Drupal/Tests/Core/Database/ConnectionTest.php b/core/tests/Drupal/Tests/Core/Database/ConnectionTest.php index ea56736c176a..a60923b15a18 100644 --- a/core/tests/Drupal/Tests/Core/Database/ConnectionTest.php +++ b/core/tests/Drupal/Tests/Core/Database/ConnectionTest.php @@ -349,7 +349,7 @@ public function providerSchema() { } /** - * Test Connection::schema(). + * Tests Connection::schema(). * * @dataProvider providerSchema */ @@ -361,7 +361,7 @@ public function testSchema($expected, $driver, $namespace) { } /** - * Test Connection::destroy(). + * Tests Connection::destroy(). * * @group legacy */ @@ -383,7 +383,7 @@ public function testDestroy() { } /** - * Test Connection::__destruct(). + * Tests Connection::__destruct(). * * @group legacy */ @@ -431,7 +431,7 @@ public function providerMakeComments() { } /** - * Test Connection::makeComments(). + * Tests Connection::makeComments(). * * @dataProvider providerMakeComments */ @@ -458,7 +458,7 @@ public function providerFilterComments() { } /** - * Test Connection::filterComments(). + * Tests Connection::filterComments(). * * @dataProvider providerFilterComments */ diff --git a/core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php b/core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php index 59d9b0f90219..fc2ae36f31be 100644 --- a/core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php +++ b/core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php @@ -205,7 +205,7 @@ public function providerConvertDbUrlToConnectionInfo() { } /** - * Test ::convertDbUrlToConnectionInfo() exception for invalid arguments. + * Tests ::convertDbUrlToConnectionInfo() exception for invalid arguments. * * @dataProvider providerInvalidArgumentsUrlConversion */ @@ -357,7 +357,7 @@ public function providerGetConnectionInfoAsUrl() { } /** - * Test ::getConnectionInfoAsUrl() exception for invalid arguments. + * Tests ::getConnectionInfoAsUrl() exception for invalid arguments. * * @covers ::getConnectionInfoAsUrl * diff --git a/core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php b/core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php index 03f75cca2f5a..2bb856d8e275 100644 --- a/core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php +++ b/core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php @@ -12,7 +12,7 @@ class DrupalDateTimeTest extends UnitTestCase { /** - * Test date diffs. + * Tests date diffs. * * @param mixed $input1 * A DrupalDateTime object. @@ -31,7 +31,7 @@ public function testDateDiff($input1, $input2, $absolute, \DateInterval $expecte } /** - * Test date diff exception caused by invalid input. + * Tests date diff exception caused by invalid input. * * @param mixed $input1 * A DateTimePlus object. diff --git a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php index f5b5e84851d6..680d124e9b85 100644 --- a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php +++ b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php @@ -401,7 +401,8 @@ public function testProcessWithIdAndExtraArguments() { } /** - * Tests consumer method with priority and extra parameters in different order. + * Tests consumer method with priority and extra parameters in different + * order. * * @covers ::process */ diff --git a/core/tests/Drupal/Tests/Core/Error/DrupalLogErrorTest.php b/core/tests/Drupal/Tests/Core/Error/DrupalLogErrorTest.php index 40103f08abba..d9adbd6d194a 100644 --- a/core/tests/Drupal/Tests/Core/Error/DrupalLogErrorTest.php +++ b/core/tests/Drupal/Tests/Core/Error/DrupalLogErrorTest.php @@ -13,7 +13,7 @@ class DrupalLogErrorTest extends UnitTestCase { /** - * Test that fatal errors return a non-zero exit code. + * Tests that fatal errors return a non-zero exit code. */ public function testFatalExitCode() { $script = <<<'EOT' diff --git a/core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php b/core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php index 38c8ee276aa2..0110451d5cc3 100644 --- a/core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php +++ b/core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php @@ -65,7 +65,7 @@ protected function setUp(): void { } /** - * Test destination detection and redirection. + * Tests destination detection and redirection. * * @param \Symfony\Component\HttpFoundation\Request $request * The request object with destination query set. diff --git a/core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php b/core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php index 96652b73340f..a265c6fec980 100644 --- a/core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php +++ b/core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php @@ -48,7 +48,7 @@ public function testInfoParserNonExisting() { } /** - * Test if correct exception is thrown for a broken info file. + * Tests if correct exception is thrown for a broken info file. * * @covers ::parse */ @@ -615,7 +615,7 @@ public function providerCoreIncompatibility() { } /** - * Test a profile info file. + * Tests a profile info file. */ public function testProfile() { $profile = <<<PROFILE_TEST diff --git a/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php b/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php index 21dd3a9002ff..a6170683b822 100644 --- a/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php +++ b/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php @@ -59,7 +59,7 @@ protected function getModuleHandler() { } /** - * Test loading a module. + * Tests loading a module. * * @covers ::load */ @@ -79,7 +79,7 @@ public function testLoadModule() { } /** - * Test loading all modules. + * Tests loading all modules. * * @covers ::loadAll */ @@ -95,7 +95,7 @@ public function testLoadAllModules() { } /** - * Test reload method. + * Tests reload method. * * @covers ::reload */ @@ -130,7 +130,7 @@ public function testModuleReloading() { } /** - * Test isLoaded accessor. + * Tests isLoaded accessor. * * @covers ::isLoaded */ @@ -197,7 +197,7 @@ public function testSetModuleList() { } /** - * Test adding a module. + * Tests adding a module. * * @covers ::addModule * @covers ::add @@ -219,7 +219,7 @@ public function testAddModule() { } /** - * Test adding a profile. + * Tests adding a profile. * * @covers ::addProfile * @covers ::add @@ -242,7 +242,7 @@ public function testAddProfile() { } /** - * Test module exists returns correct module status. + * Tests module exists returns correct module status. * * @covers ::moduleExists */ @@ -294,7 +294,7 @@ public function testLoadInclude() { } /** - * Test invoke methods when module is enabled. + * Tests invoke methods when module is enabled. * * @covers ::invoke */ @@ -306,7 +306,7 @@ public function testInvokeModuleEnabled() { } /** - * Test implementations methods when module is enabled. + * Tests implementations methods when module is enabled. * * @covers ::implementsHook * @covers ::loadAllIncludes @@ -323,7 +323,7 @@ public function testImplementsHookModuleEnabled() { } /** - * Test getImplementations. + * Tests getImplementations. * * @covers ::getImplementations * @covers ::getImplementationInfo @@ -334,7 +334,7 @@ public function testGetImplementations() { } /** - * Test getImplementations. + * Tests getImplementations. * * @covers ::getImplementations * @covers ::getImplementationInfo @@ -367,7 +367,7 @@ public function testCachedGetImplementations() { } /** - * Test getImplementations. + * Tests getImplementations. * * @covers ::getImplementations * @covers ::getImplementationInfo @@ -404,7 +404,7 @@ public function testCachedGetImplementationsMissingMethod() { } /** - * Test invoke all. + * Tests invoke all. * * @covers ::invokeAll */ @@ -416,7 +416,7 @@ public function testInvokeAll() { } /** - * Test that write cache calls through to cache library correctly. + * Tests that write cache calls through to cache library correctly. * * @covers ::writeCache */ @@ -435,7 +435,7 @@ public function testWriteCache() { } /** - * Test hook_hook_info() fetching through getHookInfo(). + * Tests hook_hook_info() fetching through getHookInfo(). * * @covers ::getHookInfo * @covers ::buildHookInfo @@ -464,7 +464,7 @@ public function testGetHookInfo() { } /** - * Test internal implementation cache reset. + * Tests internal implementation cache reset. * * @covers ::resetImplementations */ diff --git a/core/tests/Drupal/Tests/Core/Field/FieldInputValueNormalizerTraitTest.php b/core/tests/Drupal/Tests/Core/Field/FieldInputValueNormalizerTraitTest.php index b6bc4dbf7f9c..855622f24d72 100644 --- a/core/tests/Drupal/Tests/Core/Field/FieldInputValueNormalizerTraitTest.php +++ b/core/tests/Drupal/Tests/Core/Field/FieldInputValueNormalizerTraitTest.php @@ -22,7 +22,7 @@ public function testKeyValueByDelta($input_value, $expected_value, $main_propert } /** - * Test cases for ::testKeyValueByDelta. + * Provides test cases for ::testKeyValueByDelta. */ public function keyValueByDeltaTestCases() { return [ diff --git a/core/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php b/core/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php index c7a2654aa814..5ab5316a4e50 100644 --- a/core/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php +++ b/core/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php @@ -49,7 +49,7 @@ public function testWaitTrue() { } /** - * Test the getLockId() method. + * Tests the getLockId() method. */ public function testGetLockId() { $lock_id = $this->lock->getLockId(); diff --git a/core/tests/Drupal/Tests/Core/Logger/LogMessageParserTest.php b/core/tests/Drupal/Tests/Core/Logger/LogMessageParserTest.php index 395517f51fa5..996ea54c2fb7 100644 --- a/core/tests/Drupal/Tests/Core/Logger/LogMessageParserTest.php +++ b/core/tests/Drupal/Tests/Core/Logger/LogMessageParserTest.php @@ -12,7 +12,7 @@ class LogMessageParserTest extends UnitTestCase { /** - * Test for LogMessageParserTrait::parseMessagePlaceholders() + * Tests for LogMessageParserTrait::parseMessagePlaceholders() * * @param array $value * An array containing: diff --git a/core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php b/core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php index 26b2a385bf8a..2c26a197da27 100644 --- a/core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php +++ b/core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php @@ -77,7 +77,7 @@ public function testWithinBounds() { } /** - * Test a password needs update. + * Tests a password needs update. * * @covers ::needsRehash */ @@ -87,7 +87,7 @@ public function testPasswordNeedsUpdate() { } /** - * Test password hashing. + * Tests password hashing. * * @covers ::hash * @covers ::getCountLog2 diff --git a/core/tests/Drupal/Tests/Core/Path/PathMatcherTest.php b/core/tests/Drupal/Tests/Core/Path/PathMatcherTest.php index 938356ce3010..f844728f955d 100644 --- a/core/tests/Drupal/Tests/Core/Path/PathMatcherTest.php +++ b/core/tests/Drupal/Tests/Core/Path/PathMatcherTest.php @@ -36,7 +36,7 @@ protected function setUp(): void { } /** - * Test that standard paths works with multiple patterns. + * Tests that standard paths works with multiple patterns. * * @dataProvider getMatchPathData */ diff --git a/core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorFrontTest.php b/core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorFrontTest.php index 606ffae69894..eac05d59f337 100644 --- a/core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorFrontTest.php +++ b/core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorFrontTest.php @@ -18,7 +18,7 @@ class PathProcessorFrontTest extends UnitTestCase { /** - * Test basic inbound processing functionality. + * Tests basic inbound processing functionality. * * @covers ::processInbound * @dataProvider providerProcessInbound @@ -52,7 +52,7 @@ public function providerProcessInbound() { } /** - * Test inbound failure with broken config. + * Tests inbound failure with broken config. * * @covers ::processInbound */ @@ -69,7 +69,7 @@ public function testProcessInboundBadConfig() { } /** - * Test basic outbound processing functionality. + * Tests basic outbound processing functionality. * * @covers ::processOutbound * @dataProvider providerProcessOutbound diff --git a/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php b/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php index 27414bb42451..1c537f3f7aac 100644 --- a/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php +++ b/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php @@ -452,7 +452,8 @@ public function testBaseURLGeneration() { } /** - * Test that the 'scheme' route requirement is respected during url generation. + * Tests that the 'scheme' route requirement is respected during url + * generation. */ public function testUrlGenerationWithHttpsRequirement() { $url = $this->generator->generate('test_4', [], TRUE); diff --git a/core/tests/Drupal/Tests/Core/Serialization/YamlTest.php b/core/tests/Drupal/Tests/Core/Serialization/YamlTest.php index 2e153a9c5e31..d3e6d80d370e 100644 --- a/core/tests/Drupal/Tests/Core/Serialization/YamlTest.php +++ b/core/tests/Drupal/Tests/Core/Serialization/YamlTest.php @@ -14,7 +14,7 @@ class YamlTest extends UnitTestCase { /** - * Test that the overridden serializer is called. + * Tests that the overridden serializer is called. * * @covers ::getSerializer * @runInSeparateProcess diff --git a/core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php b/core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php index c22052113922..6752ee145bcd 100644 --- a/core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php +++ b/core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php @@ -87,7 +87,7 @@ public function testUnknownContentTypeButAjaxRequest() { } /** - * Test that handle() correctly hands off to sub application. + * Tests that handle() correctly hands off to sub application. * * @covers ::handle */ diff --git a/core/tests/Drupal/Tests/Core/Test/BrowserTestBaseTest.php b/core/tests/Drupal/Tests/Core/Test/BrowserTestBaseTest.php index 2294def45c68..b377393c264e 100644 --- a/core/tests/Drupal/Tests/Core/Test/BrowserTestBaseTest.php +++ b/core/tests/Drupal/Tests/Core/Test/BrowserTestBaseTest.php @@ -103,7 +103,7 @@ public function testGetHttpClientException() { } /** - * Test that tearDown doesn't call cleanupEnvironment if setUp is not called. + * Tests that tearDown doesn't call cleanupEnvironment if setUp is not called. * * @covers ::tearDown */ diff --git a/core/tests/Drupal/Tests/Core/Test/JUnitConverterTest.php b/core/tests/Drupal/Tests/Core/Test/JUnitConverterTest.php index 7ae45e2fe8f8..7a001972f694 100644 --- a/core/tests/Drupal/Tests/Core/Test/JUnitConverterTest.php +++ b/core/tests/Drupal/Tests/Core/Test/JUnitConverterTest.php @@ -22,7 +22,7 @@ class JUnitConverterTest extends UnitTestCase { /** - * Test errors reported. + * Tests errors reported. * @covers ::xmlToRows */ public function testXmlToRowsWithErrors() { diff --git a/core/tests/Drupal/Tests/Core/Test/PhpUnitAutoloaderTest.php b/core/tests/Drupal/Tests/Core/Test/PhpUnitAutoloaderTest.php index a6d30b23b8ed..919d588cc656 100644 --- a/core/tests/Drupal/Tests/Core/Test/PhpUnitAutoloaderTest.php +++ b/core/tests/Drupal/Tests/Core/Test/PhpUnitAutoloaderTest.php @@ -12,7 +12,7 @@ class PhpUnitAutoloaderTest extends UnitTestCase { /** - * Test loading of classes provided by test sub modules. + * Tests loading of classes provided by test sub modules. */ public function testPhpUnitTestClassesLoading() { $this->assertTrue(class_exists('\Drupal\phpunit_test\PhpUnitTestDummyClass'), 'Class provided by test module was not autoloaded.'); diff --git a/core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php b/core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php index ce68766de5aa..4b9ad67d3cb3 100644 --- a/core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php +++ b/core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php @@ -15,7 +15,7 @@ class PhpUnitTestRunnerTest extends UnitTestCase { /** - * Test an error in the test running phase. + * Tests an error in the test running phase. * * @covers ::runTests */ -- GitLab