protected function AutosaveFormTestBase::logHtmlOutput in Autosave Form 8
Logs the html of the current page.
7 calls to AutosaveFormTestBase::logHtmlOutput()
- AutosaveFormTestBase::reloadPageAndRestore in tests/
src/ FunctionalJavascript/ AutosaveFormTestBase.php - Loads the page and submits the autosave restore.
- AutosaveFormTestBase::waitForAutosaveResumeButtonToDisappear in tests/
src/ FunctionalJavascript/ AutosaveFormTestBase.php - Waits for the autosave restore button to disappear.
- ContentEntityAutosaveFormTestBase::addItemToUnlimitedTestField in tests/
src/ FunctionalJavascript/ ContentEntity/ ContentEntityAutosaveFormTestBase.php - Adds a new item to the unlimited test field.
- ContentEntityAutosaveFormTestBase::assertCorrectlyRestoredEntityFormState in tests/
src/ FunctionalJavascript/ ContentEntity/ ContentEntityAutosaveFormTestBase.php - Tests the restored autosave state by the change ID.
- ContentEntityAutosaveFormTestBase::doTestAutosaveAfterFormValidationFail in tests/
src/ FunctionalJavascript/ ContentEntity/ ContentEntityAutosaveFormTestBase.php - Tests the autosave message not being shown on reload after validation fail.
File
- tests/
src/ FunctionalJavascript/ AutosaveFormTestBase.php, line 237
Class
- AutosaveFormTestBase
- Basic functionality for autosave form tests.
Namespace
Drupal\Tests\autosave_form\FunctionalJavascriptCode
protected function logHtmlOutput($debug_text = NULL) {
if ($this->htmlOutputEnabled) {
$html_output = 'Current URL: ' . $this
->getSession()
->getCurrentUrl();
if ($debug_text) {
$html_output .= '<hr />' . $debug_text;
}
$html_output .= '<hr />' . $this
->getSession()
->getPage()
->getContent();
$html_output .= $this
->getHtmlOutputHeaders();
$this
->htmlOutput($html_output);
}
}