You are here

protected function SearchApiBulkFormTest::checkCheckboxInRow in Search API 8

Checks the checkbox in the Views row containing the given text.

Parameters

string $text: Text contained in the row to be selected.

1 call to SearchApiBulkFormTest::checkCheckboxInRow()
SearchApiBulkFormTest::testBulkForm in tests/src/Functional/SearchApiBulkFormTest.php
Tests the Views bulk form.

File

tests/src/Functional/SearchApiBulkFormTest.php, line 210

Class

SearchApiBulkFormTest
Tests the Search API bulk form Views field plugin.

Namespace

Drupal\Tests\search_api\Functional

Code

protected function checkCheckboxInRow(string $text) {
  $row = $this
    ->getRowContainingText($text);
  $checkbox = $row
    ->find('css', 'input[type="checkbox"]');
  $this
    ->assertNotNull($checkbox);
  $checkbox
    ->check();
}