protected function EntityUsageJavascriptTestBase::saveHtmlOutput in Entity Usage 8
Same name and namespace in other branches
- 8.4 tests/src/FunctionalJavascript/EntityUsageJavascriptTestBase.php \Drupal\Tests\entity_usage\FunctionalJavascript\EntityUsageJavascriptTestBase::saveHtmlOutput()
- 8.2 tests/src/FunctionalJavascript/EntityUsageJavascriptTestBase.php \Drupal\Tests\entity_usage\FunctionalJavascript\EntityUsageJavascriptTestBase::saveHtmlOutput()
- 8.3 tests/src/FunctionalJavascript/EntityUsageJavascriptTestBase.php \Drupal\Tests\entity_usage\FunctionalJavascript\EntityUsageJavascriptTestBase::saveHtmlOutput()
Debugger method to save additional HTML output.
The base class will only save browser output when accessing page using ::drupalGet and providing a printer class to PHPUnit. This method is intended for developers to help debug browser test failures and capture more verbose output.
6 calls to EntityUsageJavascriptTestBase::saveHtmlOutput()
- BatchUpdateTest::testBatchUpdate in tests/
src/ FunctionalJavascript/ BatchUpdateTest.php - Tests the batch update.
- ConfigurationFormTest::testConfigForm in tests/
src/ FunctionalJavascript/ ConfigurationFormTest.php - Tests the config form.
- IntegrationTest::testCrudTracking in tests/
src/ FunctionalJavascript/ IntegrationTest.php - Tests the tracking of nodes in some simple CRUD operations.
- IntegrationTest::testLinkTracking in tests/
src/ FunctionalJavascript/ IntegrationTest.php - Tests the tracking of nodes in link fields.
- ListControllerTest::testListController in tests/
src/ FunctionalJavascript/ ListControllerTest.php - Tests the page listing the usage of entities.
File
- tests/
src/ FunctionalJavascript/ EntityUsageJavascriptTestBase.php, line 76
Class
- EntityUsageJavascriptTestBase
- Base class for Entity Usage Javascript functional tests.
Namespace
Drupal\Tests\entity_usage\FunctionalJavascriptCode
protected function saveHtmlOutput() {
$out = $this
->getSession()
->getPage()
->getContent();
// Ensure that any changes to variables in the other thread are picked up.
$this
->refreshVariables();
if ($this->htmlOutputEnabled) {
$html_output = '<hr />Ending URL: ' . $this
->getSession()
->getCurrentUrl();
$html_output .= '<hr />' . $out;
$html_output .= $this
->getHtmlOutputHeaders();
$this
->htmlOutput($html_output);
}
}