summaryrefslogtreecommitdiffstats
path: root/core/modules/comment/src/Tests/CommentAnonymousTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/comment/src/Tests/CommentAnonymousTest.php')
-rw-r--r--core/modules/comment/src/Tests/CommentAnonymousTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/modules/comment/src/Tests/CommentAnonymousTest.php b/core/modules/comment/src/Tests/CommentAnonymousTest.php
index 19fc6fa..8e1681c 100644
--- a/core/modules/comment/src/Tests/CommentAnonymousTest.php
+++ b/core/modules/comment/src/Tests/CommentAnonymousTest.php
@@ -67,7 +67,9 @@ class CommentAnonymousTest extends CommentTestBase {
'comment_body[0][value]' => $this->randomMachineName(),
);
$this->drupalPostForm('comment/reply/node/' . $this->node->id() . '/comment', $edit, t('Save'));
- $this->assertText(t('The name you used belongs to a registered user.'));
+ $this->assertRaw(t('The name you used (%name) belongs to a registered user.', [
+ '%name' => $this->adminUser->getUsername(),
+ ]));
// Require contact info.
$this->drupalLogin($this->adminUser);