function FilterFormTest::assertNoSelect
Same name in other branches
- 9 core/modules/filter/tests/src/Functional/FilterFormTest.php \Drupal\Tests\filter\Functional\FilterFormTest::assertNoSelect()
- 10 core/modules/filter/tests/src/Functional/FilterFormTest.php \Drupal\Tests\filter\Functional\FilterFormTest::assertNoSelect()
- 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.
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 180
Class
- FilterFormTest
- Tests form elements with associated text formats.
Namespace
Drupal\Tests\filter\FunctionalCode
protected function assertNoSelect($id) {
$select = $this->xpath('//select[@id=:id]', [
':id' => $id,
]);
$this->assertEmpty($select, new FormattableMarkup('Field @id does not exist.', [
'@id' => $id,
]));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.