diff --git a/core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php b/core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php
index 3555d59..591e40c 100644
--- a/core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php
+++ b/core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php
@@ -37,11 +37,11 @@ public function testOutput() {
// Check that there are
tags for the HTML output by
// SimpletestUiPrinter.
- $this->assertEqual($output[9], 'HTML output was generated
');
+ $this->assertEqual($output[18], 'HTML output was generated
');
// @todo Remove this, just looking what is different on the testbot.
$this->assertEqual([], $output);
// Check that URLs are printed as HTML links.
- $this->assertIdentical(strpos($output[10], 'drupalGet('');
+ $this->assertSession()->responseContains('TEST escaping
');
}
}
diff --git a/core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php b/core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php
index ac22072..aa9fc28 100644
--- a/core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php
+++ b/core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php
@@ -62,6 +62,9 @@ public function printResult(\PHPUnit_Framework_TestResult $result) {
$this->writeNewLine();
$this->writeWithColor('bg-yellow, fg-black', 'HTML output was generated');
$this->write($contents);
+ // @todo remove this.
+ $this->writeNewLine();
+ $this->write('
klausi test test');
}
// No need to keep the file around any more.
unlink($this->browserOutputFile);