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 63bebe4bf9ae58181504a8d99f8dd6803e0cfbcf..ee6f39740366bd4f3e732796db6c09a1289cf785 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 c58d3c5a761986144d4107485b9774375763e8b7..85a6977d4232b2c6c08066cccc50fff8bf9cbd0a 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 cc5f8660c2c9494b08ee309574a2ff7be791b57d..8bf1244e353ecdbc07365371635e2b4ed8b7e087 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 4ceeb31838c0790d9593e73ce8d987a59cefb0a4..fd13616ef10025ce3b32b383c2729538fdbf29de 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 bbee49efba6b57f660eed3174be0432e36967e4c..9c5be013cc4d8929677f5f36ccef702cadc97c59 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 3cf3ae391457f95e482e716f8cd4600e43e0e5f9..2780507a97f4d2486373c0687394c09565b2bb4e 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 0219068ce88e22f4cdda1820f80a0aea782c7a73..0b2da48d46f29e2f6e77038ce3be3e573478759c 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 a4734aaf82d00f354adadab6b616e2f8dfb4ff64..7fe4b98d03499c5be9cb0c48d5e11c8806fc4c2c 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 8d01a18ae8726b3ac70b3b063c21f5baf95781d6..9ed66f3ed6276862cd6a9227507ec0f873dda702 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 3983e752e17983f920280a8c45369fa32d7e6fb5..fa1bb4d9eaf9bd332d8ed06ed7582dd31fa2dce2 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 91e1a7f7601029552c8e298f051392c9c2b33dfe..c976b51a633862178b80717dee9bf9c29856483b 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 30c961ef6e041fd8ef131883fd0c828111f6f295..12511592dd3e31cfe9f6c9fe25e62ade5189e945 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 a3d1551ffdb134f58771aa510de6826c484d9e0e..7da71c9804eef9ceab115ec12dab4365f77eb7a0 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 3f902a75f5946056e6945f41d3e7c7b32bc99782..474ce3343dc5f5804cef098554615fb5ff0184c9 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 01b77b1eb3257a2dfedab8cd6156d314d75c7148..2550cf16a889989cf7be912d88fb54256c976d12 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 4cb059664560c34f9b08afee05cc994e96e462d1..d701db1cfbe0f317e38d31719a8aa7b7f257a009 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 1b7cc7fd5d094a02257d5615aa1cc729c7115ea7..738a809355ecec9ed3ac8597321e1da345ffc093 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 6fe621986860e6c12127732c0d1e600a28583e4c..d5d773d36a40ba8d50da61da2ec32e8180feb1f1 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 149e6ce51341c417eaf1ef5613e4a4970f895385..65a48edfb8da7c55515669a852ad2e001bfa7213 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 fbe755d3eb458d508c3322e17b89e5f8ee4a4cf4..3bb64e482c4efc80c33df1e01a1967ec73f92112 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 6b621d9ceee1581ec5f34914162f7fb7abcaeec5..29b880f549de66d507ef453084dcd825fec42208 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 2565807db588bf82deab3052d65375d526ca69f0..1de3df5f7e5fb4510756a789836e5b44b448004f 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 83983a0e196d2e3e81676a023652c00ac79bd9f6..1920855e3525fcbb93c6a631df87b3cdfaaa360c 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 efef5f8de3aa83ba90a16f3ec6872767573bfadb..5d187e93fcc9bd39f90d04cd5c93a68671ea36d0 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 d5de08db411e7c78f981704b52238476ac267476..e5d308d682d062576971abc14b2d3400a6a0fa47 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 1ecf188ea7474f20e86f69cfb760d7f96c8ad87f..8be8687d1c63d84e02076ccf5a01602816dcb0b8 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 574f65547061ee2f17c3f5431831540b5c3ae980..d712206dfc96a6458a1e4b118fc25b582c4c8b57 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 7bf62d59c390d411f358496839326ca51ce0d6cb..2c5da6b6894c9e97b35c2abed4cfc4c6bd9e40e6 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 938f2470952eb72914314730a8d1409826b431b0..ec179148853756765b4dfd9b5fc66ea63115c9b7 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 c3d5c6898fa495672bfa6c2e0f2cf97015462aa5..db3e22fdb179f2a9966d0f851484f9898d910bb3 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 2695f1bdec852664f6fbe668e7bbe1e6aac34503..eb327eb036e6ec5bc20750dbdefd22f200d3d0e1 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 7b9654900591099d1d08db5a910209b5050a031d..09e157ce94bc66792883d0cb399c630958ff13b0 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 efdbd42e4dd60d03d39c1e222f4fba5959a8d049..3c68670db755abafcdd8d749ac31fcea91ad77a9 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 04976ad67079df23a2f0f6eaaaef6fc2e0282abb..d21fc287b91721f5f140a90d72b00b732fc54cd4 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 d6393f4e8a82f19df39562f96fe258d1bc29d6dd..0be78b9a0d4a049a0720baa0a1873e868b3c08d1 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 075051ee6cc086d3f1789d641db1a5d4d9232123..0d96303232b6bc261b871dd18b9ff10e6a0a462c 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 dc58a2aec35a5e46fba1a8d3c68373e85f265dc5..5dd07655ca1b2e02ac2ec839cf22aa05168d270f 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 57c34b2293ec43ce34ebf306f882ee410f98aec6..fab1c51204120c0f733d71dc002c226564b25e7f 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 af2a451bc52f1dac91a15c6bbecc2a0c5546a99b..deee1956a2f72335b1d98f02dfe107a3425a60d6 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 ed7f892a2ac73c779bbedeed8236f1f500953094..663f49e8d89c75d13473b8b1a498ade763450c9b 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 4f49208fb4d28bed59f736a6779e0a4704bdaeb5..873ea53030706cc8ad5922a2c5fe65599100b5d8 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 033dab80c1991ec6270693543204b3d01524339b..c2525d45d50717eac0f8bf4f506ae01680571108 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 0109603c66409b042239ef0991ceac611c4b15f9..c9c8cb335109a515379d1f5d0be7d726c5a43be1 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 117ad1a3b979f57fe06fbe422bd9abb67c81044d..ef7bb084cfd44b5838ca50c1bcba2c08ad3ea889 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 d7aaf05509c0e9f1fd890464647359c1220e19a6..388de1218a2027c811d247cc1e9bfb817f704847 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 ec995c60c433fa5744cd83cc5f4353cb28003060..386d0c7f9aafdff78d75735091f587cc0e32a79c 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 ee7a3e1cdd50937a5d1a0ea60a8b39a986019f60..85aa604fcbf71fe6cdfe1b31146355c25c2962f2 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 308f862555ff70dd92f270f63dafaa078cb689ba..69910ecdc6e655fbf05027166031a1d3228a65b5 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 1d6f6be159aa462468c12766c293fa4361717e4d..a7a3e637a5995f3bc71a60746680faa8a7c68d4f 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 95f66afcedc4fc6f2a8242277d446443d69d8efb..92b360d222917686dac3ba58d2fc7e75785de720 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 004e94c74813a843e8a7f57279fe084294dd6136..218e1c3c01c26b24607e7837437e1eb5b8b20643 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 3ad35c86eb994f6a157fe6aaaa16ab9725ee0dab..122755014c9ebfbf2cfbd2bfb2708ab141eadb69 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 3c668bc23374b4ecc129c6e8f685b1aa409feb41..4631a268eb378bdc81a80d2c1fa25fd750253c97 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 dff3847ea0c94ca6890e90e44d10240caa5e9a02..9aeb88f0d9747ea7989dc65ee16434d01fa77091 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 39b7a2e2a2bd98c1d07ed2734cddfd1d737caf3c..b083efc68e9f71ff49d32ec3f757a1e94d61ef44 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 c1eca4c5bf680abdf67a8d5b4bc9f9b0e887ab14..a223ce288a4c50f010ea5c46e8aeaae25b727c4c 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 a5255d0429bf23bbbc418ac3ace5e387e90dc695..343bfe55b436ddc62ea9299aa9c7c1441abd6df8 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 da2e5d3cb057c676ebb84075c29d0a7305c6289c..c238eb3d445ce324f57d1676058edafd3ca749af 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 76b6bc1f387018bb2c00d40b86fc7940a10eb52c..4a14164585102d073dd36d06c29aa474bbf5ed58 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 9555b46299f8aeda52b13e8aa21e8ee2f8466a31..328e1426116632a36888f678c91682d46d4714d6 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 0c4c504ecfbf30b12563e4432e4a26ba8143cf58..44abf94d9045013a69aea3bf7e5d0b426091e12e 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 c977f1bf21cbfa17655f595a283751b49db1b8e9..6090269ac3a1511ceeea8c15481a34dda781da4c 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 7b44aefff3b529499b64f9149f4f2e275e49e160..a59b485d698ff790f145e073f177b06fd3c01948 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 a22119f1ac826f95c1a8ef9c683b7d236d3ef272..b71341ed6b24f8b86aa941881cc8b953ac1aaa61 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 aee777a06a9c3a3364a42190c30389bb273b5b81..240af223463df1f34d80a75a2347c9324388c097 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 721272d0b425a5107bbe025f4b4b23d8b3915cdb..800073be049ffa7f59e9b189128921c7d1205bee 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 c70480f1badc3490f5f0027117dd28b581e2a97d..6ddbec3eeddf107a879f646df73541c7b78c9bee 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 274cad9f2e22ef9c0869c3bcd71da9b32efd2b52..5b84b44fdeadff5228dc9ffc71dc08b85f41b983 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 0f38a60d587c6557cb842ed3697bda25ddee3fdc..03ef9203543b95ccfbbaa954801ccdb433ec1eea 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 28d9bccee97d1d309259b0f8db2d80db5b52bf5a..03caf2bc0a944a7905054a353ed5e57693ac1675 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 489fc9d0bea5cc04270b645853939635dfd9f8b2..6d658d057f29abaa84d122f5f3b605b95801d99c 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 4546d51435203f845266a180bbbcfcb837dac8ef..14500276b9cbcc54cad98db50092e7c75bef41c2 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 3c37a708426f19b356f270995ad419c6760c28f7..0f855f7211c9e0a477e2bcdea271929467e4d230 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 b3c6323a9df289205ca4a9d2662e24d9146e0ff7..d273d056f3f626790302d0899207c5cb5bdb3d93 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 09fca8c325a29e1e02fa9cb75d981838a6a89b12..8f73175ada804b552b40818c227d3f2e11575722 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 c53325ed502246dc338c31b789838186e8f90be8..f33919957bf13b2f30d5e4fcf925bae6a8eb68cd 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 388dc98f4ec5bd20e06513f148382dfe6e89975a..38df772b4cbd9dc0e07b29784a95ca6b203c0544 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 3d0c2564ff5b75e5187a4ec5ecec8e57b14de43e..308eb89710200f89e8cc851f9234dfd7a8d6cc27 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 9bf8e0ee9351324ba1d362b34fad0ffdab5f0dce..60dd2cff3a6ae49dfcc177fa709d36705628cb1c 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 253e94d0bab349a70d179a6a58b5942197b6c384..56e35010c4b67a61f508d00b2726aaaeb04d23d4 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 28ac4337f21d1b61c86f9ef82d8b81698e2cf385..cdafe7d15008de1f4b81b1b91839dab15c4fc446 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 ebc0caa21dea7c77dc4a8959284ee0b0406e973f..35a21ee02f991709c83687330686c0b0d97c61f0 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 a1a4a121b76679b446e5bab22d5c4656b43e3ec5..206139b98c6fe1d969a3d12ba95bfbc3feb23f7a 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 18ca0a74d22460701f28ed313453f9baa05097a1..58b7bfc201f7b7e4dc96f32a211672886b3dfd61 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 ae98572a6929191004656aabbb95c2429f3d2435..12ec986813ee62e441ba720f35cece2f4a7ed1af 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 c3c264e5a1d65efb087cd51a3648662082686442..3fcdb18e7e5b97a116dafccec012767c1473b238 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 cf43620d9b9a8929235da66a3f5d38f8a93e0a23..025e6ab2e69a331313fc89ca0ee883c2eec4acba 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 072495a200067347a0a0acca0e32a0a59d36f2d7..822922322b6ecad7111d20f1c2c9fecd5e25b7f7 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 69abdc30c0afbf9d01bdd391bb5bd43ad5f6f309..27f78a852bbd6e0e7587f4482792c498ea249e43 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 d28dd2734e67a7b7fde24e2108e5893d33016c7f..ee3a469419f2da67e800dc887edc9b7e93ed2ac6 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 e114e3031c3c80240dfb6d154c9f8666c40d92cb..dc92befadd8168dd4fd43236a68962ec7966a595 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 50bb3e60aa30bee2ef60c002588acc0823609295..6086ef9d9dd5aff1272662f6fa3cf951f5902e4f 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 efb517c09826831ba8dcd715683e862fea71988b..0225e4ff91d543418ea0848696a96b67c647b295 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 827ad9ec6cf6aca6adafa17abc2bcbe5719f0fcc..a8140c4ad42e4fbe92a378eab9931fbe3c52a5ea 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 bdeb766c12c21d3772d12b60a637dac4618a20c9..013182f08d9ace7f534215eb9edb5a19904a5d5e 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 d20a54151de81628459ad6c6aaef4a971ac21dae..027d0eb7640bbdc513254b611d147d40b0db15fa 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 c1e8b240c578d283426eb7380f157b42f5e5eeb8..9ed593a72c91c66f9bc397cddc574f66469d417b 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 5127d92d371e60da6458af24831256eeaf265277..d46815f006d3422c83492d238f909524b8d2dc30 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 d473131b7824541aa4f3059d8db3e31d115ab7cc..15ef3afe92fb0944ccee2524a0c16b4f2e709c23 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 1f78db843a8d6fe969e6ac5cd9452e436681f2d0..a73f22dc72dd892d89bf84ce0c4655e6d23eb50b 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 27ee0a36381e681fdc4542958fd7f220ee0832a0..8d990138cd178cdaa5b34cac71f5f7c4551b3453 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 d86f06d346163c8835d16374baed73c9cdda741a..a1bb4a73741bf14f6dee8cb2bafe0a0c4b46cba7 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 35f27e25d6ae30a88b5e0d4dcf66dfedbea71ebe..da9a44f3fd1d317ef7133cd55530ece988beaf8e 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 0860f8e9ea34e0a37c8438a292b2df6b279cc681..0cd0c0946c8f184626ca5c02134ef9a553fbae24 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 2112964d46564ae2f28c6a07cc207ec75bb980e0..240e580c21e1d10d03668567e8d982e4db348edf 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 e8fe5b9989a47a94f9f1800d5bc735514a63add2..9312e7a27181b942e8bd7399eb83c0305f5bdf88 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 d9685329658fe2252e7bd5a544138fbbee8ee1fc..73d02a2116f7dfaffaea0bc1d733a9bada44cfff 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 3d04750d13edf0b0ebf0e0bde19f01336c024d7f..21f6fab6cddebb5ac8d9c06d006241f488aaab88 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 9dc76650137c1b1d49ab5e24a8c6dc6def92418d..632bcdb47ccc2351679d49a939aef2405f1093ae 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 44bf484561f39ec9d751a0b46109336aefe2c887..6c667ecd126186bd09d8d61ce4ab72ee9ae53ac5 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 15a911b41272065e55ced67c970be51fb00a118f..d294e917a6989b44232f1af1f8a336613b6af14b 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 de385935c6092e546695e293f4a6ef6c48975445..8cc995c4185f61d7afcd8de9cb152fc935e81bd2 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 c8b1c75f509ce0cb8dd4824df0305fd9532f43f9..5573cd1032ce329a7bcb61af7610c34787679ef0 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 947fc6f172a446179bbad7ac618a64aca81276ba..bc24041382168d0cc5e178b5977a82b772107d0b 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 1b7f89b5353fb1de8d04afa7a50cb9364b62fbb5..50766a31219dd5d7e9cd06318beab8e8687a6d6f 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 9746cfda118e3332a7a75ef21bb2a0a03c4bd129..5cbf11fdf3df70599f7ed4ac9e7bd33421c7a1f9 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 beff98bb9f3e63b1d4d90309154b2453e477193e..662c76c7e7792529600d1eef92a21c5857f36085 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 f8665c41e11173426481066a638a3b4a1f33eacc..1569230385c8eceb694a55831d1344e314496093 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 26200118c7160c8ca36b0653dc3597bf503157f6..6ebffd1f810a89f2c1a6803076459598fa194fba 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 e8c431e77f9ea3bcbcbd83cf3446a47d6527112c..9cc51dffdecac286f8427bf23026097354752397 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 26ac0160cf339277f619ed0245428429051d0aef..4cb40f48addd77900d2ffb8aa8c8e04d992044d2 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 d4e457a42bf0589dcbb85f9e93bb0f44b89ddf51..70303aeee598cac233b16e289ad99d682eb33e4b 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 8bc07c4a453022c88780b7848501e80fef2b83c0..6dd0b8dd3cfd737e71d0e2f324bc3bedddfad527 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 d5fc366383c2305795303de1cffe8c815ac06d03..b43b3bbfb0a325f396816b3184463fee0ed0ea1c 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 2b726943fa3f4f94851793f132cfa97a028a2e38..75d1b058eea065cc49c843ec41052da199c2f9bb 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 66b2516b4de2d7ef485df02091679f51341d903a..d97faf89e47cc11ad3c80f7c63ced0f31b56ebd4 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 44713879fe3efdee96c09c20bf641dbeb5346442..c4e3d5d46c4158ad4ea002eec86db9aa41841178 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 e4df819e87a6c267551d12a2f1f24ed99fbec149..dd4ebd289359d067b804f9a04639adacf8dd0da5 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 a9a6be311afcef199454fc7d238243b72dbb0b10..0637a2092f2c41f4bb0c4a9950726cae44f67213 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 7bc857b0e92a99168d9b19a1620773a87f077297..6206ac8b2703d6ff0f3102a0d72ad5048d3198cc 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 b3ea1f58058a0600ebeebf8c5d7ae88db4cde2c8..21355af2fc5f2019a21ca26afae8af77a18708d4 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 d11af84848de251e2cc6d15ee637694f07e79e62..4e630c59904e10d2dba9473421c1ff94c211fc0e 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 ce4d8e71377cf53339917d3e708c99d7bd294d20..bc6b453b4317533e4f57b300d48531b18a944030 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 5d96550fbbba388974a953c74ebf4cda8dc1a677..6a8dd1571906f49176a51dea66e080aa0453dc77 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 d0c48c9b8c4366f828066ba6cea68cb58307d1c6..98556b8d98d30025d63abda16208b08e3f8085ec 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 e06840ce3501efa33141ac5a3d3a40456bb3c3d4..207db30fd75787c946dbba8eed15ff58533bbcdc 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 bae7788d4bda2cbedc8f4df441e47735cdb9ca3e..64a49ffe4471953ce94abe7554f9f0870445b187 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 3555141a0a9379f343f6df47b562b513836bd14c..5ec0af289880946bedc9715387f14134004a7b77 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 8cc83feb5ee2fd49d953bdd75a67edf579503af4..dff6af4c2b3799415f8510b64d9390cd157d4a9e 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 43baca61f3deef3c78ca3f7a398681286ca975b4..658ff745186e4c253d09070f8d29a77b84fc4fc7 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 eeea62f7efbc5fb3d300f258a354a0208aa8c513..530ece0361dde5ba3823d94505ccf768266f5628 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 bd417da4487aed5a78c9329be648171844403997..0988d5afcf7bca874c48fe4a27aa964a681456b2 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 412f4ef77b0a127772bff2974e579632371986a7..e502b7d504692dbc28111a1e853702ec047ee2e2 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 c0d6a7b9b990687d26f32f12d729594ccd357a99..aa073f12364c23068f69b16c97acda2f6f2d4fcf 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 e650e6cbac2f745c6d4fec7e1e79e8a4de29c526..5767a1c63bf4663ece863a9a38e3bf700f700e84 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 81e4f8abbc3ee8cf7dde07104ec123010d493720..5b3fece0b55eaa69419d203940c3d78e505c7c30 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 c802b3ef0ff51828c55cd8cc7590db44c861cd09..48c08df3a1938b280c87cc6b9d900e3f27529cb8 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 d2da5ce4aa35ce0c68651796693b5a9ae36655ab..a442d47981373603f81a29be3ca985401f5682aa 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 61853410584462eb760de196df3f8284623edfc4..d6721e51f2e5f952493f9618244a72e62fa5517d 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 35c6939c42fcd0bd43c1d5e7aa49e49f73824100..b5f35c3e2da6008613a7105ef694ac580a1a94cf 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 e6ed45995524a189d52563ef9f05fbe886ba77c2..5d8b464686b9f2905f91a33bd8eeaeaf01b450e0 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 dd1bea0ec7ef53bc97d25d9a637d4fc895bc9577..b0fbb3657b194e5b3c25c460a05d877a7ad1bb6a 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 26908ed15c23eea854b5457db790886183367bd2..645f4c17591cdbcae251476a2cabe242794fd83d 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 7152b1616045784e98d622546873c1857f769736..9bc63be00599b2d98686bc69c6bb06da63fbee1c 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 2d7a48d21ab298ef42bd6aef0fb6d81c4588adb5..1ce4f015ee291a9fd6deb0016e48df2ee5989764 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 4f7b14a8019813381dbba4e3843225c4c464a091..a2549cdc25984828e6bd1fd6d2ea42a031d3eff7 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 14bc7f7c248589304f3d9b9eacb63dbb78af0d0c..85cfd2bfde4b0681bc9b17b3003fd09ba22fcf95 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 be40eccfd1a29391d13548a2906d0bba57f91774..8bbfd14f31fee7dba964162e9db21f225ca147c4 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 646d4d2f10309d76ec463182784aec84d3e63302..ce6146cde59f32b9443655939ce011fd7e76ff01 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 f5a72f7c593a66afbfbc5233864db737a98a96d7..64b85db2508b19bad76e5b1016506f1b9819834e 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 55fb9276f321a3dc20c2b0c13b24a952d4bdc87f..09fb9f4168619a7a475fe38fe40bd06512ca5995 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 99953f796473c891414cb73235e8bebb0726e077..f7ae945343369b3358fd645603bf464aa32a5223 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 e695929ced7d4f97f6aab2ec438a1ee4df406ada..547b0e456b44d0dd2bc6e6263b24d08f71ba58f6 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 ce548a0a5f361af19caf8908178eaaae214f123d..3ca198c1349399c8fd920d869086f7e472b138ac 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 c817c790b0ad5601b1cf870cc4ce4e4d8d95f0b6..74d4237bfdc68f7d7ca571a0ef124bcfcae1dcbb 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 64e8a0ff8a3e059e33da1ff5f93817e9c7cc5c21..a5c19ad0c7f67ed76f86a5aa5f3b2c8904a47ccc 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 8b28129c4f02920e72dd51fac43760a1eba6a8b1..be926347c3710ea16120c1a6d21ee371e241a7e8 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 40c69186007e1bdd6cd61f31903cfd2e4cdc2958..f98e1b3e284f307f28550c282198aefc00260925 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 ff00e9a2a420405d69dcf8d166d3697e07549ceb..3f1e26764e8cbf4e92125fd29107f9e6649946fb 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 64b9fcae08cac6e95adb430ac70a6085a537acce..c14863b476a5d893ef05998d5d26caa5ba0954a4 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 c166baa017ebbb1958680e56dbac8ea065038075..cb284610fabef3e3d01d423843ab7817f76f237c 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 4f9ef4e7d521bfefb53e97f20770b29e05559931..dc159ea43a862fa489695c6bf707633d06f945c1 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 21361b1c48d2d4b89bf33bea062b8308d0580ff0..a5e2b16f243f0066678fe07e7a3b04a245a08bd5 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 76710fe908064e94f67d02b85983a2498ff6e6ca..f1c58edaacdac870445e2ed69732b8928ce9a557 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 4b8e256b9a17e09c5e2dd7af33255fa0e3f6c6a2..46fa6de4316eaafa9eed49be1abfb3d6e2b15d4f 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 ca14d09c99632bf981d140573cbdab0b1dda34de..24f6c2b877483148617721c330dd6f2256403b37 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 3e7c683060680b96546228a5733ff261a40b2ac0..b2702215753714d96c9a9810888aa315e0a46bd0 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 3a80b84cd23e29bee937057c16ce0c0d85f6ae0d..5a019ec2fd158bd99be5ab6803c29108729fddf9 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 da494ed53e4a442c324a07617442bf5c03927ff6..ebcd09203b1e7ed212d789f6763d57820fe8081c 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 63ab3626576726b43cba72f5f9f00a4074eed9bc..6e111e25372fbfff99cf0ef41f0e787a52d01724 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 707144c668b1c4eae0ff5fee8ba965a1c1aec08d..f03d6241870290016fe549a95bdb6090ca2c9595 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 2e5a675e5d18211a7d4a853c89d20f341bdac1b9..618b548f10b76cbc51ff0ed2eacbbb54af0fa615 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 c459d41df80220ff3ce62c90383723351c5120b6..736361e2a765d493d25399aee5907fc6a56af17b 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 4575db0d82ce98bd92e134c0b2c297265b84d762..bf4ba8cd18e4d706ec5e9fd611beeaa09924c4b7 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 b712d318b26c5d41f4da5fcb17018181b09a3a21..fc1b4bb942f386f9d7d1be7e505af81707f1f99c 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 d281433e03d572d85053b3ee323ada0901a6d56a..89638507ddefce926664e8bad5a4919234355290 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 f42cb06e9eda4b8c37435050d8cfe83b63aa92ba..ad381805b16d38ceb26b01180678e55a90612c33 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 f15dac1912a2bb5459b7589ef3e5fdaea7f0a9f8..aee14e5bbb746a6257a37f41c90b18a906a1639f 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 8212c7a45222ee041baf4016783a78916cf3ab36..f7579e658bc0142074a87da365a903baa02dc6ef 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 b88062d3c20ceee57e4ff52fa545c311f8e40524..7003db87880f2d63dd4c6e7b3d8771d5c15db388 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 cc16e8a215d0032bb850df867bdf1881f6bd5edd..1770ccd9bd9c120e42ea5d6fb86fe0f379f765e4 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 b6fd292d4b8959fc47623092656c81b6ca74d5af..d85d3d5fceffa3276396e18bacf1ca90d5d6aca2 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 47fd3096aad4cd4a763ceb822ecb08e1c3f12dd8..28ec1251936d3daaa442544b1b1088520fc5b2a0 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 0cc93ae934dc2ff13f2a4179be149e9a63aab575..6965e12bb52102e90feb3b74b8002f65ddd68557 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 356974f447daf69b6d2ab88d6c43cf8183649884..d504bc7285a767c3eab9f36bedf6285eedc74289 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 ddf859807488c4d73577b52319ef4eb2a32a2b9a..ffe8d4c3ac8d1df13bf8782debf9300dbf805546 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 3106260832a911ff4a40e87e16a7a8485236eaf7..ff83ad9def69166e42886a94516d8f012d955240 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 66ab274d087d81b1554ed7a9967a692170ef08cd..4f931103edf377825d639b25d562f06720668ec3 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 ff42094884034ada8b992628d2b1eaaee77c2f05..d334aff678b00f35f36e4eb3dd27969780abacc9 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 f784be0abc0057688698b8623585cc830e2f99f1..6a3ff44f031c2c8a2b463924605bec59fc568fb1 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 a58b79066626f1fce7f669c4a6a5d560e9c0ebe9..45fa0dc0bb322979df96e83689ce9cfa0d3d0367 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 7a2c6c1b2ac697ef35cb99d83ea197e4ee6f7376..aebafb0d2720d1c5eb1f9937214c8552876b9327 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 cc0b309566251aa695acb7109497650eeb1a43ca..ed52cfb87aa4cb81f50d79f729903631c199e52c 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 ea6dc3db8a53756a0d579b1c28056725e246af96..a08fd8393149b5a52cb68f9de85e1b64141aa825 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 0e1ff0ac499ab51878c180ca40313333b47b2de3..ffa022a6f6de4545bea5cafbdd7af5d0e1e0ddbc 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 033f3470048c4148d160ea517862f6c93873d4d0..34a3a8424fbab6d762ad0578c8940181029ccdff 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 f8de141767b6df8e2c427963ec7aa9ac07cb09a2..b86663687e1242a69d16555ed59c81d3898a0095 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 9a1ce87bdc552b8570f38c508c97c4ecc3d43830..fa7b17757b6d34086c76ea90b6bb59b4df50170e 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 d5cea26457cdf14e7260e6cfeefe6f11cd3e2b8b..ef1d92361fabf00d7b81d109a9f8a0767310db05 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 9119085f1e59d1564f7d20a27a9f59b9b4b0781e..2794f4a61667839155a50fb1918670b2ba9e773a 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 5833f49ea4764ef37ecc5d6c358d9c47a33c21bc..d975e9e4b8fad3fc64ce1a99272230d56391fa57 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 789d419170c53b4e04a2e713990ff97e7aaca337..a01264dd08ebeb4ccd328f0488242d2e849a7440 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 b47a936c1459fc487e9f8fc76b713e517f9e0f6d..0567901a63d8e990df7129456d705498ae5eee7c 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 65b1ad85e3049f456419503d54d8d377173546b2..919122f37e3efaeb859d1fab59b8e866e304413c 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 c983667bc78b76ff02377f9bc6484490dfcd2ed4..8d6b178c7fc183a37521324e2c60dab1d087cd3f 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 7794326c3f396e07cafcfbe224def6e323ff90af..0f54c38ec0289f0051d6b3f699cba572840e716c 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 55e4740833e039fdfc44d52d0dccedd135115caf..537f816ceac3fff9e1ff42ff3387191c25d210f2 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 e3953c07a56505a4c8a5349ffb18f19e6f870791..3ccec531ebc084e445dbedd7b253d307d7dbf054 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 d865a06925c0d9acb93194ce5363ceddb817034b..8d42e412246bbbdd9ef8027eac9f8e375122c358 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 0ba5d44bf220e858c467c2c292b4c6aa7aa015c1..d80be94be79982c518665a0a8510b78d0ef77ed8 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 5a0c99750c8d782fdbf93ad8b3e23a7665783532..3812010bee8860b7d99383976d7f9e8a7d9f1a6a 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 536e67dc67d23894d7711ee0ddc253860e1c88fe..ab661775eb177eec3f3cf7db1cda8e60049ca18a 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 e1ad8df1466692b8cca9eef223a2a28343045340..a1354a5df8166c0d4b87f26eefa922aa56b03165 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 8c03409a369939c082b581974fc00c335e0d34fc..5f496e745e35b87148338ff5ccda8e0778aad5b2 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 984014476c49fa0b7f4d9352d8e482c81d51a8be..43bc7e72d312f6b3d972abca3af4f7b2655cf260 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 a73d0e5d39445baa8dbbd7d0fb65f58a65176d56..e29d74b9614b090210a1ef5238b94170bb2bd6e6 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 5cd39af2feb82fc6d590e733bd4c032d96123470..8c534d02f60cbeb691797ea482f8f2f7fa375d66 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 9299d563834bde3148ccc075c6d5a037f1d24f84..4a39c7176f35d6950e60d34a73efc08f52800023 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 cfc6b2a4dc512f7baae39da4bf02019ef2d97756..963bd14d14381eb1d7cff2405ddbd9a799b0483b 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 f35abf77aab919b6347d8911f2cd65963d77c49c..7a8ee263bbe686ab8ea4c3a2d7341408451c889d 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 ee722a33dadb110c93cc3cf2fc8ba255fa732745..aa4174eb23e6d14d91f19909a3317a17cb5f1e54 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 19d22ac667c919a23af56c031ca0394896735e73..812ffeaf07c3fc7ac072d8cc4a193a1e2a812321 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 a5d79d7b2e8aaa0c2b7978096881f19ffe34464e..643a83643a68090371760777bd867153c59b1553 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 fd09049d3f908b2f7310dbb0511c4beb9c094afe..2aa5c15b0a2be70c1bfc5d1686f8b045e5a33b0f 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 898f6770e4513705df65c7b3dae9a80102ae1688..e9ca8d6a172efa6f0de3e85e73b2701cd2f90086 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 86080f5bf9a89bedf576819eeda3b894b741dc4c..9e1439ec2cf13380142afbaac3cd8e125818ea6e 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 509f8f7fa06150344600aa37e6a071a04c715e19..25b3d72862306ce006aa414110900a2fce205933 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 e3b7edce83e33100201bcd72d4d7869eaaeb5789..819b62bf477fe77b1d06b76e774010368e14f201 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 0f39772425ae89a7bbf21dff3ca2f681dec5a7fb..511c0ef6782e57a24def6f078bdeba016dfe0dec 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 adbc957049439930ba5d7447641685b7f7744952..0b687306f0b05705590c42a068d8619a1da8092d 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 943627466bb6f79dfe408d7ffe4d2326b9a028ef..16353354fb5ac81eb015c70e5a4e6b7e8064666e 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 ce6683f0e5b6955972d651191b21d015552163fb..6be5f12aa8c419ac26c6f9c37d0b983d5442367c 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 78ee2334320846e164458b427b02788bd977b9c8..2a9dd5b68df4a55b2b94a8337db7a505492e76aa 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 4eba61c25b5880a76370a237fd5b17aa701d0781..9094e80609fceee4c8ae16be36ecb5c90e5aac0f 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 031aee188e83b9189b1e71ca5a3b9bd64b09915a..9329a981070e26f540c8560ea3be8aa948a1e599 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 f5959380b14c829fbf2400bf10430a5ab76e5769..cfe5c1566bb2cdb0e7d5cf3a5d960a4537a6c351 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 bfbe7c4c299e4f899bc628ef9c1db831e215bbd8..7ece59ef9474be9ee577903dd8d7eb531c55b304 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 fe15ff9af629cd2be13825bbbbe74e1e6e5ac3bf..61b438abbc5e87be8b4b39c993b8eeb74afc0b94 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 8af588930ada775857f710e3ea7898286aa33f60..de91e8787b421a73b667febfc58fc3d2cd5a96fe 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 1f1cccefdae98645bef9828c75eeefd0e46eae79..6e1b4fefe03e523ca53bf10c6aa586883c26dae0 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 7a2ee56bc675b8d72d1b92ab885ce76733f7ee94..306602ed653ade51206089b628c4c1c865631002 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 43e406fdb20beab31f71e87968441ac3cb70b188..1bbf8ebe65db07d8b133cdd3e0f268d702b60a86 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 e8e0604e3ad44ca90ba9b2c0c02c2d4ae28c1403..5ee789fd0affbef3b24e41aaf570d619fbcef6ea 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 1300abbb0d416006eae906ff5af4124fdfe82611..cff73b818b0a6b30b151106de02bba8ffcbb2abd 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 fb83d42822b4cb03db068635d2cb8da1f2979aa8..49f7888c1553f782e7c4f1efb0aba1f5cd7260f6 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 1744177153fd8eeb35e246356c5882f831357882..f30f8aed3a67562c6d160592f39dc5ea0f8c4bc5 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 682b5f6644ac17b550afa4cd6913c6f0f0bd322f..fca46b860391bcad6b60f4bbc54d26e5a98547d5 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 333cf1904ed74b6382791f22be01674fc297b1e6..1ab19c710c1b30f26ff4254167d7e655bc5b7d1c 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 973be481350cb46eb3be2623ba2bed99ab552fb8..3ef36094767a5c82079357e25ac118f79f5c74e6 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 2ed48f04988c80269365cf6144b746d48a9b534a..6f140fe9ef263a1c5c775039ed1cd16a2cf44b20 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 450aed38859e60fa0c082575e7d78eaf8c90af9a..a6e4c92d732cd059b437f5eb17363120cb8a6638 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 1734f3ea79cdb1d0e4f683333e6652fc256af999..86e7c99ec8c1b07ece9c842f0a6e74eb4cf327d7 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 a7f8a6c6c78b1897f8149fd8221624c2a427910e..23ea8bf52d6b25c4a73449e6fc397fff8c2a37ee 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 c5eb2b53b7f904afc0b636f0617d67f8057934bf..f7902c7c0bc9d024f7cfedd5b204de6c4ea74b4a 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 5ae54121fbdfd6b56163224111f607f58e261dfc..d73acadaaa22f1258ac1d986d56b239555c10c8b 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 21262c51f9349a7c3e2542031310da5646cd25ee..cf340febfa63d8eb51c4e2b0043bef0a10df6a2c 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 4d7c43d8da4d2a04e243399a86d78bdf6d672e9d..04d90d6d1ddfa59e4d487488f68eda0d5e6d0716 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 4be935d7d545d821439fac5f1a6568eee9646631..d13f90f9c8de56267cdde3670d9f536336228ad0 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 69fb5c152beb1703a47533e35bc9919262adfdf3..a0ace372dbbf4e8f5b199ec66eeacd1f1a74721c 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 313e0b97f04a4ec193e66582eb97ec28f1bd79e5..68fd9543b0025172dc1275ef5ca9be6bc6b30d11 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 4657df6c37327af90a01906eea2c178cf49712e0..617a124fe7b4c428406a7846a1532746cf3a1da7 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 6bc87f73e2639427890a219e95987956acc00f62..2a67a33c5c6c802e2c1a9d46d6b2fea119376347 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 d97f8ce6c2dc07fcee220c2e3ab4dabbff60de5e..bf036e55d67f779b500a17f9ac3177ecceca32bb 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 cd9e98252ca4de339e008d2f0d69f2aa44d46ffa..1fd271e3364f92af43211cc769d43242a8e42a74 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 fb65b916963bb3fa7af60adb05079473ab3ffb7d..16dba63554d9eb83224b19a6df828e0beae6d3e2 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 cfbe1f7861f1a031b5a3dde9d817627948bd35e5..1751c42801b50f68b7007c0ee09844ce21aa04ac 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 a42f27b3ac3b90d71303b19dcac1a4827e95b4ee..95c1530e2909063c4145b99b55aa38ae4b5b9448 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 2599abb5eb7790a347dbe960169866ecb53905c3..d1e101ba7d393ef5facbd9a5c571fcb50d189f7f 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 f71082b03974a6885dc3a9de8606b5e62ca3dd76..f1918198a8bbe9e2d175bdd2b51a28b9ee2e8f91 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 84f81fb0ca435e44c3932315c256afc02282abe4..e3a00208cd1c91151aacf5847956d5d5723815f4 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 42ec40702e5f4f40cdc09dbf69e298abc54c0ca7..db6039fed133d283450f647ab5d306bfaeed5d8d 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 589f0cf20f215e21520ab77b5d2f9cd29b83fa65..8c8fccafa166185d279628aae4db8c96f62d09b2 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 89012faf45929cc8d850de96868f947b9bf7fe34..ff6ac5b5682f1801aa00848f26a5a7d0afe1eb2e 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 895d0f9b0fd618c637557f833b0ff20e0fa9ba50..2c8c5f9aad14b71519f3ef311ca605ae649fccee 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 c24bc5703d8d3485b3dff7347852986b02b7abe4..9d067574f0bd3a07e68b70a6225ede5793d96876 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 b73744c02e4eed46264352ac8d7c5150db928134..42e772e70e2b011a77c0ad9634b21828409b08d2 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 0129329df21cf9108b260780e5edd1f4fa795564..8576e7eae8fd9e9c7ba714a2f6a7240307a47fb9 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 7cce848020a011793976d3618d7a224f4902158f..0f889155d48809d5e006509aa2a943149c815909 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 e5e0baf6c192ce7249b03b242390fbbd764b234b..442476c1ef0f98948e7af91f137bfaa693054ec3 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 95fe1b5f4bc5f82ae3d02477babd7c8f38b511b4..d126d91609abc3f6e9b03493b7d7ce5c69ad5e2e 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 0e2680c68bb1529deddbfb707465ad429debb6ce..209ca4801daa4257722f24a47ac3124f10fee5c3 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 560ee6c8bf8ac2ae1903f835040a80789694e8bc..c38627553bc9c6f8945ee6e394b4b9327478fb73 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 a864b7ca7a0e16f5376e0fcf87d6db293e416138..c924b55676f2c1bb7e015875fc69353497a092bf 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 af593f3f137d9da83ee3fdad7a9eb2c6c634437f..9582084a032dc703761912894d2de76442436ffd 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 1eab0f78a742d57c7a39c995e8470172187acc08..8adb4ebd9808cc5ec0c4fa5e8d8c10eabbae8074 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 0b31ec6db94e4007c8a0a8bb5373abbc7036ec91..3c6d8aa34eb1431e4bef80048eaa516b34119dd0 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 35412fc70645bfece9120d1c0fa0a764fb90ff4e..4f24cebf8c26f2696fa5b84c53c702711acb4b56 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 c56095b08f73cbc765605eba8080a99fcad88791..c88128bf427552ccb58dcf0718ba27bac5d70b03 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 47c5f6aac9de54353581d49227e149b08e4788ca..8f35dd4781219e80f99cff09b00b962237273ff0 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 ba7bd51928aab795dd9070e34c414eb956c1da96..cf32fd9fed7608543657a0a75fd4af53ad9c9c1a 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 87e21a0d997f5310acd489d62375af395b173c3a..067c7ff89e97860e6b9ce1f059586019a32171c5 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 40601f74ba73ef8d02a3a319366afc1baecfb505..932790d6b45a82506e4895984cfef654c13f18d1 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 2d6806a23400d1afc0783007fbdbdba8d90f52c6..f369cfd44e6d98a0e7c0a8f028a572ad9fc57174 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 092212ac572f7cd63e59c027e6a07af732f7e2cd..e875c01011415ae22e5973c7a2cbbc7c803eee97 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 9164025ee654472aaa92ceb1dba50828848319cd..2b9925b29defc61ef0f0c90acb375fe572d54a2c 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 a69fdf144d41598a8022f748882838f1e157d714..39a4c5d3c87799f4dcd593214346ef60c8f318c3 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 7bb083173ed3a761c85be2607bd2502406a146b1..dc0cdaf5488619b2a0c8ea2090aed90f5f8aa45e 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 e755dabd0ec4c6d804cf69b665af254ed3a290f9..598d864e8886a875a5ca3067b5d8b3f96a0e4266 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 c5fdc866cc90c2b588d69a6c3e648c9d2d6e154d..985b1ce2bbb6c97c313b7b59a9bd949a64c9fcc9 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 c5b3aed5a51e8d4b1ba67f1f8665a4db2996fb8b..eaa802e313e2a9f0495ac983469ae619ba316faf 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 d7f3b8b029c3f0072cb27043f44c0505791d0ab1..8e153730aeed413589eff49b3dcc012a8bab935a 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 4cf6616907e2c040258843af324d1bd42ef47559..a2a866ec163de5ed116f4d3f71736120d51dca22 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 3d2037dad7efb487fdf6bf096186a378edfa69bd..3f85b2f81940291b26b6fe5329d67a79664bb055 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 471a0dc5a7cfa212288e796ab8b0b5349b7218a1..91d9d39bb30cf6f1c7a3b2f0b82c704a8bc9f6d8 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 bbee5ff007c8763d59e3b3ca7d0fe8804462ff2c..6caa60205ec2f1b184502169deff88ac8c4299d1 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 34c6a6bbc2b40c3c45a3c67b0fdb316ffc9c25e0..cd3cdef99d2a3efd59e372d2b0a4af5aad369cbe 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 83b20f659d55ef335e231fa3959998ccb863da3c..420632d71f501916fa3539197bf255d04a379f73 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 15b6adb4a6e7f49d9b813710738ba30fdf4f4130..f612fc57f5e2d8bedd97cc0fa54202652ca4f3d6 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 05ec3c5dcc78a6c7b21513d2272dea5f95e5addd..329f3284cb0528e4fc361799e3b43c95e0c25725 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 3b96b3773615d646d31961e16441cc27d9f115ff..3cd3a2c634c85f776b514bb004688e508138d547 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 fa5589be7f61ef4d976dc65dde64626880064806..7ca009e57cc4e3a797fb2fe916498591780d6d4f 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 43ef05e99d2967ebb4bb604c20d5c95e9613084d..02291b38f75121c4b339e5a0c760bd7960cb88c5 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 4bbf1e1d6ea0443e405e29c8aae73cedd50546bf..3dd8191b8fc42bc79cfb3b8ae4ab63dc18f053a6 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 19f9faee4cf8fe8695e2b99201a5ca2eb2a17310..0e71788ce8b61a6e2927042716ffe3536de66823 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 8be14653c72f1b18b47460da165552bcbfb1fd4c..87c68c2c718d8471a4e08b7349d18a9ba9dad8c9 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 4d1b750d4edd1a459a1b2144bd97bd8109bddfb3..51c187bd1b0693f2fe9d2fa9bd9ff57c26410716 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 a53b6f35c7d439826ba6c2635edb97491e28126d..14019b5b6d4bf2993e2c9969747b2af85e22fa2e 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 7ebff34ad366d3d5f5a496912f0170b03f24882b..e1f54620f54ca3bd0b0ec9d60755ce64962ec01f 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 0630c73477e3292ab944ea950fa58aaf94b0ca39..846979de0422e406dfe284273356af891318077a 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 e549523ae43d61997ed3c13f7be598e951a9a6f3..3b20194ea1300d123f28a9bd25181003e1d4163e 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 b104b5ba94d3876f62ca63a74ee98107b9daac33..cece42c27ff4f7bb008e519065d349dff16e2b96 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 59f4024ac5779c286763fd3e6a981fbc25bed51b..cc00ab67c1c91fda83c39508d5a5ee92b07ee196 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 c23773f214f0dbef41139704601661e94c3f933b..309fd12e7cfc26102d77d3f53a1f1ef6ea95e503 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 d47d63f0646b4310a593a2ffe5f814de5a41f098..30c50b4ff28c185decb017ac0ff3a72657b30085 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 928c095ec2bfedf949ed614d2bff6ff15c0a0807..74ce534041cc4ac2935d950848ade609d3ad1641 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 e93980cf34aa719d79c3630d40f22eb2c7de50b1..b9bce0e03aac0286fd7f00c56418390d85c1e256 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 7ada06b16ccd496cb1868ef9cf8d6bb34bee50ea..8432a8da02321244b08161fcc7a2139af2926cf5 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 57fda04f76205caad9e0a55aa3063570cf3e26c9..90551a75c155b0114c6b2df4a8577290ea9e0cb3 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 eb2a65616c14c4fb30b436bc701a62c094626e13..06c92b9e7e0528e7fbeacd0f2761f06c26d88e4f 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 7a5c6f01558c1bc638217d84c3b15351cec8700e..1a467131b529841070ddc40845a7fdb4c23525d9 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 4e9470211b73e032037f11031f3f15b7ab1b4227..d2bae2d52483b02a3f7802cc9d4381d8ed744ae4 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 e06d4185989ff637e7e76e627249b09ed34f6a8c..b24afb3801f73355fa2a080778fcd0d6b567c003 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 eb3d7812e6398173eeb8d16bd6cb049e106965b6..540cd9cec6e2d8224caf462cb0e2e41b82a779ee 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 e965b7bb0ac7d82064a17dcb18defecf0ea6f071..9e0ac98ad818c7657b899d0f2ac2ae53ac4f0d56 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 81edfd35c09e7460fc813b1d05886f7eaf5c2f1b..7d5596cc1bdfd723f8bbf4d30732bc0ea402d3bd 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 c42e0d45216c41ff147de08ae39d1440b8a40575..647edcf6b292f24d09da86d1b5d0ca7e3efc77a6 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 955cdc63d77ff48661368d0ab40338282b8a8f3d..cd55557faff2d61bc66acc757496865a16ff5e21 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 bc48565a7e0afc0395bf1900a5ea9fd6728fe689..eb2ad28206023f30dc5cd3fc3d013789595bb1c6 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 9d11cc1fef22193f880284d0c8d94cfd706f7b42..367bd331bf6842b91153a0bf6863f939c0298d23 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 e78c511f713298362f40b6a3913cf999fb485675..0b8eac24842a7028f2076b2f2f624d98159e4e9c 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 55214bbb34339a54da01d65b64ae573469bb454c..0e3b30e6a2589097a85eb8d35d4b9a0234b553e9 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 1366f23a3cc5c6c6941b1d79a85cf80a4b841991..9ecfd4d84aa57efff263c23cc8dd59e07eac2fd7 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 e6aaace307f4ae10324b3b3d234bb4b2ad9e6792..da4759d08bf0a2c8b2a197364ad60d9d34b3c196 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 8f4501ba8d9826dec7720c708803dc2a30f1cdbd..9df73f43aa402d2d0690c1c3080cb10548cb025e 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 5b1e81b99ccb65966c7238f3de4e8fdb442b3cc7..a91c02d6dd0e690db72bbf2ea7ab8bd27225078f 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 0fa5d144d35cea179ec4e5445e585aae48ec7c4a..f9c4107cad1b3f9e5994615c52f01e2f4d306d1e 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 8edaa2965bda4c23e9228a732f8fbaa2dfceadd5..3fa5ed401be01deaa97f132e6b58dac5b143f0ee 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 4d60524a5fde0d31e990bd647fd5c33141dc719a..32bb1095808f4a6f1d50b5b908de16ab8d7ed4ae 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 804b43dec8e6df5fafeeeb50d4f08b9cc68960e3..7b485d3daa4d0cbaa67a20a84803be77cb412d1e 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 d4861850da48783b7786ee7dbb93f77747e75ac9..955876229b18cf9684ee65c113f1810522228f49 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 cdb5961af7fa22f8791654ce760136f4d64df1ac..6523c40cbcd3328991642132d4c7cce68efa688a 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 8bacd3dcdb5ac23103900640859f09784ae78371..212f249696018f43424d7cf41c2997ee6c02f72c 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 c3c7dd140d526258eca06bd134f6f8494ae4d62e..a153c09a962ffc8242956d150fdd01ab6179f151 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 99beba785ebb5679e52ff0df8b8b026bf4ef455a..b72947321c5232854696076a280f3f5bfdfc2499 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 6a6d34dc66ffdcac0b0bb21aa830dafe464714fd..9462e1caa0a51895f4535a2f93cb162dfa7bfc68 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 e01b0d044f8bb878e9d9817c06f930e3d57701a5..04934ca48ebaf11d8051915a7a60a4990c6ac04e 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 b6ca2ff04c187855f2f912fe18283e561b9ffe83..9c135b67ea53752ff9185cb9d1d370de3ce1cd0a 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 2f294fd915b95d204f975466e0b0398ac2766352..05f343a4d782aa257be73ecb03196e957265993c 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 deb29bdf855c117c06ff4ec2957a267274cafd92..63f1fec26e712ed2eaec5425a4f04c1325fa9046 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 63bf2f08ed7854f0ec6046f222ada1ad04776702..7db051e46296884bc7bca08c2c56ad2030b97f4e 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 3922f98e5637160c618a4d4621b276e7574a8b19..d6d2fd2b3991a6beac8f5442d678aceb1cb6cd31 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 dab04abc64c2303bb02e9524ddfe277a3c70f150..3f0f54c9f4c2ec6c52506214d1ecb7f39873e86b 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 99a9ce7164f29b1cce2b8c366d93346c7abb0141..afb16f27203f83c91aff3eab4abf43189bcc0b95 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 2ec2353a05e66286edbd86f3be08dbd487bd1892..768b940b02db40c4b1d2ceafdb118ac8ca5ffaf0 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 c158760b2e3616cc41c7775b7c2b89b0e133bb65..451926633389fe40a5154589f996c9f261edf7ce 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 788b00e9ed7a4c4b19eef1fc1b499e33b52c9371..dd32a2682b48f4e2f2d38710cae8a5e4915139bf 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 d87398ea2f289d14960f2245c43417adda13c908..31f19889e23659e7333be49cefa244a4352c342f 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 253f18e934f3877b13a057e65b9f81f816a42074..efeb6167690572d38a26ff1927b9e36d730550d1 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 c269889dc5260ba66f50e41ce84acac47037a670..0036e88a8f0dbe3ad09de8dd5ca599d30e8dd49f 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 0073c74fc207a11003774fcc3c47fc5e41061a67..a0c1d57cbb8bb8424d88185cda6b20c2f592815c 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 74f72f2f04654e3115b811a02299b02fbc960f52..04307a825f5f73ee726c0b8cdd907ac7ba262d5c 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 ea6a0dedf9c341aa158fec948676569460bee5f7..32e6c4531c034160346965019286446c4cbcbe4d 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 23d406ab2698b1df8419b99194c239e8fcd38acb..3cbb7f1ae39b537627a6dee40e06eef012b7c7aa 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 bfb5f1da4700b0940b71fa76c44febfc623eb30d..33e8b533fba5bdaedfa28eea86555ca1fadd1b9c 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 28f9c1e5675e899319b65c4c57a37b586340c878..42f462d20c169b0c200a4bd84fa468e6cb236db2 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 505ea6672dfca1e9b2b3c21dd3ff0611ea80e4c9..2ee6b7a6349fa9ef667a3126099111a3e2126664 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 8acae8629d667c21ee2544b868d61a26131d46bd..c74cc08565f8ada5956e1aa79d9bf50e50bbf2af 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 78844ad89969b8bbc76f33149cac445fd73b08f6..7af61a150552c1f693b829adcbafc3351d180a44 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 4ad49c4c1f95f6aabab2a0718c8bc4364f56bbc2..fa05eb2c2065d1fac61c28c44884e08c5d86f94e 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 ae69854fa9827da417b4b79dbf63ba5cd6002d8f..4b1f921358a50b8164e102c531b92e7d2902d223 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 eb23ff5e5303c0a1a4b862cf671117f1a85e2578..147c898567585a3c7efc71742e20846aa13c9407 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 55961a8c206864e3b2439af2dc92b3ed5d1bbe66..b8ed52a1a6c13bf1d16672e33b211ea0552e58b5 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 fb5d720b3241e466d70bd555f5c6e6e0cc838680..10081d92da4eef21dd33751812b1522919ef9644 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 88606857a4348e552de8d6c61d6339efd91c3846..6d5b86712f2d1fca3fdf9c1738fb7ccd943b6dc6 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 fc9507e81d089f5d289366b5ac9c7be14c1f7956..7048ec8f5dcf1d4e4b83537794022ffc4639e99e 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 b6202d36b1cbd5f52ce08db51eba2c64d48f417a..dbb8db474284e0692334716fb6d87d2552f23ead 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 2cb9c961f968c294eca25790cc17d0bfa987e438..2a06ed69e1b030e1313fc1c6c2660f1740cced03 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 2944e0987a744f1617d32b00bba2bc5a99f80509..4d7f74feaf2c8b8bf02f0c88d2d3e3d3c49162ef 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 beed733eb5d8873b0fb2ff9512a7c9f31789bfa2..b33be3bfbf8249499c835e6f2385ce3cdfb1d517 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 7f388909d9d4e1710efdc37a112858544d36b66a..44ef6ccb47956a9a5aa1c1d5ee472992bc03ca9f 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 dba7db1ae283133b6aa3465a6de8fe3569a05309..102d26c7223deb791ce4af0c288604f06d732e60 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 93dcf53ef1d75215e39ea9d9e0209c4d5ff7dde0..3a9ea2c7e6e0505f50cc3b9885ec70ee073e12e1 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 030464b26c02aaf5a3ff56143310e62c45eac724..40b96e7ece13937bbe099ca62fbf09b995928194 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 57e5f5f09b5fc97876db3d61d53d9c5529c737ec..5541ec27c411c787f5f3d01bfceaf598ac024dfc 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 b01f6e43969856798cc7c763289fcad469f23232..c663ebd724b103825637abd4a50d3adcbbd0ce66 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 834f04cc27bebb1bbd2c38f00a18de863f106064..79a06c936ffd43ca627069b64512bec38d56d50e 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 1cc686a57f26f4a18b177be8dd20f0062161da94..a3361bd40fe2c59f74ee2fcfc5029a0b356ac6d5 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 a142f9322b82b74ed2c25b96e6684ea6494aa6bf..c1af0b9120a1f5fae905607d9ae8a6484810ced1 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 1d9b8d9a6881061de14a1726139c3e50e69fcefb..384d44aa8198108b8799213d39ac8fcc65a95826 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 630ff68bd76e8f729fbcdc4caf3bcfbc5334ce8a..eab7feedcac3e8207c9fb0db2cdb523164efe7ac 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 aa99a043eaced7f20e7d999ecfb8fd38936c1116..c8c770ef3a1a0ba02c0d1d39921f2e1d48e89547 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 656e964d9563024e0e419a1335e123b36ee6f692..e81a11de31b1fe73b068b15d78818b85fdce91d3 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 a944087b201a91736d1122ad9183b5b8a7d7a7c6..9ddfa59acc143e3eef489c4a2b3a10161af5cba7 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 57b0f0b70745c2300a287c80441e13fdf53b82d4..a496f902d763d16ad26178d79d07bc95f066b2b1 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 2153e88cce45bb46659d17d211726d17d08f8b72..be2059ba3b5b6c954e2ca6096fe38f558ca44981 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 4772d3947562019df3011f59c53369404fb22948..15541a42bd1d4c489451a74a4f92570b4da5b363 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 6c25fab06ec8adc3abb16fa5f2aadfc47074b17f..5f8d6eadf3fd207f601bd43c131d64df6ff992f6 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 e01b6bdf063479b06325f3cbcb87dac51b70fd1b..845cebef9f3b6c4902b55a8bdb25577ce9fcb055 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 69f0641329bcbb64f34ef0b3874477e078ff8058..fdabb1a3f83eb2e7b4ab0c6d93ace251c7c38a91 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 e244e05e044c064a550e106e999c3106b4979a6b..b81395c9d77a20682b6cd51a1ec2b94df832611e 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 5af86b2ad84c53b4d1def4de41f8f58cdc1a4165..9e06a63b20ff972277c253738f36893a2db18bca 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 612884e8e0ccdb646491be2aa04edf736f04475d..015dff01bbdbc128558cff522fa3621436ef05d7 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 db3086cb489e18a13244a0a68a7782d3c852a8c0..e1960708c5d9df3dd43293df50eaa1c2bc3b4230 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 018c1d1c6d00f811b47083f9b095f3f1375f1326..0f03ec2d783e96d94d21d725b6a206afeddf668c 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 fbf26e08e0ca862d9fa18320c2627e2235a1bcb1..fac83cd2b847123e03056e85175e4e40f4dcd5a6 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 2cd32e6c8d2418965ed545013d8d4c68d8c6bc50..783a0ec9bc26eac92b0aa17bee7896f2a8391452 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 8ba4784807b43e110b15339fd51ac144c1abbbf6..d43cd7d7a1a08188a41d98766fedbdc44669de9d 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 942edd3bf2404221f8ddfa7d71e6b19375958345..17c4202c6fc51505433846d7246d5e1d286f03a6 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 b37a2bfde4f6be6554614a50b6a0d9713c17c5bc..b117bcf8bce673e306c00d386f4f3a5755125231 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 30330574a4541b8f448d67cceca95067dc0afc89..5918bafece67d50bf9cf049c7be75fb732f3f108 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 bd56a94f9cc9f01ef2c271ff5fbb4bd5cefd2e12..0d64cbf0240a87849f31aaa5d2a7815e0756f9d3 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 23e8467291f29fc08b391cb66faf4411a229013e..a22655c1f986f8b8d5d829a9defede2203945d8e 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 34a00712ab5eaa3a4dd7b5e9479c156a06c0e4a1..2876661d2f8d782534c58d1df930c9b9b9f069b9 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 b44481b348c4d97429466e50f0e11523d7ca1d98..0f7bf2bb17438f0fd3e47fc5893c8715a6c6fc1b 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 f18d071df1d5df718e53c8a3e40b71259cb98adf..67f5fee6aa84f4dcd5e1ff9111a65a1a94dee3d5 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 c246827d0c69bbeacaa8a93e18e872dc47b037df..639f8218d789b07faabb42d9a41fa405da75268a 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 8a8ee84cd912f81fb99b0461ff6492917a473948..80d4f73799b4470e3e51c39096418f6eda24ba64 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 6f351eeb4eb087f81e784a4eac450772dae06b35..fb5651b16b1d3e75eabcd5a5770279acc45aa582 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 eabbb1f8e98db4667dbdc09a8dcb92c7c0e30e8d..7ea7e90d313c157747df0fbf44cb5b132c293c90 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 52b0e18ff320d4200227e96081077a29190e1a23..77ab06c3a7680040fbbfa5b41cff7bcdda7a93d5 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 3127d6e4a17ca30af052eee6e25dff09e19cdbfb..29f50fa13b806c75e1763824a879462dc1753945 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 9ec3e281af90297b92264e72fd39cbacdf4c16ea..167a62fc297f96c0e4b095f18a1f65abe2b7416d 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 3409f379712c78e53f91f6098b4445dc9802836d..0c42d2c191e39409959be3be3e624328c4d8e2ff 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 5b96b199d0e7e5ae4145e03bd547a0249ead79b0..684528cecb248c9b87c5eba9d18459d031fb92a4 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 896dd4004f26704398914fbb679e9c04e0ed62aa..d5be432e5b7d0cdcab6dd4b20bd01abbf51c1052 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 827beedac60dcc57022371ec6772210c3ac67a7c..addef57973f00876d4deda8a1fc8b54b41e354fe 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 e977d9e7e956e0329c7c11a96dbd05310b6b8667..10a209e88b1b85f07f98448ccaceed8cee55b622 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 40dcd82657517dbee333fde032b597c38f74c985..2876d7177b3628314ebd71fa4b4dad171a056994 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 5827622f22878868c785ec4acd22c372515113e1..b59e996f9af10ee5ce031c8da296a3c7599779ff 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 24439ee8a03c631372b0e20469b0246ccbd58049..e9670403892723e389a4fb83a6126afdd29e3a41 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 9d4d8a1993c66814068f5f52aae10e28fb5cbf5e..8c1b18dbcef560867482f21530fad8d8b5dc6ef3 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 c281ebf4816e7a9df344483080b24e87c339d973..9cb15a81f5ba679c2f641497576595b7e53738e0 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 614a501d1cb179980d35d32d58270581806cf400..9c8072664b74bd8da14cfe401be6a3a7d3452546 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 ea56736c176a7c1c80bb2cdec29ea5017baba995..a60923b15a1892f4c51e20094518c1567cec5c3e 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 59d9b0f902192b1e3a39e3fd64714a7576f8397d..fc2ae36f31bedff753de82fd5a69aa7445bf5b81 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 03f75cca2f5a64f99acc6ab8f278dca53a077056..2bb856d8e275598a767289ca8f8bdddb307597a5 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 f5b5e84851d6d49d648fb70c33437a49cc99c785..680d124e9b85222a74aa179bac5f7a2d6176aae8 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 40103f08abba33e0f370d457bfef02e95ac89309..d9adbd6d194a69778a7ba13fc348ad30f10a760a 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 38c8ee276aa27d09df2a5442850c6e4ded329efd..0110451d5cc3d9231ac1330a3e25a2143619a14b 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 96652b73340fd4760560709f7277da77fab7676a..a265c6fec98009a26186be56091c0d8c25ffd8b0 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 21dd3a9002ffd5c55133d1fe772d50b1b45138b4..a6170683b8222fb7680eccd5c50a30a522fdaf55 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 b6bc4dbf7f9cbd459613a3e2bc4192a20d33b9d4..855622f24d72aefb84347e3c22fd91257a1d37b3 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 c7a2654aa814361ee3eb8fc1d0795f7bbcf932a2..5ab5316a4e50615b702c3a2d052f3cfd17ac3120 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 395517f51fa5bcf8008a0c224fa20b54e4dfb682..996ea54c2fb71f43281cf8231340aa669676dcc2 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 26b2a385bf8a5ffce2f4610c0c9da3ba7793c696..2c26a197da27dc2694d2732f44fc21ce3d363fd3 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 938356ce301022da7ea8d126848b344adda018f1..f844728f955d0612e1c88560e0d4dc817258d56c 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 606ffae69894b10b0533b74a70941de3e89b63d5..eac05d59f337f81b8a3e5a1e8b9b1b0ae3b2570f 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 27414bb424510f65af2fa5e6f7ff91fd07fcd67c..1c537f3f7aac3e2de568fb426846ca15caea1a6f 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 2e153a9c5e31f02adebb40dbf528f2913408a5d7..d3e6d80d370e04943b4265091ce4df1acef3ed4c 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 c22052113922fb68b32bc146643aa9846fcfbff0..6752ee145bcd1c99476e0bfffe5d363573a797e2 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 2294def45c68fc9197c41edb7c93c8259c5867e0..b377393c264e3bc2dee16219c4522d1831cfe88d 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 7ae45e2fe8f89804aac8dae7e98dfeec28144db8..7a001972f694212918fedd8e7500110780f673bc 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 a6d30b23b8ed5a8cbe5678dc5ed8b7de14bb6b59..919d588cc656334290ab100ce5271c6f8e0cbb48 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 ce68766de5aa201e088f893fb693cb72075426ee..4b9ad67d3cb336bbe082d6fae13ebf511bc1f643 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 */