You are here

protected function ContentEntityAutosaveFormTestBase::emptyRequiredFieldTestAutosaveAfterFormValidationFail in Autosave Form 8

Empties a required field.

Helper method for ::doTestAutosaveAfterFormValidationFail() to empty a required field on the entity form in order to trigger a form validation fail on form submission.

1 call to ContentEntityAutosaveFormTestBase::emptyRequiredFieldTestAutosaveAfterFormValidationFail()
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/ContentEntity/ContentEntityAutosaveFormTestBase.php, line 327

Class

ContentEntityAutosaveFormTestBase
Base test class for testing autosave support for entity forms.

Namespace

Drupal\Tests\autosave_form\FunctionalJavascript\ContentEntity

Code

protected function emptyRequiredFieldTestAutosaveAfterFormValidationFail() {
  $this
    ->fillTestField($this->requiredField, 0, '');
}