protected function EntityUsageJavascriptTestBase::saveHtmlOutput in Entity Usage 8.4
Same name and namespace in other branches
- 8 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.
16 calls to EntityUsageJavascriptTestBase::saveHtmlOutput()
- 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.
- DynamicEntityReferenceTest::testDynamicEntityReferenceTracking in tests/
src/ FunctionalJavascript/ DynamicEntityReferenceTest.php - Tests the tracking of entities through dynamic entity reference fields.
File
- tests/
src/ FunctionalJavascript/ EntityUsageJavascriptTestBase.php, line 81
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);
}
}