public function ContentEntityAutosaveFormTestBase::testAutosaveForms in Autosave Form 8
Tests autosave.
File
- tests/
src/ FunctionalJavascript/ ContentEntity/ ContentEntityAutosaveFormTestBase.php, line 82
Class
- ContentEntityAutosaveFormTestBase
- Base test class for testing autosave support for entity forms.
Namespace
Drupal\Tests\autosave_form\FunctionalJavascript\ContentEntityCode
public function testAutosaveForms() {
// It looks like phantomjs is crashing if an ajax autosave form request is
// still running when we go the next test and visit the entity form of
// different entity in which case the currently running ajax autosave form
// request will be aborted. In order to prevent this crash we re-log the
// user prior to each test.
$this
->doTestAutosaveFormNewEntity();
$this
->relogUser();
$this
->doTestAutosaveFormExistingEntity();
$this
->relogUser();
$this
->doTestSavingRestoredEntityForm();
$this
->relogUser();
$this
->doTestConcurrentEditing();
$this
->relogUser();
$this
->doTestAutosaveAfterFormValidationFail();
$this
->relogUser();
$this
->doTestAutosaveStatesPurgingOnConfigEvent();
}