protected function EntityUsageJavascriptTestBase::saveHtmlOutput in Entity Usage 8.2
Same name and namespace in other branches
- 8.4 tests/src/FunctionalJavascript/EntityUsageJavascriptTestBase.php \Drupal\Tests\entity_usage\FunctionalJavascript\EntityUsageJavascriptTestBase::saveHtmlOutput()
- 8 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.
17 calls to EntityUsageJavascriptTestBase::saveHtmlOutput()
- BatchUpdateTest::testBatchUpdate in tests/
src/ FunctionalJavascript/ BatchUpdateTest.php - Tests the batch update.
- ConfigEntityTrackingTest::testBlockFieldCustomBlocksTracking in tests/
src/ FunctionalJavascript/ ConfigEntityTrackingTest.php - Tests block_field / custom_blocks tracking.
- ConfigEntityTrackingTest::testBlockFieldViewsTracking in tests/
src/ FunctionalJavascript/ ConfigEntityTrackingTest.php - Tests block_field / views tracking.
- ConfigEntityTrackingTest::testWebformTracking in tests/
src/ FunctionalJavascript/ ConfigEntityTrackingTest.php - Tests webform tracking.
- ConfigurationFormTest::testConfigForm in tests/
src/ FunctionalJavascript/ ConfigurationFormTest.php - Tests the config form.
File
- tests/
src/ FunctionalJavascript/ EntityUsageJavascriptTestBase.php, line 80
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);
}
}