You are here

protected function IntegrationTest::assertSelectOptionCanBeSelected in Views Entity Reference Filter 8

Asserts that an option with a given value can be selected in a select.

Parameters

string $locator: input id, name or label

string $value: option value

Throws

\Behat\Mink\Exception\ElementNotFoundException

2 calls to IntegrationTest::assertSelectOptionCanBeSelected()
IntegrationTest::testFilterWorks in tests/src/Functional/IntegrationTest.php
Tests that the Views Entity Reference Filter works.
IntegrationTest::testRegression2720953 in tests/src/Functional/IntegrationTest.php
Tests that a user can only select items they have access to.

File

tests/src/Functional/IntegrationTest.php, line 132

Class

IntegrationTest
Tests the integration between Views Entity Reference Filter and Views.

Namespace

Drupal\Tests\verf\Functional

Code

protected function assertSelectOptionCanBeSelected($locator, $value) {
  $this
    ->getSession()
    ->getPage()
    ->selectFieldOption($locator, $value);
}