public function WebAssert::checkboxChecked in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/src/WebAssert.php \Behat\Mink\WebAssert::checkboxChecked()
Checks that specific checkbox is checked.
Parameters
string $field field id|name|label|value:
TraversableElement $container document to check against:
Throws
File
- vendor/
behat/ mink/ src/ WebAssert.php, line 708
Class
- WebAssert
- Mink web assertions tool.
Namespace
Behat\MinkCode
public function checkboxChecked($field, TraversableElement $container = null) {
$node = $this
->fieldExists($field, $container);
$this
->assert($node
->isChecked(), sprintf('Checkbox "%s" is not checked, but it should be.', $field));
}