diff --git a/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php b/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php index 83c335157e..0ea981d856 100644 --- a/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php +++ b/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php @@ -399,7 +399,7 @@ protected function assertBigPipePlaceholders(array $expected_big_pipe_placeholde $this->assertRaw(BigPipe::STOP_SIGNAL, 'BigPipe stop signal present.'); $start_signal_position = strpos($this->getSession()->getPage()->getContent(), BigPipe::START_SIGNAL); $stop_signal_position = strpos($this->getSession()->getPage()->getContent(), BigPipe::STOP_SIGNAL); - // Verify that the BigPipe start signal appears before stop signal. + // Verify that the BigPipe start signal appears before the stop signal. $this->assertLessThan($stop_signal_position, $start_signal_position); $this->pass('Verifying BigPipe placeholder replacements and start/stop signals were streamed in the correct order…', 'Debug'); diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php index 291df5e398..65a66a91f7 100644 --- a/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php +++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php @@ -148,9 +148,9 @@ protected function doTestBasicTranslation() { $created_field_name = $entity->hasField('content_translation_created') ? 'content_translation_created' : 'created'; if ($entity->getFieldDefinition($created_field_name)->isTranslatable()) { - // Verify that translation creation timestamp of the target translation + // Verify that the translation creation timestamp of the target translation // language is newer than the creation timestamp of the source translation - // default language for translatable created field. + // default language for the translatable created field. $this->assertGreaterThan($metadata_source_translation->getCreatedTime(), $metadata_target_translation->getCreatedTime()); } else { diff --git a/core/modules/field_ui/tests/src/Functional/EntityDisplayModeTest.php b/core/modules/field_ui/tests/src/Functional/EntityDisplayModeTest.php index 2ed0ab270f..31312dd8a4 100644 --- a/core/modules/field_ui/tests/src/Functional/EntityDisplayModeTest.php +++ b/core/modules/field_ui/tests/src/Functional/EntityDisplayModeTest.php @@ -179,7 +179,7 @@ public function testAlphabeticalDisplaySettings() { $start = strpos($page_text, 'view modes'); $pos = $start; $list = ['Full content', 'RSS', 'Search index', 'Search result', 'Teaser']; - // Verify that the order of view mode is correct on page. + // Verify that the order of the view modes is correct on page. foreach ($list as $name) { $new_pos = strpos($page_text, $name, $start); $this->assertGreaterThan($pos, $new_pos); @@ -203,7 +203,7 @@ public function testAlphabeticalDisplaySettings() { $start = strpos($page_text, 'view modes'); $pos = $start; $list = ['Breezer', 'Full content']; - // Verify that the order of view mode is correct on page. + // Verify that the order of the view modes is correct on page. foreach ($list as $name) { $new_pos = strpos($page_text, $name, $start); $this->assertGreaterThan($pos, $new_pos); diff --git a/core/modules/file/tests/src/Kernel/ValidatorTest.php b/core/modules/file/tests/src/Kernel/ValidatorTest.php index c73c45bc88..97e2ad6c17 100644 --- a/core/modules/file/tests/src/Kernel/ValidatorTest.php +++ b/core/modules/file/tests/src/Kernel/ValidatorTest.php @@ -97,9 +97,8 @@ public function testFileValidateImageResolution() { $this->assertCount(0, $errors, 'No errors should be reported when an oversized image can be scaled down.'); $image = $this->container->get('image.factory')->get($this->image->getFileUri()); - // Verify that the image scaled to correct width. + // Verify that the image was scaled to the correct width and height. $this->assertLessThanOrEqual(10, $image->getWidth()); - // Verify that the image scaled to correct height. $this->assertLessThanOrEqual(5, $image->getHeight()); // Once again, now with negative width and height to force an error. diff --git a/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php b/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php index 55de12051a..7b87ac9ffa 100644 --- a/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php +++ b/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php @@ -113,9 +113,8 @@ public function testUpdateCron() { $history = locale_translation_get_file_history(); $initial = $initial_history['contrib_module_two']['de']; $current = $history['contrib_module_two']['de']; - // Verify that timestamp is updated. + // Verify that the translation of contrib_module_one is imported and updated. $this->assertGreaterThan($initial->timestamp, $current->timestamp); - // Verify that last checked is updated. $this->assertGreaterThan($initial->last_checked, $current->last_checked); } diff --git a/core/modules/system/tests/src/Functional/Theme/ThemeSuggestionsAlterTest.php b/core/modules/system/tests/src/Functional/Theme/ThemeSuggestionsAlterTest.php index 5b3199fad6..444c7a3b64 100644 --- a/core/modules/system/tests/src/Functional/Theme/ThemeSuggestionsAlterTest.php +++ b/core/modules/system/tests/src/Functional/Theme/ThemeSuggestionsAlterTest.php @@ -113,7 +113,7 @@ public function testSpecificSuggestionsAlter() { $this->drupalGet('theme-test/specific-suggestion-alter'); $this->assertText('Template overridden based on suggestion alter hook determined by the base hook.'); $raw_content = $this->getSession()->getPage()->getContent(); - // Verify that specific theme call is added to the suggestions array before + // Verify that a specific theme call is added to the suggestions array before // the suggestions alter hook. $this->assertLessThan(strpos($raw_content, 'theme_test_specific_suggestions__variant__foo'), strpos($raw_content, 'theme_test_specific_suggestions__variant')); } diff --git a/core/modules/user/tests/src/Functional/UserRegistrationTest.php b/core/modules/user/tests/src/Functional/UserRegistrationTest.php index 9dfd084df4..20074d3ab5 100644 --- a/core/modules/user/tests/src/Functional/UserRegistrationTest.php +++ b/core/modules/user/tests/src/Functional/UserRegistrationTest.php @@ -260,7 +260,7 @@ public function testRegistrationDefaultValues() { $new_user = reset($accounts); $this->assertEqual($new_user->getAccountName(), $name, 'Username matches.'); $this->assertEqual($new_user->getEmail(), $mail, 'Email address matches.'); - // Verify that the correct creation time is correct. + // Verify that the creation time is correct. $this->assertGreaterThan(REQUEST_TIME - 20, $new_user->getCreatedTime()); $this->assertEqual($new_user->isActive(), $config_user_settings->get('register') == UserInterface::REGISTER_VISITORS ? 1 : 0, 'Correct status field.'); $this->assertEqual($new_user->getTimezone(), $config_system_date->get('timezone.default'), 'Correct time zone field.'); diff --git a/core/modules/views/tests/src/Kernel/Handler/AreaOrderTest.php b/core/modules/views/tests/src/Kernel/Handler/AreaOrderTest.php index 7989030a61..968008a578 100644 --- a/core/modules/views/tests/src/Kernel/Handler/AreaOrderTest.php +++ b/core/modules/views/tests/src/Kernel/Handler/AreaOrderTest.php @@ -70,8 +70,6 @@ public function testAreaOrder() { // Make sure "powered" is before "branding", so it reflects the position // in the configuration, and not the weight of the blocks. - // Verify that the block bartik-powered is positioned before block - // bartik-branding. $this->assertLessThan($position_branding, $position_powered); } diff --git a/core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php b/core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php index 999a7f015c..4dbb996a0f 100644 --- a/core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php +++ b/core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php @@ -37,7 +37,7 @@ public function testDefaultJoin() { $num_records = 0; $last_priority = 0; - // Verify that the results returned in correct order. + // Verify that the results are returned in the correct order. foreach ($result as $record) { $num_records++; $this->assertGreaterThanOrEqual($last_priority, $record->$priority_field); @@ -64,7 +64,7 @@ public function testLeftOuterJoin() { $num_records = 0; $last_name = 0; - // Verify that the results returned in correct order. + // Verify that the results are returned in the correct order. foreach ($result as $record) { $num_records++; $this->assertGreaterThanOrEqual(0, strcmp($record->$name_field, $last_name)); @@ -87,7 +87,7 @@ public function testGroupBy() { $num_records = 0; $last_count = 0; $records = []; - // Verify that the results returned in correct order. + // Verify that the results are returned in the correct order. foreach ($result as $record) { $num_records++; $this->assertGreaterThanOrEqual($last_count, $record->$count_field); @@ -125,7 +125,7 @@ public function testGroupByAndHaving() { $num_records = 0; $last_count = 0; $records = []; - // Verify that the results returned in correct order. + // Verify that the results are returned in the correct order. foreach ($result as $record) { $num_records++; $this->assertGreaterThanOrEqual(2, $record->$count_field); @@ -413,7 +413,7 @@ public function testJoinConditionObject() { $last_priority = 0; foreach ($result as $record) { $num_records++; - // Verify that the results returned in correct order. + // Verify that the results are returned in the correct order. $this->assertGreaterThanOrEqual($last_priority, $record->$priority_field); $this->assertNotEqual($record->$name_field, 'Ringo', 'Taskless person not selected.'); $last_priority = $record->$priority_field; diff --git a/core/tests/Drupal/KernelTests/Core/Database/SelectOrderedTest.php b/core/tests/Drupal/KernelTests/Core/Database/SelectOrderedTest.php index 41a3dd384b..c45284a04d 100644 --- a/core/tests/Drupal/KernelTests/Core/Database/SelectOrderedTest.php +++ b/core/tests/Drupal/KernelTests/Core/Database/SelectOrderedTest.php @@ -23,7 +23,7 @@ public function testSimpleSelectOrdered() { $last_age = 0; foreach ($result as $record) { $num_records++; - // Verify that results returned in correct order. + // Verify that the results are returned in the correct order. $this->assertGreaterThanOrEqual($last_age, $record->age); $last_age = $record->age; } @@ -76,7 +76,7 @@ public function testSimpleSelectOrderedDesc() { $last_age = 100000000; foreach ($result as $record) { $num_records++; - // Verify that results returned in correct order. + // Verify that the results are returned in the correct order. $this->assertLessThanOrEqual($last_age, $record->age); $last_age = $record->age; } diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityRevisionTranslationTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityRevisionTranslationTest.php index 686aeaeb06..b2f0f17905 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityRevisionTranslationTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityRevisionTranslationTest.php @@ -51,8 +51,8 @@ public function testNewRevisionAfterTranslation() { $translation->setNewRevision(); $translation->save(); - // Verify that the saved translation in new revision has a newer revision - // ID. + // Verify that the saved translation for the new translation has a newer + // revision ID. $this->assertGreaterThan($old_rev_id, $translation->getRevisionId()); // Verify that the entity from the storage has a newer revision ID. $this->assertGreaterThan($old_rev_id, $this->reloadEntity($entity)->getRevisionId());