public function ElementContext::assertNoOptions in Lightning Core 8
Same name and namespace in other branches
- 8.5 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertNoOptions()
- 8.2 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertNoOptions()
- 8.3 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertNoOptions()
- 8.4 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertNoOptions()
Asserts that a select list does not have a set of options.
@Then the :select field should not have options:
Parameters
string $select: The select list to check.
\Behat\Gherkin\Node\PyStringNode $options: The options to look for.
File
- tests/
contexts/ ElementContext.behat.inc, line 157
Class
- ElementContext
- Contains miscellaneous step definitions for working with HTML elements.
Namespace
Acquia\LightningExtension\ContextCode
public function assertNoOptions($select, PyStringNode $options) {
foreach ($options
->getStrings() as $option) {
$this
->assertNoOption($select, $option);
}
}