diff --git a/core/modules/block_content/src/Tests/BlockContentTypeTest.php b/core/modules/block_content/src/Tests/BlockContentTypeTest.php index 485368b..9e11a1c 100644 --- a/core/modules/block_content/src/Tests/BlockContentTypeTest.php +++ b/core/modules/block_content/src/Tests/BlockContentTypeTest.php @@ -116,7 +116,7 @@ public function testBlockContentTypeEditing() { 'label' => 'Bar', ); $this->drupalGet('admin/structure/block/block-content/manage/basic'); - $this->assertTitle('Edit basic custom block type | Drupal'); + $this->assertTitle('Edit basic custom block type | Drupal'); $this->drupalPostForm(NULL, $edit, t('Save')); \Drupal::entityManager()->clearCachedFieldDefinitions(); diff --git a/core/modules/contact/src/Tests/ContactPersonalTest.php b/core/modules/contact/src/Tests/ContactPersonalTest.php index 176beea..6a2aca5 100644 --- a/core/modules/contact/src/Tests/ContactPersonalTest.php +++ b/core/modules/contact/src/Tests/ContactPersonalTest.php @@ -95,7 +95,7 @@ function testSendPersonalContactMessage() { $this->drupalLogin($this->adminUser); // Verify that the correct watchdog message has been logged. $this->drupalGet('/admin/reports/dblog'); - $this->assertRaw($this->webUser->username . ' (' . $this->webUser->getEmail() . ') sent ' . $this->contactUser->getUsername() . ' an email.'); + $this->assertRaw(htmlspecialchars($this->webUser->getUsername() . ' (' . $this->webUser->getEmail() . ') sent ' . $this->contactUser->getUsername() . ' an email.')); // Ensure an unescaped version of the email does not exist anywhere. $this->assertNoRaw($this->webUser->getEmail()); } diff --git a/core/modules/contact/src/Tests/ContactSitewideTest.php b/core/modules/contact/src/Tests/ContactSitewideTest.php index 15a8cf2..7bba940 100644 --- a/core/modules/contact/src/Tests/ContactSitewideTest.php +++ b/core/modules/contact/src/Tests/ContactSitewideTest.php @@ -130,7 +130,7 @@ function testSiteWideContact() { $max_length = EntityTypeInterface::BUNDLE_MAX_LENGTH; $max_length_exceeded = $max_length + 1; $this->addContactForm($id = Unicode::strtolower($this->randomMachineName($max_length_exceeded)), $label = $this->randomMachineName($max_length_exceeded), implode(',', array($recipients[0])), '', TRUE); - $this->assertText('Machine-readable name cannot be longer than ' . $max_length . ' characters but is currently @' . $max_length_exceeded . ' characters long.'); + $this->assertText('Machine-readable name cannot be longer than ' . $max_length . ' characters but is currently ' . $max_length_exceeded . ' characters long.'); $this->addContactForm($id = Unicode::strtolower($this->randomMachineName($max_length)), $label = $this->randomMachineName($max_length), implode(',', array($recipients[0])), '', TRUE); $this->assertRaw(t('Contact form %label has been added.', array('%label' => $label))); diff --git a/core/modules/field_ui/src/Tests/ManageFieldsTest.php b/core/modules/field_ui/src/Tests/ManageFieldsTest.php index 11e2a07..9d34060 100644 --- a/core/modules/field_ui/src/Tests/ManageFieldsTest.php +++ b/core/modules/field_ui/src/Tests/ManageFieldsTest.php @@ -363,7 +363,7 @@ function testFieldPrefix() { // Create a valid field. $this->fieldUIAddNewField('admin/structure/types/manage/' . $this->contentType, $this->fieldNameInput, $this->fieldLabel); $this->drupalGet('admin/structure/types/manage/' . $this->contentType . '/fields/node.' . $this->contentType . '.' . $field_prefix . $this->fieldNameInput); - $this->assertText($this->fieldLabel . ' settings for ' . $this->contentType); + $this->assertText(htmlspecialchars($this->fieldLabel . ' settings for ' . $this->contentType)); } /**