public function SiteAlertTestBase::fillField in Site Alert 8
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
1 call to SiteAlertTestBase::fillField()
- SiteAlertUiTest::testUi in tests/
src/ Functional/ SiteAlertUiTest.php - Tests the creation and deletion of site alerts through the user interface.
File
- tests/
src/ Functional/ SiteAlertTestBase.php, line 75
Class
- SiteAlertTestBase
- Has some additional helper methods to make test code more readable.
Namespace
Drupal\Tests\site_alert\FunctionalCode
public function fillField($locator, $value) {
$this
->getSession()
->getPage()
->fillField($locator, $value);
}