function FilterFormTest::assertNoSelect

Same name and namespace in other branches
  1. 8.9.x core/modules/filter/tests/src/Functional/FilterFormTest.php \Drupal\Tests\filter\Functional\FilterFormTest::assertNoSelect()
  2. 10 core/modules/filter/tests/src/Functional/FilterFormTest.php \Drupal\Tests\filter\Functional\FilterFormTest::assertNoSelect()
  3. 11.x core/modules/filter/tests/src/Functional/FilterFormTest.php \Drupal\Tests\filter\Functional\FilterFormTest::assertNoSelect()

Makes sure that no select element with the given ID exists on the page.

@internal

Parameters

string $id: The HTML ID of the select element.

3 calls to FilterFormTest::assertNoSelect()
FilterFormTest::assertDisabledTextarea in core/modules/filter/tests/src/Functional/FilterFormTest.php
Asserts that a textarea with a given ID has been disabled from editing.
FilterFormTest::doFilterFormTestAsAdmin in core/modules/filter/tests/src/Functional/FilterFormTest.php
Tests the behavior of the 'text_format' element as an administrator.
FilterFormTest::doFilterFormTestAsNonAdmin in core/modules/filter/tests/src/Functional/FilterFormTest.php
Tests the behavior of the 'text_format' element as a normal user.

File

core/modules/filter/tests/src/Functional/FilterFormTest.php, line 181

Class

FilterFormTest
Tests form elements with associated text formats.

Namespace

Drupal\Tests\filter\Functional

Code

protected function assertNoSelect(string $id) : void {
    $this->assertSession()
        ->elementNotExists('xpath', "//select[@id={$id}]");
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.