protected function DynamicEntityReferenceTest::performAutocompleteQuery in Dynamic Entity Reference 8
Same name and namespace in other branches
- 8.2 tests/src/FunctionalJavascript/DynamicEntityReferenceTest.php \Drupal\Tests\dynamic_entity_reference\FunctionalJavascript\DynamicEntityReferenceTest::performAutocompleteQuery()
Peforms an autocomplete query on an element.
Parameters
string $autocomplete_query: String to search for.
\Behat\Mink\Element\NodeElement $autocomplete_field: Field to search in.
1 call to DynamicEntityReferenceTest::performAutocompleteQuery()
- DynamicEntityReferenceTest::testFieldSettings in tests/
src/ FunctionalJavascript/ DynamicEntityReferenceTest.php - Tests field settings of dynamic entity reference field.
File
- tests/
src/ FunctionalJavascript/ DynamicEntityReferenceTest.php, line 287
Class
- DynamicEntityReferenceTest
- Ensures that Dynamic Entity References field works correctly.
Namespace
Drupal\Tests\dynamic_entity_reference\FunctionalJavascriptCode
protected function performAutocompleteQuery($autocomplete_query, NodeElement $autocomplete_field) {
$autocomplete_field
->setValue($autocomplete_query);
$autocomplete_field
->keyDown(' ');
$this
->assertSession()
->waitOnAutocomplete();
}