diff --git a/core/modules/action/tests/src/Functional/ConfigurationTest.php b/core/modules/action/tests/src/Functional/ConfigurationTest.php
index 2a4a7452e2b..c2f98725820 100644
--- a/core/modules/action/tests/src/Functional/ConfigurationTest.php
+++ b/core/modules/action/tests/src/Functional/ConfigurationTest.php
@@ -83,7 +83,7 @@ class ConfigurationTest extends BrowserTestBase {
$this->assertSession()->statusCodeEquals(200);
// Make sure that the action was actually deleted.
- $this->assertRaw(t('The action %action has been deleted.', ['%action' => $new_action_label]), 'Make sure that we get a delete confirmation message.');
+ $this->assertRaw(t('The action %action has been deleted.', ['%action' => $new_action_label]));
$this->drupalGet('admin/config/system/actions');
$this->assertSession()->statusCodeEquals(200);
$this->assertNoText($new_action_label, "Make sure the action label does not appear on the overview page after we've deleted the action.");
diff --git a/core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php b/core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php
index 505ed0093e3..a21f166654e 100644
--- a/core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php
+++ b/core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php
@@ -93,7 +93,7 @@ abstract class AggregatorTestBase extends BrowserTestBase {
*/
public function deleteFeed(FeedInterface $feed) {
$this->drupalPostForm('aggregator/sources/' . $feed->id() . '/delete', [], t('Delete'));
- $this->assertRaw(t('The feed %title has been deleted.', ['%title' => $feed->label()]), 'Feed deleted successfully.');
+ $this->assertRaw(t('The feed %title has been deleted.', ['%title' => $feed->label()]));
}
/**
@@ -213,7 +213,7 @@ abstract class AggregatorTestBase extends BrowserTestBase {
*/
public function deleteFeedItems(FeedInterface $feed) {
$this->drupalPostForm('admin/config/services/aggregator/delete/' . $feed->id(), [], t('Delete items'));
- $this->assertRaw(t('The news items from %title have been deleted.', ['%title' => $feed->label()]), 'Feed items deleted.');
+ $this->assertRaw(t('The news items from %title have been deleted.', ['%title' => $feed->label()]));
}
/**
diff --git a/core/modules/aggregator/tests/src/Functional/ImportOpmlTest.php b/core/modules/aggregator/tests/src/Functional/ImportOpmlTest.php
index 9368d31006c..37aafaa8514 100644
--- a/core/modules/aggregator/tests/src/Functional/ImportOpmlTest.php
+++ b/core/modules/aggregator/tests/src/Functional/ImportOpmlTest.php
@@ -62,7 +62,7 @@ class ImportOpmlTest extends AggregatorTestBase {
$edit = [];
$this->drupalPostForm('admin/config/services/aggregator/add/opml', $edit, t('Import'));
- $this->assertRaw(t('Either upload a file or enter a URL.'), 'Error if no fields are filled.');
+ $this->assertRaw(t('Either upload a file or enter a URL.'));
$path = $this->getEmptyOpml();
$edit = [
@@ -70,7 +70,7 @@ class ImportOpmlTest extends AggregatorTestBase {
'remote' => file_create_url($path),
];
$this->drupalPostForm('admin/config/services/aggregator/add/opml', $edit, t('Import'));
- $this->assertRaw(t('Either upload a file or enter a URL.'), 'Error if both fields are filled.');
+ $this->assertRaw(t('Either upload a file or enter a URL.'));
$edit = ['remote' => 'invalidUrl://empty'];
$this->drupalPostForm('admin/config/services/aggregator/add/opml', $edit, t('Import'));
@@ -110,8 +110,10 @@ class ImportOpmlTest extends AggregatorTestBase {
'refresh' => '900',
];
$this->drupalPostForm('admin/config/services/aggregator/add/opml', $edit, t('Import'));
- $this->assertRaw(t('A feed with the URL %url already exists.', ['%url' => $feeds[0]['url[0][value]']]), 'Verifying that a duplicate URL was identified');
- $this->assertRaw(t('A feed named %title already exists.', ['%title' => $feeds[1]['title[0][value]']]), 'Verifying that a duplicate title was identified');
+ // Verify that a duplicate URL was identified.
+ $this->assertRaw(t('A feed with the URL %url already exists.', ['%url' => $feeds[0]['url[0][value]']]));
+ // Verify that a duplicate title was identified.
+ $this->assertRaw(t('A feed named %title already exists.', ['%title' => $feeds[1]['title[0][value]']]));
$after = $count_query->execute();
$this->assertEqual($after, 2, 'Verifying that two distinct feeds were added.');
diff --git a/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php b/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
index eaa2b94c50b..04a9b75602f 100644
--- a/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
+++ b/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
@@ -41,7 +41,7 @@ class IpAddressBlockingTest extends BrowserTestBase {
$this->drupalPostForm('admin/config/people/ban', $edit, t('Add'));
$ip = $connection->select('ban_ip', 'bi')->fields('bi', ['iid'])->condition('ip', $edit['ip'])->execute()->fetchField();
$this->assertNotEmpty($ip, 'IP address found in database.');
- $this->assertRaw(t('The IP address %ip has been banned.', ['%ip' => $edit['ip']]), 'IP address was banned.');
+ $this->assertRaw(t('The IP address %ip has been banned.', ['%ip' => $edit['ip']]));
// Try to block an IP address that's already blocked.
$edit = [];
@@ -72,7 +72,7 @@ class IpAddressBlockingTest extends BrowserTestBase {
$this->drupalPostForm('admin/config/people/ban/' . $submit_ip, [], t('Add'));
$ip = $connection->select('ban_ip', 'bi')->fields('bi', ['iid'])->condition('ip', $submit_ip)->execute()->fetchField();
$this->assertNotEmpty($ip, 'IP address found in database');
- $this->assertRaw(t('The IP address %ip has been banned.', ['%ip' => $submit_ip]), 'IP address was banned.');
+ $this->assertRaw(t('The IP address %ip has been banned.', ['%ip' => $submit_ip]));
// Submit your own IP address. This fails, although it works when testing
// manually.
diff --git a/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php b/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php
index 574a1557f73..c6ae925bd14 100644
--- a/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php
+++ b/core/modules/big_pipe/tests/src/Functional/BigPipeTest.php
@@ -184,7 +184,7 @@ class BigPipeTest extends BrowserTestBase {
1 => $cases['html']->bigPipePlaceholderId,
]);
- $this->assertRaw('