You are here

protected function SearchApiBulkFormTest::assertCheckboxNotExistsInRow in Search API 8

Asserts that no checkbox exists in the Views row containing the given text.

The existence of a row with the given text is also still asserted.

Parameters

string $text: Text contained in the row.

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

File

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

Class

SearchApiBulkFormTest
Tests the Search API bulk form Views field plugin.

Namespace

Drupal\Tests\search_api\Functional

Code

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