You are here

protected function ContentEntityAutosaveFormTestBase::fillTestField in Autosave Form 8

Fields a field item by its name and delta.

Parameters

$field_name: The name of the field.

$delta: The delta item of the field.

$value: The value.

2 calls to ContentEntityAutosaveFormTestBase::fillTestField()
ContentEntityAutosaveFormTestBase::emptyRequiredFieldTestAutosaveAfterFormValidationFail in tests/src/FunctionalJavascript/ContentEntity/ContentEntityAutosaveFormTestBase.php
Empties a required field.
ContentEntityAutosaveFormTestBase::makeEntityFormChange in tests/src/FunctionalJavascript/ContentEntity/ContentEntityAutosaveFormTestBase.php
Makes a change by the given change/step ID.

File

tests/src/FunctionalJavascript/ContentEntity/ContentEntityAutosaveFormTestBase.php, line 512

Class

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

Namespace

Drupal\Tests\autosave_form\FunctionalJavascript\ContentEntity

Code

protected function fillTestField($field_name, $delta, $value) {
  $this
    ->getSession()
    ->getPage()
    ->fillField("{$field_name}[{$delta}][value]", $value);
}