diff --git a/core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php b/core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php
index 867e8381d12315533b38903f5ce181164db961ea..d166188f1f620d345c89a6eaa3e68ab99b3d709b 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php
@@ -166,7 +166,7 @@ public function testBlockContentTypeDeletion() {
       t('%label is used by 1 custom block on your site. You can not remove this block type until you have removed all of the %label blocks.', ['%label' => $type->label()]),
       'The block type will not be deleted until all blocks of that type are removed.'
     );
-    $this->assertNoText(t('This action cannot be undone.'), 'The block type deletion confirmation form is not available.');
+    $this->assertNoText('This action cannot be undone.', 'The block type deletion confirmation form is not available.');
 
     // Delete the block.
     $block->delete();
diff --git a/core/modules/comment/tests/src/Functional/CommentBlockTest.php b/core/modules/comment/tests/src/Functional/CommentBlockTest.php
index b5fcb651bd4f5fb16364bf030ed6add2954ab57e..e5b7852a358f20b2f6925f3c0330825c8efd09d1 100644
--- a/core/modules/comment/tests/src/Functional/CommentBlockTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentBlockTest.php
@@ -61,7 +61,7 @@ public function testRecentCommentBlock() {
     $this->drupalLogout();
     user_role_revoke_permissions(RoleInterface::ANONYMOUS_ID, ['access comments']);
     $this->drupalGet('');
-    $this->assertNoText(t('Recent comments'));
+    $this->assertNoText('Recent comments');
     user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, ['access comments']);
 
     // Test that a user with the 'access comments' permission can see the
diff --git a/core/modules/comment/tests/src/Functional/CommentBookTest.php b/core/modules/comment/tests/src/Functional/CommentBookTest.php
index 77037557394901f35e5219839351402335429788..83bd9b9ce286cfd57e10246df80238252a0a2e2c 100644
--- a/core/modules/comment/tests/src/Functional/CommentBookTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentBookTest.php
@@ -81,7 +81,7 @@ public function testBookCommentPrint() {
     $this->assertText($comment_subject, 'Comment subject found');
     $this->assertText($comment_body, 'Comment body found');
 
-    $this->assertNoText(t('Add new comment'), 'Comment form not found');
+    $this->assertNoText('Add new comment', 'Comment form not found');
     // Verify that the comment form subject field is not found.
     $this->assertSession()->fieldNotExists('subject[0][value]');
   }
diff --git a/core/modules/comment/tests/src/Functional/CommentFieldsTest.php b/core/modules/comment/tests/src/Functional/CommentFieldsTest.php
index 6afee3a03fda71dfaee74bd7ffd43d00b196ecba..462408163119774fe87ec9ab5a38f734522765c1 100644
--- a/core/modules/comment/tests/src/Functional/CommentFieldsTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentFieldsTest.php
@@ -180,7 +180,7 @@ public function testCommentFieldCreate() {
     ];
     $this->drupalPostForm('admin/config/people/accounts/fields/user.user.field_user_comment/storage', $edit, t('Save field settings'));
     // We shouldn't get an error message.
-    $this->assertNoText(t('An illegal choice has been detected. Please contact the site administrator.'));
+    $this->assertNoText('An illegal choice has been detected. Please contact the site administrator.');
   }
 
   /**
diff --git a/core/modules/comment/tests/src/Functional/CommentPagerTest.php b/core/modules/comment/tests/src/Functional/CommentPagerTest.php
index 6e501a1f7f681a80205e1a358dfc3b2ebc8bb0f9..3e4c7a0b21cdd9c539d2cc02b6290773dfde3526 100644
--- a/core/modules/comment/tests/src/Functional/CommentPagerTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentPagerTest.php
@@ -343,8 +343,8 @@ public function testTwoPagers() {
     $account = $this->drupalCreateUser(['administer node display']);
     $this->drupalLogin($account);
     $this->drupalGet('admin/structure/types/manage/article/display');
-    $this->assertNoText(t('Pager ID: @id', ['@id' => 0]), 'No summary for standard pager');
-    $this->assertText(t('Pager ID: @id', ['@id' => 1]));
+    $this->assertNoText('Pager ID: 0', 'No summary for standard pager');
+    $this->assertText('Pager ID: 1');
     $this->drupalPostForm(NULL, [], 'comment_settings_edit');
     // Change default pager to 2.
     $this->drupalPostForm(NULL, ['fields[comment][settings_edit_form][settings][pager_id]' => 2], t('Save'));
@@ -352,7 +352,7 @@ public function testTwoPagers() {
     // Revert the changes.
     $this->drupalPostForm(NULL, [], 'comment_settings_edit');
     $this->drupalPostForm(NULL, ['fields[comment][settings_edit_form][settings][pager_id]' => 0], t('Save'));
-    $this->assertNoText(t('Pager ID: @id', ['@id' => 0]), 'No summary for standard pager');
+    $this->assertNoText('Pager ID: 0', 'No summary for standard pager');
 
     $this->drupalLogin($this->adminUser);
 
diff --git a/core/modules/comment/tests/src/Functional/CommentTypeTest.php b/core/modules/comment/tests/src/Functional/CommentTypeTest.php
index 5d41ad52ff4c38db0e56335785c3dc923cfb9b5b..4627ea316ac9596db739bcd55a8fbcac2dc75320 100644
--- a/core/modules/comment/tests/src/Functional/CommentTypeTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentTypeTest.php
@@ -168,7 +168,7 @@ public function testCommentTypeDeletion() {
       ]),
       'The comment type will not be deleted until all fields of that type are removed.'
     );
-    $this->assertNoText(t('This action cannot be undone.'), 'The comment type deletion confirmation form is not available.');
+    $this->assertNoText('This action cannot be undone.', 'The comment type deletion confirmation form is not available.');
 
     // Delete the comment and the field.
     $comment->delete();
diff --git a/core/modules/config/tests/src/Functional/ConfigDependencyWebTest.php b/core/modules/config/tests/src/Functional/ConfigDependencyWebTest.php
index 28013f60b6aaed3ffd7610d5d141d6cde026cccd..3b0a3d2ef913e7f0a2de1c99958cdf26c55a7712 100644
--- a/core/modules/config/tests/src/Functional/ConfigDependencyWebTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigDependencyWebTest.php
@@ -66,10 +66,10 @@ public function testConfigDependencyDeleteFormTrait() {
     $entity2->save();
 
     $this->drupalGet($entity2->toUrl('delete-form'));
-    $this->assertNoText(t('Configuration updates'), 'No configuration updates found.');
-    $this->assertNoText(t('Configuration deletions'), 'No configuration deletes found.');
+    $this->assertNoText('Configuration updates', 'No configuration updates found.');
+    $this->assertNoText('Configuration deletions', 'No configuration deletes found.');
     $this->drupalGet($entity1->toUrl('delete-form'));
-    $this->assertNoText(t('Configuration updates'), 'No configuration updates found.');
+    $this->assertNoText('Configuration updates', 'No configuration updates found.');
     $this->assertText(t('Configuration deletions'), 'Configuration deletions found.');
     $this->assertText($entity2->id(), 'Entity2 id found');
     $this->drupalPostForm($entity1->toUrl('delete-form'), [], 'Delete');
@@ -118,7 +118,7 @@ public function testConfigDependencyDeleteFormTrait() {
 
     $this->drupalGet($entity1->toUrl('delete-form'));
     $this->assertText(t('Configuration updates'), 'Configuration updates found.');
-    $this->assertNoText(t('Configuration deletions'), 'No configuration deletions found.');
+    $this->assertNoText('Configuration deletions', 'No configuration deletions found.');
     $this->assertNoText($entity2->id(), 'Entity2 id not found');
     $this->assertText($entity2->label(), 'Entity2 label not found');
     $this->assertNoText($entity3->id(), 'Entity3 id not found');
diff --git a/core/modules/config/tests/src/Functional/ConfigExportImportUITest.php b/core/modules/config/tests/src/Functional/ConfigExportImportUITest.php
index 446563abc884e31fea003765fbdfd95c46b24033..b2f19e57995aa0b1ade51135b1979c3f12f59a25 100644
--- a/core/modules/config/tests/src/Functional/ConfigExportImportUITest.php
+++ b/core/modules/config/tests/src/Functional/ConfigExportImportUITest.php
@@ -91,7 +91,7 @@ protected function setUp(): void {
   public function testExportImport() {
     // After installation there is no snapshot and nothing to import.
     $this->drupalGet('admin/config/development/configuration');
-    $this->assertNoText(t('Warning message'));
+    $this->assertNoText('Warning message');
     $this->assertText(t('There are no configuration changes to import.'));
 
     $this->originalSlogan = $this->config('system.site')->get('slogan');
@@ -168,13 +168,13 @@ public function testExportImport() {
     file_put_contents($filename, $this->tarball);
     $this->drupalPostForm('admin/config/development/configuration/full/import', ['files[import_tarball]' => $filename], 'Upload');
     // There is no snapshot yet because an import has never run.
-    $this->assertNoText(t('Warning message'));
-    $this->assertNoText(t('There are no configuration changes to import.'));
+    $this->assertNoText('Warning message');
+    $this->assertNoText('There are no configuration changes to import.');
     $this->assertText($this->contentType->label());
 
     $this->drupalPostForm(NULL, [], 'Import all');
     // After importing the snapshot has been updated an there are no warnings.
-    $this->assertNoText(t('Warning message'));
+    $this->assertNoText('Warning message');
     $this->assertText(t('There are no configuration changes to import.'));
 
     $this->assertEquals($this->newSlogan, $this->config('system.site')->get('slogan'));
@@ -195,7 +195,7 @@ public function testExportImport() {
     // active and snapshot should no longer exist.
     \Drupal::service('config.storage.sync')->deleteAll();
     $this->drupalGet('admin/config/development/configuration');
-    $this->assertNoText(t('Warning message'));
+    $this->assertNoText('Warning message');
     $this->assertNoText('The following items in your active configuration have changes since the last import that may be lost on the next import.');
     $this->assertText(t('There are no configuration changes to import.'));
     // Write a file to sync. The warning about differences between the active
@@ -278,7 +278,7 @@ public function testExportImportCollections() {
     $this->drupalPostForm('admin/config/development/configuration/full/import', ['files[import_tarball]' => $filename], 'Upload');
     // Verify that there are configuration differences to import.
     $this->drupalGet('admin/config/development/configuration');
-    $this->assertNoText(t('There are no configuration changes to import.'));
+    $this->assertNoText('There are no configuration changes to import.');
     $this->assertText(t('@collection configuration collection', ['@collection' => 'collection.test1']));
     $this->assertText(t('@collection configuration collection', ['@collection' => 'collection.test2']));
     $this->assertText('config_test.create');
diff --git a/core/modules/config/tests/src/Functional/ConfigImportUITest.php b/core/modules/config/tests/src/Functional/ConfigImportUITest.php
index a78fbda6be8158ffb61e0168afd03854e575923c..11cf55403596147e13e6e5dcfcbfcf3903c980e5 100644
--- a/core/modules/config/tests/src/Functional/ConfigImportUITest.php
+++ b/core/modules/config/tests/src/Functional/ConfigImportUITest.php
@@ -238,7 +238,7 @@ public function testImportLock() {
 
     // Verify that there are configuration differences to import.
     $this->drupalGet('admin/config/development/configuration');
-    $this->assertNoText(t('There are no configuration changes to import.'));
+    $this->assertNoText('There are no configuration changes to import.');
 
     // Acquire a fake-lock on the import mechanism.
     $config_importer = $this->configImporter();
@@ -362,7 +362,7 @@ public function testImportValidation() {
     $this->prepareSiteNameUpdate($new_site_name);
 
     $this->drupalGet('admin/config/development/configuration');
-    $this->assertNoText(t('There are no configuration changes to import.'));
+    $this->assertNoText('There are no configuration changes to import.');
     $this->drupalPostForm(NULL, [], t('Import all'));
 
     // Verify that the validation messages appear.
@@ -439,13 +439,13 @@ public function testImportErrorLog() {
     $sync->write($name_secondary, $values_secondary);
     // Verify that there are configuration differences to import.
     $this->drupalGet('admin/config/development/configuration');
-    $this->assertNoText(t('There are no configuration changes to import.'));
+    $this->assertNoText('There are no configuration changes to import.');
 
     // Attempt to import configuration and verify that an error message appears.
     $this->drupalPostForm(NULL, [], t('Import all'));
     $this->assertText(new FormattableMarkup('Deleted and replaced configuration entity "@name"', ['@name' => $name_secondary]));
     $this->assertText(t('The configuration was imported with errors.'));
-    $this->assertNoText(t('The configuration was imported successfully.'));
+    $this->assertNoText('The configuration was imported successfully.');
     $this->assertText(t('There are no configuration changes to import.'));
   }
 
diff --git a/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php b/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php
index 55960c851694dfa73594e5a68f12bda9727a0c08..ca687db574fd40d386045cc7e4561f982b64ec8a 100644
--- a/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php
+++ b/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php
@@ -897,8 +897,8 @@ public function testAlterInfo() {
     // Check if the translation page does not have the altered out settings.
     $this->drupalGet('admin/config/people/accounts/translate/fr/add');
     $this->assertText(t('Name'));
-    $this->assertNoText(t('Account cancellation confirmation'));
-    $this->assertNoText(t('Password recovery'));
+    $this->assertNoText('Account cancellation confirmation');
+    $this->assertNoText('Password recovery');
   }
 
   /**
diff --git a/core/modules/contact/tests/src/Functional/ContactSitewideTest.php b/core/modules/contact/tests/src/Functional/ContactSitewideTest.php
index b76ab8f918892a6b0e9e8b831329286e60736e66..aa52887e57b3f1aa04695c353faa170b3180027a 100644
--- a/core/modules/contact/tests/src/Functional/ContactSitewideTest.php
+++ b/core/modules/contact/tests/src/Functional/ContactSitewideTest.php
@@ -214,7 +214,7 @@ public function testSiteWideContact() {
     $this->drupalLogout();
     $this->drupalGet('contact');
     $this->assertText(t('Your email address'));
-    $this->assertNoText(t('Form'));
+    $this->assertNoText('Form');
     $this->drupalLogin($admin_user);
 
     // Add more forms.
@@ -226,7 +226,7 @@ public function testSiteWideContact() {
 
     // Try adding a form that already exists.
     $this->addContactForm($name, $label, '', '', FALSE);
-    $this->assertNoText(t('Contact form @label has been added.', ['@label' => $label]));
+    $this->assertNoText("Contact form $label has been added.");
     $this->assertRaw(t('The machine-readable name is already in use. It must be unique.'));
 
     $this->drupalLogout();
diff --git a/core/modules/contact/tests/src/Functional/ContactStorageTest.php b/core/modules/contact/tests/src/Functional/ContactStorageTest.php
index 3ef5ccc47db3a44bad8bbb40e44103243d2f50cd..f237f62d0486335659047978121a6530ea4928e6 100644
--- a/core/modules/contact/tests/src/Functional/ContactStorageTest.php
+++ b/core/modules/contact/tests/src/Functional/ContactStorageTest.php
@@ -61,7 +61,7 @@ public function testContactStorage() {
     $this->drupalLogout();
     $this->drupalGet('contact');
     $this->assertText(t('Your email address'));
-    $this->assertNoText(t('Form'));
+    $this->assertNoText('Form');
     $this->submitContact($name = $this->randomMachineName(16), $mail, $subject = $this->randomMachineName(16), $id, $message = $this->randomMachineName(64));
     $this->assertText(t('Your message has been sent.'));
 
diff --git a/core/modules/field_ui/tests/src/Functional/FieldUIDeleteTest.php b/core/modules/field_ui/tests/src/Functional/FieldUIDeleteTest.php
index 156664f00f1d61d9bd5b8a8d51055325315def78..5ed414d2819fcb717d36b8fa9a05097f7bfdda18 100644
--- a/core/modules/field_ui/tests/src/Functional/FieldUIDeleteTest.php
+++ b/core/modules/field_ui/tests/src/Functional/FieldUIDeleteTest.php
@@ -107,8 +107,8 @@ public function testDeleteField() {
     // Check the config dependencies of the first field, the field storage must
     // not be shown as being deleted yet.
     $this->drupalGet("$bundle_path1/fields/node.$type_name1.$field_name/delete");
-    $this->assertNoText(t('The listed configuration will be deleted.'));
-    $this->assertNoText(t('View'));
+    $this->assertNoText('The listed configuration will be deleted.');
+    $this->assertNoText('View');
     $this->assertNoText('test_view_field_delete');
 
     // Delete the first field.
diff --git a/core/modules/forum/tests/src/Functional/ForumTest.php b/core/modules/forum/tests/src/Functional/ForumTest.php
index dd82a0cdca5bc2546319618d60b027c5850be535..eb718db663a38f8bcf2594b0e823239e2f36aad5 100644
--- a/core/modules/forum/tests/src/Functional/ForumTest.php
+++ b/core/modules/forum/tests/src/Functional/ForumTest.php
@@ -581,7 +581,7 @@ public function createForumTopic($forum, $container = FALSE) {
 
     $type = t('Forum topic');
     if ($container) {
-      $this->assertNoText(t('@type @title has been created.', ['@type' => $type, '@title' => $title]), 'Forum topic was not created');
+      $this->assertNoText("$type $title has been created.", 'Forum topic was not created');
       $this->assertRaw(t('The item %title is a forum container, not a forum.', ['%title' => $forum['name']]), 'Error message was shown');
       return;
     }
diff --git a/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php b/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php
index 6b94ca575c13ba3d51b7e634e211782da7d676bd..193e28c6a3cb1a681c6e51bbde56c04f36e2c842 100644
--- a/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php
+++ b/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php
@@ -386,7 +386,7 @@ public function testEditEffect() {
     $this->assertText(t('Scale and crop 360×240'));
 
     // Check that the previous effect is replaced.
-    $this->assertNoText(t('Scale and crop 300×200'));
+    $this->assertNoText('Scale and crop 300×200');
 
     // Add another scale effect.
     $this->drupalGet('admin/config/media/image-styles/add');
diff --git a/core/modules/image/tests/src/Functional/ImageFieldValidateTest.php b/core/modules/image/tests/src/Functional/ImageFieldValidateTest.php
index e02b0ed604c9d7e857c8bd74ab8c61c2dc1ac055..1a504ebe528f75487f4f676b883a9661642954b0 100644
--- a/core/modules/image/tests/src/Functional/ImageFieldValidateTest.php
+++ b/core/modules/image/tests/src/Functional/ImageFieldValidateTest.php
@@ -198,8 +198,8 @@ public function testRequiredAttributes() {
     ];
     $this->drupalPostForm('node/add/article', $edit, t('Save'));
 
-    $this->assertNoText(t('Alternative text field is required.'));
-    $this->assertNoText(t('Title field is required.'));
+    $this->assertNoText('Alternative text field is required.');
+    $this->assertNoText('Title field is required.');
 
     $instance->setSetting('required', 0);
     $instance->setSetting('alt_field_required', 1);
@@ -211,8 +211,8 @@ public function testRequiredAttributes() {
     ];
     $this->drupalPostForm('node/add/article', $edit, t('Save'));
 
-    $this->assertNoText(t('Alternative text field is required.'));
-    $this->assertNoText(t('Title field is required.'));
+    $this->assertNoText('Alternative text field is required.');
+    $this->assertNoText('Title field is required.');
   }
 
   /**
diff --git a/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php b/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php
index 64f5efa834b273c27cb5819f18abc9e12e86418d..ed632dbccd19a9c18d3c0a6df3a99615bbe381b8 100644
--- a/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php
@@ -101,7 +101,7 @@ public function testLanguageConfiguration() {
       'prefix[fr]' => '',
     ];
     $this->drupalPostForm(NULL, $edit, t('Save configuration'));
-    $this->assertNoText(t('The prefix may only be left blank for the selected detection fallback language.'), 'The path prefix can be removed for the default language');
+    $this->assertNoText('The prefix may only be left blank for the selected detection fallback language.', 'The path prefix can be removed for the default language');
 
     // Change default negotiation language.
     $this->config('language.negotiation')->set('selected_langcode', 'fr')->save();
diff --git a/core/modules/link/tests/src/Functional/LinkFieldTest.php b/core/modules/link/tests/src/Functional/LinkFieldTest.php
index 149a8f3b8fb25b0b8147992e31a75291e45872d4..4f75f41d78536e0143f7214a300565cbf7573127 100644
--- a/core/modules/link/tests/src/Functional/LinkFieldTest.php
+++ b/core/modules/link/tests/src/Functional/LinkFieldTest.php
@@ -325,7 +325,7 @@ public function testLinkTitle() {
             "{$field_name}[0][uri]" => '',
           ];
           $this->drupalPostForm(NULL, $edit, t('Save'));
-          $this->assertNoText(t('@name field is required.', ['@name' => t('Link text')]));
+          $this->assertNoText('Link text field is required.');
 
           // Verify that a URL and link text meets requirements.
           $this->drupalGet('entity_test/add');
@@ -334,7 +334,7 @@ public function testLinkTitle() {
             "{$field_name}[0][title]" => 'Example',
           ];
           $this->drupalPostForm(NULL, $edit, t('Save'));
-          $this->assertNoText(t('@name field is required.', ['@name' => t('Link text')]));
+          $this->assertNoText('Link text field is required.');
         }
       }
     }
diff --git a/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php b/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php
index 616b4ae3b24e69881b04eb3f7e3bec364f7c1eda..afe398fac32e6ee10e43e3f32c144e458b1c6bad 100644
--- a/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleImportFunctionalTest.php
@@ -186,7 +186,7 @@ public function testStandalonePoFile() {
       'translation' => 'translated',
     ];
     $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
-    $this->assertNoText(t('No strings available.'), 'String overwritten by imported string.');
+    $this->assertNoText('No strings available.', 'String overwritten by imported string.');
     // This import should have changed number of plural forms.
     $locale_plurals = \Drupal::service('locale.plural.formula')->reset()->getNumberOfPlurals('fr');
     $this->assertEqual(3, $locale_plurals, 'Plural numbers changed.');
@@ -245,7 +245,7 @@ public function testStandalonePoFile() {
       'translation' => 'translated',
     ];
     $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
-    $this->assertNoText(t('No strings available.'), 'Customized string overwritten by imported string.');
+    $this->assertNoText('No strings available.', 'Customized string overwritten by imported string.');
 
   }
 
diff --git a/core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php b/core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php
index a75e92536b420615390b3c75378e0ac7ce2c92b4..1d02ee9f97e524532b602d1522a8ed47fc9c8ed6 100644
--- a/core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleTranslationUiTest.php
@@ -218,7 +218,7 @@ public function testStringTranslation() {
       'translation' => 'untranslated',
     ];
     $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
-    $this->assertNoText(t('No strings available.'), 'The translation has been removed');
+    $this->assertNoText('No strings available.', 'The translation has been removed');
   }
 
   /**
@@ -342,7 +342,7 @@ public function testStringValidation() {
       // Check for a form error on the textarea.
       $form_class = $this->xpath('//form[@id="locale-translate-edit-form"]//textarea/@class');
       $this->assertStringContainsString('error', $form_class[0]->getText(), 'The string was rejected as unsafe.');
-      $this->assertNoText(t('The string has been saved.'), 'The string was not saved.');
+      $this->assertNoText('The string has been saved.', 'The string was not saved.');
     }
   }
 
@@ -423,7 +423,7 @@ public function testStringSearch() {
       'translation' => 'untranslated',
     ];
     $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
-    $this->assertNoText(t('No strings available.'), 'Search found the string.');
+    $this->assertNoText('No strings available.', 'Search found the string.');
 
     // Add translation.
     // Assume this is the only result, given the random name.
@@ -443,7 +443,7 @@ public function testStringSearch() {
       'translation' => 'translated',
     ];
     $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
-    $this->assertNoText(t('No strings available.'), 'Search found the translation.');
+    $this->assertNoText('No strings available.', 'Search found the translation.');
 
     // Ensure translated source string doesn't appear if searching on 'only
     // untranslated strings'.
@@ -472,7 +472,7 @@ public function testStringSearch() {
       'translation' => 'all',
     ];
     $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
-    $this->assertNoText(t('No strings available.'), 'Search found the translation.');
+    $this->assertNoText('No strings available.', 'Search found the translation.');
 
     // Ensure translated string doesn't appear if searching in System (English).
     $search = [
diff --git a/core/modules/locale/tests/src/Functional/LocaleUpdateInterfaceTest.php b/core/modules/locale/tests/src/Functional/LocaleUpdateInterfaceTest.php
index 1d1688d337b696adea2621c1c798ea0cfb2bd8f1..af153867795fb45750d7ccc4860727527d62f7cf 100644
--- a/core/modules/locale/tests/src/Functional/LocaleUpdateInterfaceTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleUpdateInterfaceTest.php
@@ -49,7 +49,7 @@ public function testInterface() {
     // No language added.
     // Check status page and Available translation updates page.
     $this->drupalGet('admin/reports/status');
-    $this->assertNoText(t('Translation update status'), 'No status message');
+    $this->assertNoText('Translation update status', 'No status message');
 
     $this->drupalGet('admin/reports/translations');
     $this->assertRaw(t('No translatable languages available. <a href=":add_language">Add a language</a> first.', [':add_language' => Url::fromRoute('entity.configurable_language.collection')->toString()]), 'Language message');
diff --git a/core/modules/locale/tests/src/Functional/LocaleUpdateTest.php b/core/modules/locale/tests/src/Functional/LocaleUpdateTest.php
index 3283fdd21d699b7e411a0d663f46ac74394293ae..46c7349817dec001113bf774842d3e13af8d874c 100644
--- a/core/modules/locale/tests/src/Functional/LocaleUpdateTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleUpdateTest.php
@@ -431,7 +431,7 @@ public function testEnableCustomLanguage() {
       'translation' => 'translated',
     ];
     $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
-    $this->assertNoText(t('No strings available.'), 'String successfully imported.');
+    $this->assertNoText('No strings available.', 'String successfully imported.');
 
     // Ensure the multiline string was imported.
     $search = [
diff --git a/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php b/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php
index e08b4734ae326a9ed31d56e5f97283cebd855501..20aa723e0e3989468a9a7fa91a7a7f51aa8695f0 100644
--- a/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php
+++ b/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php
@@ -94,7 +94,7 @@ public function testMenuNodeFormWidget() {
     // Verify that no menu settings are displayed and nodes can be created.
     $this->drupalGet('node/add/page');
     $this->assertText(t('Create Basic page'));
-    $this->assertNoText(t('Menu settings'));
+    $this->assertNoText('Menu settings');
     $node_title = $this->randomMachineName();
     $edit = [
       'title[0][value]' => $node_title,
diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateAccessTest.php b/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateAccessTest.php
index 32c93a626a500944e395e0829bf5e89a4721d9ca..d7298bd420e8d7254510af1842f711fc8c09883a 100644
--- a/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateAccessTest.php
+++ b/core/modules/migrate_drupal_ui/tests/src/Functional/MigrateAccessTest.php
@@ -36,7 +36,7 @@ public function testAccess() {
     $this->drupalLogin($user);
     $this->drupalGet('upgrade');
     $this->assertSession()->statusCodeEquals(403);
-    $this->assertNoText(t('Upgrade'));
+    $this->assertNoText('Upgrade');
   }
 
 }
diff --git a/core/modules/node/tests/src/Functional/NodeTypeTest.php b/core/modules/node/tests/src/Functional/NodeTypeTest.php
index e128f4eced254b1adf89e2b3215235277218d3b8..c9c477c4b7a0e2224fbe46f3c049d2c12e1a4eed 100644
--- a/core/modules/node/tests/src/Functional/NodeTypeTest.php
+++ b/core/modules/node/tests/src/Functional/NodeTypeTest.php
@@ -189,7 +189,7 @@ public function testNodeTypeDeletion() {
       t('%type is used by 1 piece of content on your site. You can not remove this content type until you have removed all of the %type content.', ['%type' => $type->label()]),
       'The content type will not be deleted until all nodes of that type are removed.'
     );
-    $this->assertNoText(t('This action cannot be undone.'), 'The node type deletion confirmation form is not available.');
+    $this->assertNoText('This action cannot be undone.', 'The node type deletion confirmation form is not available.');
 
     // Delete the node.
     $node->delete();
diff --git a/core/modules/search/tests/src/Functional/SearchBlockTest.php b/core/modules/search/tests/src/Functional/SearchBlockTest.php
index 1dc6a7b935a9a610a7bbd1797873b72dc64524e1..810d51a501315e62c79c488c634bcfd2b1198e8b 100644
--- a/core/modules/search/tests/src/Functional/SearchBlockTest.php
+++ b/core/modules/search/tests/src/Functional/SearchBlockTest.php
@@ -115,7 +115,7 @@ public function testSearchFormBlock() {
     // search again with a longer keyword. First test using the block form.
     $this->drupalPostForm('node', ['keys' => $this->randomMachineName(1)], t('Search'));
     $this->assertText('You must include at least one keyword to match in the content', 'Keyword message is displayed when searching for short word');
-    $this->assertNoText(t('Please enter some keywords'), 'With short word entered, no keywords message is not displayed');
+    $this->assertNoText('Please enter some keywords', 'With short word entered, no keywords message is not displayed');
     $this->drupalPostForm(NULL, ['keys' => $this->randomMachineName()], t('Search'), [], 'search-block-form');
     $this->assertNoText('You must include at least one keyword to match in the content', 'Keyword message is not displayed when searching for long word after short word search');
 
diff --git a/core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php b/core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php
index a186540366a4fc938099005595789ee33811c351..3314ed24dd30fe6bf58d27afa5c1fe4fb227fdd7 100644
--- a/core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php
+++ b/core/modules/search/tests/src/Functional/SearchCommentCountToggleTest.php
@@ -105,7 +105,7 @@ public function testSearchCommentCountToggle() {
     $this->searchableNodes['1 comment']->save();
 
     $this->drupalPostForm(NULL, $edit, t('Search'));
-    $this->assertNoText(t('0 comments'), 'Empty comment count does not display for nodes with comment status set to Closed');
+    $this->assertNoText('0 comments', 'Empty comment count does not display for nodes with comment status set to Closed');
     $this->assertText(t('1 comment'), 'Non-empty comment count displays for nodes with comment status set to Closed');
 
     // Test comment count display for nodes with comment status set to Hidden
@@ -115,8 +115,8 @@ public function testSearchCommentCountToggle() {
     $this->searchableNodes['1 comment']->save();
 
     $this->drupalPostForm(NULL, $edit, t('Search'));
-    $this->assertNoText(t('0 comments'), 'Empty comment count does not display for nodes with comment status set to Hidden');
-    $this->assertNoText(t('1 comment'), 'Non-empty comment count does not display for nodes with comment status set to Hidden');
+    $this->assertNoText('0 comments', 'Empty comment count does not display for nodes with comment status set to Hidden');
+    $this->assertNoText('1 comment', 'Non-empty comment count does not display for nodes with comment status set to Hidden');
   }
 
 }
diff --git a/core/modules/search/tests/src/Functional/SearchCommentTest.php b/core/modules/search/tests/src/Functional/SearchCommentTest.php
index fe30aa95aa68bbe4e8059c9d4536d2fa96255fc6..1f3933d0f0dcd02cb2fcb7aed13e2e85cd2c8139 100644
--- a/core/modules/search/tests/src/Functional/SearchCommentTest.php
+++ b/core/modules/search/tests/src/Functional/SearchCommentTest.php
@@ -361,7 +361,7 @@ public function testAddNewComment() {
     // not be part of the search snippet.
     $this->drupalPostForm('search/node', ['keys' => 'short'], t('Search'));
     $this->assertText($node->label(), 'Search for keyword worked');
-    $this->assertNoText(t('Add new comment'));
+    $this->assertNoText('Add new comment');
   }
 
 }
diff --git a/core/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php b/core/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php
index d56d2711330a87841b41440284e25c1be7234067..4f5cacd035d373248300d21f77f4e73eeaf5c97c 100644
--- a/core/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php
+++ b/core/modules/search/tests/src/Functional/SearchConfigSettingsFormTest.php
@@ -107,7 +107,7 @@ public function testSearchSettingsPage() {
       'minimum_word_size' => $this->randomMachineName(3),
     ];
     $this->drupalPostForm('admin/config/search/pages', $edit, t('Save configuration'));
-    $this->assertNoText(t('The configuration options have been saved.'), 'Form does not save with an invalid word length.');
+    $this->assertNoText('The configuration options have been saved.', 'Form does not save with an invalid word length.');
 
     // Test logging setting. It should be off by default.
     $text = $this->randomMachineName(5);
diff --git a/core/modules/search/tests/src/Functional/SearchEmbedFormTest.php b/core/modules/search/tests/src/Functional/SearchEmbedFormTest.php
index 8bc5e02bc19e38064c51ed440f5b4ef6fa8c4b0d..af37d7656d72ab80ddab51c99424ebae35d5fe9c 100644
--- a/core/modules/search/tests/src/Functional/SearchEmbedFormTest.php
+++ b/core/modules/search/tests/src/Functional/SearchEmbedFormTest.php
@@ -86,7 +86,7 @@ public function testEmbeddedForm() {
     $this->drupalPostForm('search',
       ['keys' => 'foo'],
       t('Search'));
-    $this->assertNoText(t('Test form was submitted'), 'Form message does not appear');
+    $this->assertNoText('Test form was submitted', 'Form message does not appear');
     $count = \Drupal::state()->get('search_embedded_form.submit_count');
     $this->assertEqual($this->submitCount, $count, 'Form submission count is correct');
     $this->submitCount = $count;
diff --git a/core/modules/search/tests/src/Functional/SearchPageTextTest.php b/core/modules/search/tests/src/Functional/SearchPageTextTest.php
index 7a1604db5c35eb5635c6898a7f7350c9bd64f2e6..46d3af4938eac0c8e2971ccb61ec06cdbd677dbf 100644
--- a/core/modules/search/tests/src/Functional/SearchPageTextTest.php
+++ b/core/modules/search/tests/src/Functional/SearchPageTextTest.php
@@ -83,7 +83,7 @@ public function testSearchText() {
     $title_source = 'Search for @keywords | Drupal';
     $this->assertSession()->titleEquals('Search for ' . Unicode::truncate($search_terms, 60, TRUE, TRUE) . ' | Drupal');
     $this->assertNoText('Node', 'Erroneous tab and breadcrumb text is not present');
-    $this->assertNoText(t('Node'), 'Erroneous translated tab and breadcrumb text is not present');
+    $this->assertNoText('Node', 'Erroneous translated tab and breadcrumb text is not present');
     $this->assertText(t('Content'), 'Tab and breadcrumb text is present');
 
     $this->clickLink('About searching');
@@ -145,16 +145,16 @@ public function testSearchText() {
     // Make sure the "Please enter some keywords" message is NOT displayed if
     // you use "or" words or phrases in Advanced Search.
     $this->drupalPostForm('search/node', ['or' => $this->randomMachineName() . ' ' . $this->randomMachineName()], 'edit-submit--2');
-    $this->assertNoText(t('Please enter some keywords'), 'With advanced OR keywords entered, no keywords message is not displayed on node page');
+    $this->assertNoText('Please enter some keywords', 'With advanced OR keywords entered, no keywords message is not displayed on node page');
     $this->drupalPostForm('search/node', ['phrase' => '"' . $this->randomMachineName() . '" "' . $this->randomMachineName() . '"'], 'edit-submit--2');
-    $this->assertNoText(t('Please enter some keywords'), 'With advanced phrase entered, no keywords message is not displayed on node page');
+    $this->assertNoText('Please enter some keywords', 'With advanced phrase entered, no keywords message is not displayed on node page');
 
     // Verify that if you search for a too-short keyword, you get the right
     // message, and that if after that you search for a longer keyword, you
     // do not still see the message.
     $this->drupalPostForm('search/node', ['keys' => $this->randomMachineName(1)], t('Search'));
     $this->assertText('You must include at least one keyword', 'Keyword message is displayed when searching for short word');
-    $this->assertNoText(t('Please enter some keywords'), 'With short word entered, no keywords message is not displayed');
+    $this->assertNoText('Please enter some keywords', 'With short word entered, no keywords message is not displayed');
     $this->drupalPostForm(NULL, ['keys' => $this->randomMachineName()], t('Search'));
     $this->assertNoText('You must include at least one keyword', 'Keyword message is not displayed when searching for long word after short word search');
 
diff --git a/core/modules/system/tests/src/Functional/Form/ElementsAccessTest.php b/core/modules/system/tests/src/Functional/Form/ElementsAccessTest.php
index 84ae3f79b174cc6ece17d296b5267662e9050ce0..193ff9e1b82440b48063258e4a0737029a093dc0 100644
--- a/core/modules/system/tests/src/Functional/Form/ElementsAccessTest.php
+++ b/core/modules/system/tests/src/Functional/Form/ElementsAccessTest.php
@@ -28,12 +28,12 @@ class ElementsAccessTest extends BrowserTestBase {
    */
   public function testAccessFalse() {
     $this->drupalPostForm('form_test/vertical-tabs-access', NULL, t('Submit'));
-    $this->assertNoText(t('This checkbox inside a vertical tab does not have its default value.'));
-    $this->assertNoText(t('This textfield inside a vertical tab does not have its default value.'));
-    $this->assertNoText(t('This checkbox inside a fieldset does not have its default value.'));
-    $this->assertNoText(t('This checkbox inside a container does not have its default value.'));
-    $this->assertNoText(t('This checkbox inside a nested container does not have its default value.'));
-    $this->assertNoText(t('This checkbox inside a vertical tab whose fieldset access is allowed does not have its default value.'));
+    $this->assertNoText('This checkbox inside a vertical tab does not have its default value.');
+    $this->assertNoText('This textfield inside a vertical tab does not have its default value.');
+    $this->assertNoText('This checkbox inside a fieldset does not have its default value.');
+    $this->assertNoText('This checkbox inside a container does not have its default value.');
+    $this->assertNoText('This checkbox inside a nested container does not have its default value.');
+    $this->assertNoText('This checkbox inside a vertical tab whose fieldset access is allowed does not have its default value.');
     $this->assertText(t('The form submitted correctly.'));
   }
 
diff --git a/core/modules/system/tests/src/Functional/Form/FormTest.php b/core/modules/system/tests/src/Functional/Form/FormTest.php
index 84c9924c8bfcfab9b73b42512c27c42c3e766006..c0881551b7e691ecc6fe53717d68d6d0cc247eb8 100644
--- a/core/modules/system/tests/src/Functional/Form/FormTest.php
+++ b/core/modules/system/tests/src/Functional/Form/FormTest.php
@@ -418,7 +418,7 @@ public function testSelect() {
         'multiple_no_default',
     ];
     foreach ($no_errors as $key) {
-      $this->assertNoText(t('@name field is required.', ['@name' => $form[$key]['#title']]));
+      $this->assertNoText($form[$key]['#title'] . ' field is required.');
     }
 
     $expected_errors = [
diff --git a/core/modules/system/tests/src/Functional/Form/ValidationTest.php b/core/modules/system/tests/src/Functional/Form/ValidationTest.php
index 9834eef8bb60bf9e8a5292b8e809b1e57914fcc2..18a9210e3b57631a9b87e5b166e38ce9f30bfb50 100644
--- a/core/modules/system/tests/src/Functional/Form/ValidationTest.php
+++ b/core/modules/system/tests/src/Functional/Form/ValidationTest.php
@@ -120,19 +120,19 @@ public function testValidateLimitErrors() {
     // validated, but the #element_validate handler for the 'test' field
     // is triggered.
     $this->drupalPostForm($path, $edit, t('Partial validate'));
-    $this->assertNoText(t('@name field is required.', ['@name' => 'Title']));
+    $this->assertNoText('Title field is required.');
     $this->assertText('Test element is invalid');
 
     // Edge case of #limit_validation_errors containing numeric indexes: same
     // thing with the 'Partial validate (numeric index)' button and the
     // 'test_numeric_index' field.
     $this->drupalPostForm($path, $edit, t('Partial validate (numeric index)'));
-    $this->assertNoText(t('@name field is required.', ['@name' => 'Title']));
+    $this->assertNoText('Title field is required.');
     $this->assertText('Test (numeric index) element is invalid');
 
     // Ensure something like 'foobar' isn't considered "inside" 'foo'.
     $this->drupalPostForm($path, $edit, t('Partial validate (substring)'));
-    $this->assertNoText(t('@name field is required.', ['@name' => 'Title']));
+    $this->assertNoText('Title field is required.');
     $this->assertText('Test (substring) foo element is invalid');
 
     // Ensure not validated values are not available to submit handlers.
@@ -219,15 +219,15 @@ public function testCustomRequiredError() {
 
     foreach (Element::children($form) as $key) {
       if (isset($form[$key]['#required_error'])) {
-        $this->assertNoText(t('@name field is required.', ['@name' => $form[$key]['#title']]));
+        $this->assertNoText($form[$key]['#title'] . ' field is required.');
         $this->assertText($form[$key]['#required_error']);
       }
       elseif (isset($form[$key]['#form_test_required_error'])) {
-        $this->assertNoText(t('@name field is required.', ['@name' => $form[$key]['#title']]));
+        $this->assertNoText($form[$key]['#title'] . ' field is required.');
         $this->assertText($form[$key]['#form_test_required_error']);
       }
     }
-    $this->assertNoText(t('An illegal choice has been detected. Please contact the site administrator.'));
+    $this->assertNoText('An illegal choice has been detected. Please contact the site administrator.');
 
     // Verify that no custom validation error appears with valid values.
     $edit = [
@@ -239,15 +239,15 @@ public function testCustomRequiredError() {
 
     foreach (Element::children($form) as $key) {
       if (isset($form[$key]['#required_error'])) {
-        $this->assertNoText(t('@name field is required.', ['@name' => $form[$key]['#title']]));
+        $this->assertNoText($form[$key]['#title'] . ' field is required.');
         $this->assertNoText($form[$key]['#required_error']);
       }
       elseif (isset($form[$key]['#form_test_required_error'])) {
-        $this->assertNoText(t('@name field is required.', ['@name' => $form[$key]['#title']]));
+        $this->assertNoText($form[$key]['#title'] . ' field is required.');
         $this->assertNoText($form[$key]['#form_test_required_error']);
       }
     }
-    $this->assertNoText(t('An illegal choice has been detected. Please contact the site administrator.'));
+    $this->assertNoText('An illegal choice has been detected. Please contact the site administrator.');
   }
 
 }
diff --git a/core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php b/core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php
index a9b3f30713e6b46afb9c93f4860092d3f9387967..1a7726df4bdd374654ebfca0537347a7c83c4765 100644
--- a/core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php
+++ b/core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php
@@ -80,7 +80,7 @@ protected function doTestHookMenuIntegration() {
   protected function doTestTitleCallbackFalse() {
     $this->drupalGet('test-page');
     $this->assertText('A title with @placeholder', 'Raw text found on the page');
-    $this->assertNoText(t('A title with @placeholder', ['@placeholder' => 'some other text']), 'Text with placeholder substitutions not found.');
+    $this->assertNoText('A title with some other text', 'Text with placeholder substitutions not found.');
   }
 
   /**
@@ -89,7 +89,7 @@ protected function doTestTitleCallbackFalse() {
   protected function doTestTitleMenuCallback() {
     // Verify that the menu router item title is not visible.
     $this->drupalGet('');
-    $this->assertNoText(t('Menu Callback Title'));
+    $this->assertNoText('Menu Callback Title');
     // Verify that the menu router item title is output as page title.
     $this->drupalGet('menu_callback_title');
     $this->assertText(t('Menu Callback Title'));
@@ -200,7 +200,7 @@ protected function doTestExoticPath() {
       "éøïвβ中國書۞";
     $this->drupalGet($path);
     $this->assertRaw('This is the menuTestCallback content.');
-    $this->assertNoText(t('The website encountered an unexpected error. Please try again later.'));
+    $this->assertNoText('The website encountered an unexpected error. Please try again later.');
   }
 
   /**
diff --git a/core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php b/core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php
index 5672785cd97957274b385633571794167391daaa..125a9563e5fb7414a64d2b3458bc506b6becf981 100644
--- a/core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php
+++ b/core/modules/system/tests/src/Functional/Session/SessionHttpsTest.php
@@ -92,7 +92,7 @@ public function testHttpsSession() {
 
     // Verify that user is not logged in on non-secure URL.
     $this->drupalGet($this->httpUrl('admin/config'));
-    $this->assertNoText(t('Configuration'));
+    $this->assertNoText('Configuration');
     $this->assertSession()->statusCodeEquals(403);
 
     // Verify that empty SID cannot be used on the non-secure site.
diff --git a/core/modules/system/tests/src/Functional/Session/SessionTest.php b/core/modules/system/tests/src/Functional/Session/SessionTest.php
index 61f27bec1722883aa9d7d294b924535a20947e29..b0455fc837500af8290f5a2a3603424da821b20d 100644
--- a/core/modules/system/tests/src/Functional/Session/SessionTest.php
+++ b/core/modules/system/tests/src/Functional/Session/SessionTest.php
@@ -208,7 +208,7 @@ public function testEmptyAnonymousSession() {
     $this->assertSessionCookie(FALSE);
     // @todo Reinstate when REQUEST and RESPONSE events fire for cached pages.
     // $this->assertSessionEmpty(TRUE);
-    $this->assertNoText(t('This is a dummy message.'), 'Message was not cached.');
+    $this->assertNoText('This is a dummy message.', 'Message was not cached.');
     $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.');
     $this->assertNull($this->drupalGetHeader('Set-Cookie'), 'New session was not started.');
 
@@ -222,7 +222,7 @@ public function testEmptyAnonymousSession() {
     $this->assertSessionCookie(FALSE);
     // @todo Reinstate when REQUEST and RESPONSE events fire for cached pages.
     // $this->assertSessionEmpty(TRUE);
-    $this->assertNoText(t('This is a dummy message.'), 'The message was not saved.');
+    $this->assertNoText('This is a dummy message.', 'The message was not saved.');
   }
 
   /**
diff --git a/core/modules/system/tests/src/Functional/System/DateTimeTest.php b/core/modules/system/tests/src/Functional/System/DateTimeTest.php
index 039c54cdce77f154eaa3df5f4e61a826715c9d63..a6ba41ef899a9e8ae15e5af19b308664ff4d7f51 100644
--- a/core/modules/system/tests/src/Functional/System/DateTimeTest.php
+++ b/core/modules/system/tests/src/Functional/System/DateTimeTest.php
@@ -241,7 +241,7 @@ public function testEnteringDateTimeViaSelectors() {
 
     $edit['field_dt[0][value][day]'] = '29';
     $this->drupalPostForm('node/add/page_with_date', $edit, t('Save'));
-    $this->assertNoText(t('Selected combination of day and month is not valid.'), 'Correct date passed validation.');
+    $this->assertNoText('Selected combination of day and month is not valid.', 'Correct date passed validation.');
 
     $this->drupalGet('node/1');
     $this->assertText(t('Mon, 02/29/2016 - 01:30'), 'Node successfully created with valid date.');
diff --git a/core/modules/system/tests/src/Functional/System/FrontPageTest.php b/core/modules/system/tests/src/Functional/System/FrontPageTest.php
index 9548dfbd733cfb89a498b94aa0226cb615cfaa53..70447be632c14072fff0cdec4de9bb38662ebb67 100644
--- a/core/modules/system/tests/src/Functional/System/FrontPageTest.php
+++ b/core/modules/system/tests/src/Functional/System/FrontPageTest.php
@@ -65,7 +65,7 @@ public function testDrupalFrontPage() {
     $this->drupalGet('node');
     $this->assertText(t('On front page.'), 'Path is the front page.');
     $this->drupalGet($this->nodePath);
-    $this->assertNoText(t('On front page.'), 'Path is not the front page.');
+    $this->assertNoText('On front page.', 'Path is not the front page.');
 
     // Change the front page to an invalid path.
     $edit = ['site_frontpage' => '/kittens'];
@@ -85,7 +85,7 @@ public function testDrupalFrontPage() {
     $this->drupalGet('');
     $this->assertText(t('On front page.'), 'Path is the front page.');
     $this->drupalGet('node');
-    $this->assertNoText(t('On front page.'), 'Path is not the front page.');
+    $this->assertNoText('On front page.', 'Path is not the front page.');
     $this->drupalGet($this->nodePath);
     $this->assertText(t('On front page.'), 'Path is the front page.');
   }
diff --git a/core/modules/system/tests/src/Functional/System/StatusTest.php b/core/modules/system/tests/src/Functional/System/StatusTest.php
index 09f27a5ba00e002079da65ec4ae1543af9f611e1..a55f66351ce72db732aedf0a5beff41c5c63d7f0 100644
--- a/core/modules/system/tests/src/Functional/System/StatusTest.php
+++ b/core/modules/system/tests/src/Functional/System/StatusTest.php
@@ -61,7 +61,7 @@ public function testStatusPage() {
     }
 
     // If a module is fully installed no pending updates exists.
-    $this->assertNoText(t('Out of date'));
+    $this->assertNoText('Out of date');
 
     // The setting config_sync_directory is not properly formed.
     $this->assertRaw(t("Your %file file must define the %setting setting", ['%file' => $this->siteDirectory . '/settings.php', '%setting' => "\$settings['config_sync_directory']"]));
diff --git a/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php b/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php
index 7e512eaa58ee5d70e4edb594270854a0571eae55..a5c550aed9485de8e8404726770d6b9d25fcc374 100644
--- a/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php
+++ b/core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php
@@ -310,7 +310,7 @@ public function testLocaleTranslationSubtreesHashCacheClear() {
       'translation' => 'untranslated',
     ];
     $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
-    $this->assertNoText(t('No strings available'));
+    $this->assertNoText('No strings available');
     $this->assertText($name, 'Search found the string as untranslated.');
 
     // Assume this is the only result.
diff --git a/core/modules/update/tests/src/Functional/UpdateContribTest.php b/core/modules/update/tests/src/Functional/UpdateContribTest.php
index 31251024142b7a9d73a5258d89e114c4fbe5af6b..b9addd5ee0a38eecf528d200fd766b5f6efc650b 100644
--- a/core/modules/update/tests/src/Functional/UpdateContribTest.php
+++ b/core/modules/update/tests/src/Functional/UpdateContribTest.php
@@ -72,7 +72,7 @@ public function testNoReleasesAvailable() {
     $this->assertRaw(Link::fromTextAndUrl(t('Drupal'), Url::fromUri('http://example.com/project/drupal'))->toString());
     $this->assertText(t('Up to date'));
     $this->assertRaw('<h3>' . t('Modules') . '</h3>');
-    $this->assertNoText(t('Update available'));
+    $this->assertNoText('Update available');
     $this->assertText(t('No available releases found'));
     $this->assertNoRaw(Link::fromTextAndUrl(t('AAA Update test'), Url::fromUri('http://example.com/project/aaa_update_test'))->toString());
 
@@ -105,7 +105,7 @@ public function testUpdateContribBasic() {
     $this->standardTests();
     $this->assertText(t('Up to date'));
     $this->assertRaw('<h3>' . t('Modules') . '</h3>');
-    $this->assertNoText(t('Update available'));
+    $this->assertNoText('Update available');
     $this->assertRaw($project_link, 'Link to aaa_update_test project appears.');
 
     // Since aaa_update_test is installed the fact it is hidden and in the
@@ -182,7 +182,7 @@ public function testUpdateContribOrder() {
     $this->standardTests();
     // We're expecting the report to say all projects are up to date.
     $this->assertText(t('Up to date'));
-    $this->assertNoText(t('Update available'));
+    $this->assertNoText('Update available');
     // We want to see all 3 module names listed, since they'll show up either
     // as project names or as modules under the "Includes" listing.
     $this->assertText(t('AAA Update test'));
@@ -393,14 +393,14 @@ public function testUpdateShowDisabledThemes() {
       $this->refreshUpdateStatus($xml_mapping);
       // In neither case should we see the "Themes" heading for installed
       // themes.
-      $this->assertNoText(t('Themes'));
+      $this->assertNoText('Themes');
       if ($check_disabled) {
         $this->assertText(t('Uninstalled themes'));
         $this->assertRaw($base_theme_project_link, 'Link to the Update test base theme project appears.');
         $this->assertRaw($sub_theme_project_link, 'Link to the Update test subtheme project appears.');
       }
       else {
-        $this->assertNoText(t('Uninstalled themes'));
+        $this->assertNoText('Uninstalled themes');
         $this->assertNoRaw($base_theme_project_link, 'Link to the Update test base theme project does not appear.');
         $this->assertNoRaw($sub_theme_project_link, 'Link to the Update test subtheme project does not appear.');
       }
@@ -480,7 +480,7 @@ public function testUpdateBrokenFetchURL() {
     // hope that 'Up to date' is not unique.
     $this->assertNoUniqueText(t('Up to date'));
     // It should say we failed to get data, not that we're missing an update.
-    $this->assertNoText(t('Update available'));
+    $this->assertNoText('Update available');
 
     // We need to check that this string is found as part of a project row, not
     // just in the "Failed to get available update data" message at the top of
@@ -546,7 +546,7 @@ public function testHookUpdateStatusAlter() {
     $update_test_config->set('update_status', [])->save();
     $this->drupalGet('admin/reports/updates');
     $this->assertRaw('<h3>' . t('Modules') . '</h3>');
-    $this->assertNoText(t('Security update required!'));
+    $this->assertNoText('Security update required!');
     $this->assertRaw(Link::fromTextAndUrl(t('AAA Update test'), Url::fromUri('http://example.com/project/aaa_update_test'))->toString(), 'Link to aaa_update_test project appears.');
 
     // Turn the altering back on and visit the Update manager UI.
@@ -557,7 +557,7 @@ public function testHookUpdateStatusAlter() {
     // Turn the altering back off and visit the Update manager UI.
     $update_test_config->set('update_status', [])->save();
     $this->drupalGet('admin/modules/update');
-    $this->assertNoText(t('Security update'));
+    $this->assertNoText('Security update');
   }
 
   /**
diff --git a/core/modules/update/tests/src/Functional/UpdateCoreTest.php b/core/modules/update/tests/src/Functional/UpdateCoreTest.php
index ff9249dddccfd34ba6c9e447286199966fc3e3cd..5c3da2a5e8b24a3de65ec8953554cffaddd0926b 100644
--- a/core/modules/update/tests/src/Functional/UpdateCoreTest.php
+++ b/core/modules/update/tests/src/Functional/UpdateCoreTest.php
@@ -86,8 +86,8 @@ public function testNoUpdatesAvailable() {
           // not be in the available updates.
           $this->assertNoRaw('8.2.0');
           $this->assertText(t('Up to date'));
-          $this->assertNoText(t('Update available'));
-          $this->assertNoText(t('Security update required!'));
+          $this->assertNoText('Update available');
+          $this->assertNoText('Security update required!');
           $this->assertRaw('check.svg', 'Check icon was found.');
         }
       }
@@ -112,7 +112,7 @@ public function testNormalUpdateAvailable() {
         $this->drupalGet('admin/reports/updates');
         $this->clickLink(t('Check manually'));
         $this->checkForMetaRefresh();
-        $this->assertNoText(t('Security update required!'));
+        $this->assertNoText('Security update required!');
         // The XML test fixtures for this method all contain the '8.2.0' release
         // but because '8.2.0' is not in a supported branch it will not be in
         // the available updates.
@@ -122,18 +122,18 @@ public function testNormalUpdateAvailable() {
             // Both stable and unstable releases are available.
             // A stable release is the latest.
             if ($extra_version == '') {
-              $this->assertNoText(t('Up to date'));
+              $this->assertNoText('Up to date');
               $this->assertText(t('Update available'));
               $this->assertVersionUpdateLinks('Recommended version:', $full_version);
-              $this->assertNoText(t('Latest version:'));
+              $this->assertNoText('Latest version:');
               $this->assertRaw('warning.svg', 'Warning icon was found.');
             }
             // Only unstable releases are available.
             // An unstable release is the latest.
             else {
               $this->assertText(t('Up to date'));
-              $this->assertNoText(t('Update available'));
-              $this->assertNoText(t('Recommended version:'));
+              $this->assertNoText('Update available');
+              $this->assertNoText('Recommended version:');
               $this->assertVersionUpdateLinks('Latest version:', $full_version);
               $this->assertRaw('check.svg', 'Check icon was found.');
             }
@@ -143,16 +143,16 @@ public function testNormalUpdateAvailable() {
             // Both stable and unstable releases are available.
             // A stable release is the latest.
             if ($extra_version == '') {
-              $this->assertNoText(t('Up to date'));
+              $this->assertNoText('Up to date');
               $this->assertText(t('Update available'));
               $this->assertVersionUpdateLinks('Recommended version:', $full_version);
-              $this->assertNoText(t('Latest version:'));
+              $this->assertNoText('Latest version:');
               $this->assertRaw('warning.svg', 'Warning icon was found.');
             }
             // Both stable and unstable releases are available.
             // An unstable release is the latest.
             else {
-              $this->assertNoText(t('Up to date'));
+              $this->assertNoText('Up to date');
               $this->assertText(t('Update available'));
               $this->assertVersionUpdateLinks('Recommended version:', '8.1.0');
               $this->assertVersionUpdateLinks('Latest version:', $full_version);
@@ -177,14 +177,14 @@ public function testMajorUpdateAvailable() {
           $this->drupalGet('admin/reports/updates');
           $this->clickLink(t('Check manually'));
           $this->checkForMetaRefresh();
-          $this->assertNoText(t('Security update required!'));
+          $this->assertNoText('Security update required!');
           $this->assertRaw(Link::fromTextAndUrl('9.0.0', Url::fromUri("http://example.com/drupal-9-0-0-release"))->toString(), 'Link to release appears.');
           $this->assertRaw(Link::fromTextAndUrl(t('Download'), Url::fromUri("http://example.com/drupal-9-0-0.tar.gz"))->toString(), 'Link to download appears.');
           $this->assertRaw(Link::fromTextAndUrl(t('Release notes'), Url::fromUri("http://example.com/drupal-9-0-0-release"))->toString(), 'Link to release notes appears.');
-          $this->assertNoText(t('Up to date'));
+          $this->assertNoText('Up to date');
           $this->assertText(t('Not supported!'));
           $this->assertText(t('Recommended version:'));
-          $this->assertNoText(t('Latest version:'));
+          $this->assertNoText('Latest version:');
           $this->assertRaw('error.svg', 'Error icon was found.');
         }
       }
@@ -636,10 +636,10 @@ public function testDatestampMismatch() {
     ];
     $this->config('update_test.settings')->set('system_info', $system_info)->save();
     $this->refreshUpdateStatus(['drupal' => 'dev']);
-    $this->assertNoText(t('2001-Sep-'));
+    $this->assertNoText('2001-Sep-');
     $this->assertText(t('Up to date'));
-    $this->assertNoText(t('Update available'));
-    $this->assertNoText(t('Security update required!'));
+    $this->assertNoText('Update available');
+    $this->assertNoText('Security update required!');
   }
 
   /**
@@ -656,7 +656,7 @@ public function testModulePageRunCron() {
 
     $this->cronRun();
     $this->drupalGet('admin/modules');
-    $this->assertNoText(t('No update information available.'));
+    $this->assertNoText('No update information available.');
   }
 
   /**
@@ -694,8 +694,8 @@ public function testModulePageUpToDate() {
     $this->checkForMetaRefresh();
     $this->assertText(t('Checked available update data for one project.'));
     $this->drupalGet('admin/modules');
-    $this->assertNoText(t('There are updates available for your version of Drupal.'));
-    $this->assertNoText(t('There is a security update available for your version of Drupal.'));
+    $this->assertNoText('There are updates available for your version of Drupal.');
+    $this->assertNoText('There is a security update available for your version of Drupal.');
   }
 
   /**
@@ -717,7 +717,7 @@ public function testModulePageRegularUpdate() {
     $this->assertText(t('Checked available update data for one project.'));
     $this->drupalGet('admin/modules');
     $this->assertText(t('There are updates available for your version of Drupal.'));
-    $this->assertNoText(t('There is a security update available for your version of Drupal.'));
+    $this->assertNoText('There is a security update available for your version of Drupal.');
   }
 
   /**
@@ -738,12 +738,12 @@ public function testModulePageSecurityUpdate() {
     $this->checkForMetaRefresh();
     $this->assertText(t('Checked available update data for one project.'));
     $this->drupalGet('admin/modules');
-    $this->assertNoText(t('There are updates available for your version of Drupal.'));
+    $this->assertNoText('There are updates available for your version of Drupal.');
     $this->assertText(t('There is a security update available for your version of Drupal.'));
 
     // Make sure admin/appearance warns you you're missing a security update.
     $this->drupalGet('admin/appearance');
-    $this->assertNoText(t('There are updates available for your version of Drupal.'));
+    $this->assertNoText('There are updates available for your version of Drupal.');
     $this->assertText(t('There is a security update available for your version of Drupal.'));
 
     // Make sure duplicate messages don't appear on Update status pages.
@@ -755,10 +755,10 @@ public function testModulePageSecurityUpdate() {
     $this->assertNoRaw('<li>' . t('There is a security update available for your version of Drupal.'));
 
     $this->drupalGet('admin/reports/updates');
-    $this->assertNoText(t('There is a security update available for your version of Drupal.'));
+    $this->assertNoText('There is a security update available for your version of Drupal.');
 
     $this->drupalGet('admin/reports/updates/settings');
-    $this->assertNoText(t('There is a security update available for your version of Drupal.'));
+    $this->assertNoText('There is a security update available for your version of Drupal.');
   }
 
   /**
diff --git a/core/modules/update/tests/src/Functional/UpdateTestBase.php b/core/modules/update/tests/src/Functional/UpdateTestBase.php
index 7fa4206cc5c03fa34bd13eca9ce605b9646511da..e1d55cc60ade1c1d0c3237f329e07ac8ff7aabd3 100644
--- a/core/modules/update/tests/src/Functional/UpdateTestBase.php
+++ b/core/modules/update/tests/src/Functional/UpdateTestBase.php
@@ -108,7 +108,7 @@ protected function refreshUpdateStatus($xml_map, $url = 'update-test') {
   protected function standardTests() {
     $this->assertRaw('<h3>' . t('Drupal core') . '</h3>');
     $this->assertRaw(Link::fromTextAndUrl(t('Drupal'), Url::fromUri('http://example.com/project/drupal'))->toString(), 'Link to the Drupal project appears.');
-    $this->assertNoText(t('No available releases found'));
+    $this->assertNoText('No available releases found');
   }
 
   /**
diff --git a/core/modules/update/tests/src/Functional/UpdateUploadTest.php b/core/modules/update/tests/src/Functional/UpdateUploadTest.php
index 88ab8fc72327574a8bd0b08337b97f166c6583fc..92a6aacb6d8444909c8fef114e033e17a5fa6cbc 100644
--- a/core/modules/update/tests/src/Functional/UpdateUploadTest.php
+++ b/core/modules/update/tests/src/Functional/UpdateUploadTest.php
@@ -175,25 +175,25 @@ public function testUpdateManagerCoreSecurityUpdateMessages() {
     // about core missing a security update.
 
     $this->drupalGet('admin/modules/install');
-    $this->assertNoText(t('There is a security update available for your version of Drupal.'));
+    $this->assertNoText('There is a security update available for your version of Drupal.');
 
     $this->drupalGet('admin/modules/update');
-    $this->assertNoText(t('There is a security update available for your version of Drupal.'));
+    $this->assertNoText('There is a security update available for your version of Drupal.');
 
     $this->drupalGet('admin/appearance/install');
-    $this->assertNoText(t('There is a security update available for your version of Drupal.'));
+    $this->assertNoText('There is a security update available for your version of Drupal.');
 
     $this->drupalGet('admin/appearance/update');
-    $this->assertNoText(t('There is a security update available for your version of Drupal.'));
+    $this->assertNoText('There is a security update available for your version of Drupal.');
 
     $this->drupalGet('admin/reports/updates/install');
-    $this->assertNoText(t('There is a security update available for your version of Drupal.'));
+    $this->assertNoText('There is a security update available for your version of Drupal.');
 
     $this->drupalGet('admin/reports/updates/update');
-    $this->assertNoText(t('There is a security update available for your version of Drupal.'));
+    $this->assertNoText('There is a security update available for your version of Drupal.');
 
     $this->drupalGet('admin/update/ready');
-    $this->assertNoText(t('There is a security update available for your version of Drupal.'));
+    $this->assertNoText('There is a security update available for your version of Drupal.');
   }
 
   /**
diff --git a/core/modules/user/tests/src/Functional/UserBlocksTest.php b/core/modules/user/tests/src/Functional/UserBlocksTest.php
index 4c869cbf25bec66507d8a9d70742965940eeeb88..e112fa7683ad1bb523f4cc451e73123bae50ed08 100644
--- a/core/modules/user/tests/src/Functional/UserBlocksTest.php
+++ b/core/modules/user/tests/src/Functional/UserBlocksTest.php
@@ -77,7 +77,7 @@ public function testUserLoginBlock() {
     $edit['name'] = $user->getAccountName();
     $edit['pass'] = $user->passRaw;
     $this->drupalPostForm('admin/people/permissions', $edit, t('Log in'));
-    $this->assertNoText(t('User login'), 'Logged in.');
+    $this->assertNoText('User login', 'Logged in.');
 
     // Check that we are still on the same page.
     $this->assertUrl(Url::fromRoute('user.admin_permissions'));
@@ -87,7 +87,7 @@ public function testUserLoginBlock() {
     $this->drupalGet('filter/tips');
     $this->assertEqual('MISS', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER));
     $this->drupalPostForm(NULL, $edit, t('Log in'));
-    $this->assertNoText(t('User login'), 'Logged in.');
+    $this->assertNoText('User login', 'Logged in.');
     // Verify that we are still on the same page after login for allowed page.
     $this->assertSession()->responseMatches('!<title.*?Compose tips.*?</title>!');
 
@@ -96,7 +96,7 @@ public function testUserLoginBlock() {
     $this->drupalGet('filter/tips', ['query' => ['foo' => 'bar']]);
     $this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER));
     $this->drupalPostForm(NULL, $edit, t('Log in'));
-    $this->assertNoText(t('User login'), 'Logged in.');
+    $this->assertNoText('User login', 'Logged in.');
     // Verify that we are still on the same page after login for allowed page.
     $this->assertSession()->responseMatches('!<title.*?Compose tips.*?</title>!');
     $this->assertStringContainsString('/filter/tips?foo=bar', $this->getUrl(), 'Correct query arguments are displayed after login');
@@ -106,7 +106,7 @@ public function testUserLoginBlock() {
     $this->drupalGet('filter/tips', ['query' => ['foo' => 'baz']]);
     $this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER));
     $this->drupalPostForm(NULL, $edit, t('Log in'));
-    $this->assertNoText(t('User login'), 'Logged in.');
+    $this->assertNoText('User login', 'Logged in.');
     // Verify that we are still on the same page after login for allowed page.
     $this->assertSession()->responseMatches('!<title.*?Compose tips.*?</title>!');
     $this->assertStringContainsString('/filter/tips?foo=baz', $this->getUrl(), 'Correct query arguments are displayed after login');
@@ -127,7 +127,7 @@ public function testUserLoginBlock() {
     $this->drupalPostForm('filter/tips', $edit, t('Log in'));
     $this->assertText(t('Unrecognized username or password. Forgot your password?'));
     $this->drupalGet('filter/tips');
-    $this->assertNoText(t('Unrecognized username or password. Forgot your password?'));
+    $this->assertNoText('Unrecognized username or password. Forgot your password?');
   }
 
 }
diff --git a/core/modules/user/tests/src/Functional/UserCancelTest.php b/core/modules/user/tests/src/Functional/UserCancelTest.php
index af3861d59071f1db4ece181c758084264e03a702..824274a5f3001ade69d3c9df1104172a8c85155c 100644
--- a/core/modules/user/tests/src/Functional/UserCancelTest.php
+++ b/core/modules/user/tests/src/Functional/UserCancelTest.php
@@ -187,7 +187,7 @@ public function testUserBlock() {
     $this->drupalPostForm(NULL, NULL, t('Cancel account'));
     $this->assertText(t('Are you sure you want to cancel your account?'), 'Confirmation form to cancel account displayed.');
     $this->assertText(t('Your account will be blocked and you will no longer be able to log in. All of your content will remain attributed to your username.'), 'Informs that all content will be remain as is.');
-    $this->assertNoText(t('Select the method to cancel the account above.'), 'Does not allow user to select account cancellation method.');
+    $this->assertNoText('Select the method to cancel the account above.', 'Does not allow user to select account cancellation method.');
 
     // Confirm account cancellation.
     $timestamp = time();
diff --git a/core/modules/user/tests/src/Functional/UserCreateFailMailTest.php b/core/modules/user/tests/src/Functional/UserCreateFailMailTest.php
index 915b82a23d2af14c36946bea5a3f2e3067e84756..6e6d0ce56ab470e7e0b2317ac10bd5c0a69110b1 100644
--- a/core/modules/user/tests/src/Functional/UserCreateFailMailTest.php
+++ b/core/modules/user/tests/src/Functional/UserCreateFailMailTest.php
@@ -44,7 +44,7 @@ public function testUserAdd() {
     $this->drupalPostForm('admin/people/create', $edit, t('Create new account'));
 
     $this->assertText(t('Unable to send email. Contact the site administrator if the problem persists.'));
-    $this->assertNoText(t('A welcome message with further instructions has been emailed to the new user @name.', ['@name' => $edit['name']]));
+    $this->assertNoText('A welcome message with further instructions has been emailed to the new user ' . $edit['name'] . '.');
   }
 
 }
diff --git a/core/modules/user/tests/src/Functional/UserPasswordResetTest.php b/core/modules/user/tests/src/Functional/UserPasswordResetTest.php
index 7c8e3af55111fe016f35ce1c2bafa3c4fd4152c5..59dea5b8e06fe4b2be6998fce63622e1e7ba0fb2 100644
--- a/core/modules/user/tests/src/Functional/UserPasswordResetTest.php
+++ b/core/modules/user/tests/src/Functional/UserPasswordResetTest.php
@@ -375,7 +375,7 @@ public function testUserResetPasswordUserFloodControlIsCleared() {
    */
   public function assertValidPasswordReset($name) {
     // Make sure the error text is not displayed and email sent.
-    $this->assertNoText(t('Sorry, @name is not recognized as a username or an e-mail address.', ['@name' => $name]), 'Validation error message shown when trying to request password for invalid account.');
+    $this->assertNoText("Sorry, $name is not recognized as a username or an e-mail address.", 'Validation error message shown when trying to request password for invalid account.');
     $this->assertMail('to', $this->account->getEmail(), 'Password e-mail sent to user.');
     $subject = t('Replacement login information for @username at @site', ['@username' => $this->account->getAccountName(), '@site' => \Drupal::config('system.site')->get('name')]);
     $this->assertMail('subject', $subject, 'Password reset e-mail subject is correct.');
@@ -401,7 +401,7 @@ public function assertPasswordUserFlood() {
    * Makes assertions about a password reset not triggering user flood control.
    */
   public function assertNoPasswordUserFlood() {
-    $this->assertNoText(t('Too many password recovery requests for this account. It is temporarily blocked. Try again later or contact the site administrator.'), 'User password reset flood error message not shown.');
+    $this->assertNoText('Too many password recovery requests for this account. It is temporarily blocked. Try again later or contact the site administrator.', 'User password reset flood error message not shown.');
   }
 
   /**
@@ -415,7 +415,7 @@ public function assertPasswordIpFlood() {
    * Makes assertions about a password reset not triggering IP flood control.
    */
   public function assertNoPasswordIpFlood() {
-    $this->assertNoText(t('Too many password recovery requests from your IP address. It is temporarily blocked. Try again later or contact the site administrator.'), 'IP password reset flood error message not shown.');
+    $this->assertNoText('Too many password recovery requests from your IP address. It is temporarily blocked. Try again later or contact the site administrator.', 'IP password reset flood error message not shown.');
   }
 
   /**
diff --git a/core/modules/user/tests/src/Functional/UserRoleAdminTest.php b/core/modules/user/tests/src/Functional/UserRoleAdminTest.php
index 8c2c6ee875cccfbc09ac54eb075184ae696e3def..282a98280053983f59a6b0d349af8b4e6d871f2f 100644
--- a/core/modules/user/tests/src/Functional/UserRoleAdminTest.php
+++ b/core/modules/user/tests/src/Functional/UserRoleAdminTest.php
@@ -97,10 +97,10 @@ public function testRoleAdministration() {
     // interface.
     $this->drupalGet('admin/people/roles/manage/' . RoleInterface::ANONYMOUS_ID);
     $this->assertSession()->statusCodeEquals(200);
-    $this->assertNoText(t('Delete role'), 'Delete button for the anonymous role is not present.');
+    $this->assertNoText('Delete role', 'Delete button for the anonymous role is not present.');
     $this->drupalGet('admin/people/roles/manage/' . RoleInterface::AUTHENTICATED_ID);
     $this->assertSession()->statusCodeEquals(200);
-    $this->assertNoText(t('Delete role'), 'Delete button for the authenticated role is not present.');
+    $this->assertNoText('Delete role', 'Delete button for the authenticated role is not present.');
   }
 
   /**
diff --git a/core/modules/user/tests/src/Functional/Views/UserFieldsAccessChangeTest.php b/core/modules/user/tests/src/Functional/Views/UserFieldsAccessChangeTest.php
index 10ac272eca89affbb6bad39164dbf609a47a433e..b4fd00808f241506b4c66b34f41075e8f0162327 100644
--- a/core/modules/user/tests/src/Functional/Views/UserFieldsAccessChangeTest.php
+++ b/core/modules/user/tests/src/Functional/Views/UserFieldsAccessChangeTest.php
@@ -39,9 +39,9 @@ public function testUserFieldAccess() {
     $this->assertText(t('Created'));
 
     // User does not by default have access to init, mail and status.
-    $this->assertNoText(t('Init'));
-    $this->assertNoText(t('Email'));
-    $this->assertNoText(t('Status'));
+    $this->assertNoText('Init');
+    $this->assertNoText('Email');
+    $this->assertNoText('Status');
 
     // Assign sub-admin role to grant extra access.
     $user = $this->drupalCreateUser(['sub-admin']);
diff --git a/core/modules/views_ui/tests/src/Functional/DisplayCRUDTest.php b/core/modules/views_ui/tests/src/Functional/DisplayCRUDTest.php
index f75be186e0c7bcb568f020a233020e324c886cfc..e4b3e0b60df76f90a69277249b597674bfdb674e 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayCRUDTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayCRUDTest.php
@@ -132,7 +132,7 @@ public function testDuplicateDisplay() {
     $this->assertLinkByHref($path_prefix . '/block_1', 0, 'Make sure after duplicating the new display appears in the UI');
     $this->assertUrl($path_prefix . '/block_1');
     $this->assertText(t('Block settings'));
-    $this->assertNoText(t('Page settings'));
+    $this->assertNoText('Page settings');
 
     $this->drupalPostForm(NULL, [], t('Save'));
     $view = Views::getView($view['id']);
diff --git a/core/modules/views_ui/tests/src/Functional/StyleUITest.php b/core/modules/views_ui/tests/src/Functional/StyleUITest.php
index 4d5f0588a3a6ca847409edd381372ba134964ed3..a6f0f744c3c3b7022b7e28f59af41d191adfc645 100644
--- a/core/modules/views_ui/tests/src/Functional/StyleUITest.php
+++ b/core/modules/views_ui/tests/src/Functional/StyleUITest.php
@@ -64,7 +64,7 @@ public function testStyleUI() {
     $this->drupalPostForm("admin/structure/views/view/$view_name/edit", [], 'Add Page');
     $this->drupalPostForm("admin/structure/views/nojs/display/$view_name/page_1/row", ['row[type]' => 'fields'], t('Apply'));
     // If fields are being used this text will not be shown.
-    $this->assertNoText(t('The selected style or row format does not use fields.'));
+    $this->assertNoText('The selected style or row format does not use fields.');
   }
 
 }