diff --git a/core/modules/system/src/Tests/System/PageTitleTest.php b/core/modules/system/src/Tests/System/PageTitleTest.php index c41c130..6d56a6f 100644 --- a/core/modules/system/src/Tests/System/PageTitleTest.php +++ b/core/modules/system/src/Tests/System/PageTitleTest.php @@ -143,19 +143,19 @@ public function testRoutingTitle() { // controller does not escape them. $this->drupalGet('test-page-cached-controller'); $this->assertTitle('Cached title | Drupal'); - $this->assertText(SafeMarkup::checkPlain('Cached title')); + $this->assertRaw(SafeMarkup::checkPlain('Cached title') . ''); $this->drupalGet('test-page-cached-controller'); $this->assertTitle('Cached title | Drupal'); - $this->assertText(SafeMarkup::checkPlain('Cached title')); + $this->assertRaw(SafeMarkup::checkPlain('Cached title') . ''); // Ensure that titles are cacheable and are escaped normally if the // controller escapes them use SafeMarkup::checkPlain(). $this->drupalGet('test-page-cached-controller-safe'); $this->assertTitle('Cached title | Drupal'); - $this->assertText(SafeMarkup::checkPlain('Cached title')); + $this->assertRaw(SafeMarkup::checkPlain('Cached title') . ''); $this->drupalGet('test-page-cached-controller-safe'); $this->assertTitle('Cached title | Drupal'); - $this->assertText(SafeMarkup::checkPlain('Cached title')); + $this->assertRaw(SafeMarkup::checkPlain('Cached title') . ''); } }