protected function FilterFormTest::assertNoSelect in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/filter/src/Tests/FilterFormTest.php \Drupal\filter\Tests\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.
Return value
bool TRUE if the assertion passed; FALSE otherwise.
3 calls to FilterFormTest::assertNoSelect()
- FilterFormTest::assertDisabledTextarea in core/
modules/ filter/ src/ Tests/ FilterFormTest.php - Asserts that a textarea with a given ID has been disabled from editing.
- FilterFormTest::doFilterFormTestAsAdmin in core/
modules/ filter/ src/ Tests/ FilterFormTest.php - Tests the behavior of the 'text_format' element as an administrator.
- FilterFormTest::doFilterFormTestAsNonAdmin in core/
modules/ filter/ src/ Tests/ FilterFormTest.php - Tests the behavior of the 'text_format' element as a normal user.
File
- core/
modules/ filter/ src/ Tests/ FilterFormTest.php, line 184 - Contains \Drupal\filter\Tests\FilterFormTest.
Class
- FilterFormTest
- Tests form elements with associated text formats.
Namespace
Drupal\filter\TestsCode
protected function assertNoSelect($id) {
$select = $this
->xpath('//select[@id=:id]', array(
':id' => $id,
));
return $this
->assertFalse($select, SafeMarkup::format('Field @id does not exist.', array(
'@id' => $id,
)));
}