You are here

public function UiTestBase::fillField in Editor Advanced Image 8

Same name and namespace in other branches
  1. 8.2 tests/src/FunctionalJavascript/UiTestBase.php \Drupal\Tests\editor_advanced_image\FunctionalJavascript\UiTestBase::fillField()

Fills in field (input, textarea, select) with specified locator.

Parameters

string $locator: Input id, name or label.

string $value: Value.

Throws

\Behat\Mink\Exception\ElementNotFoundException

See also

\Behat\Mink\Element\NodeElement::setValue

2 calls to UiTestBase::fillField()
UiAdminTest::testAdminForm in tests/src/FunctionalJavascript/UiAdminTest.php
Tests a CKEditor editor and visibilit of Editor Advanced Image config.
UiAdminTest::testDefaultClass in tests/src/FunctionalJavascript/UiAdminTest.php
Tests a CKEditor editor & storage of default class field.

File

tests/src/FunctionalJavascript/UiTestBase.php, line 90

Class

UiTestBase
Has some additional helper methods to make test code more readable.

Namespace

Drupal\Tests\editor_advanced_image\FunctionalJavascript

Code

public function fillField($locator, $value) {
  $this
    ->getSession()
    ->getPage()
    ->fillField($locator, $value);
}