diff --git a/core/modules/user/src/Tests/UserPictureTest.php b/core/modules/user/src/Tests/UserPictureTest.php index a293642..c506d41 100755 --- a/core/modules/user/src/Tests/UserPictureTest.php +++ b/core/modules/user/src/Tests/UserPictureTest.php @@ -100,7 +100,7 @@ function testPictureOnNodeComment() { // Verify that the image is displayed on the user account page. $this->drupalGet('node/' . $node->id()); $this->assertRaw(file_uri_target($file->getFileUri()), 'User picture found on node page.'); - $this->assertRaw(t('alt="Profile picture for user @username"', ['@username' => $this->webUser->getUsername()])); + $this->assertRaw('alt="' . t('Profile picture for user @username', ['@username' => $this->webUser->getUsername()]) . '"'); // Enable user pictures on comments, instead of nodes. $this->config('system.theme.global') @@ -113,7 +113,7 @@ function testPictureOnNodeComment() { ); $this->drupalPostForm('comment/reply/node/' . $node->id() . '/comment', $edit, t('Save')); $this->assertRaw(file_uri_target($file->getFileUri()), 'User picture found on comment.'); - $this->assertRaw(t('alt="Profile picture for user @username"', ['@username' => $this->webUser->getUsername()])); + $this->assertRaw('alt="' . t('Profile picture for user @username', ['@username' => $this->webUser->getUsername()]) . '"'); // Disable user pictures on comments and nodes. $this->config('system.theme.global')