protected function YamlFormTestTrait::assertNoCssSelect in YAML Form 8
Passes if the CSS selector IS NOT found on the loaded page, fail otherwise.
1 call to YamlFormTestTrait::assertNoCssSelect()
- YamlFormSubmissionFormSettingsTest::testSettings in src/
Tests/ YamlFormSubmissionFormSettingsTest.php - Tests form setting including confirmation.
File
- src/
Tests/ YamlFormTestTrait.php, line 482
Class
- YamlFormTestTrait
- Defines form test trait.
Namespace
Drupal\yamlform\TestsCode
protected function assertNoCssSelect($selector, $message = '') {
$element = $this
->cssSelect($selector);
$this
->assertTrue(empty($element), $message);
}