function WebAssert::checkboxNotChecked
Checks that specific checkbox is unchecked.
Parameters
string $field field id|name|label|value:
TraversableElement|null $container document to check against:
Return value
void
Throws
File
-
vendor/
behat/ mink/ src/ WebAssert.php, line 839
Class
- WebAssert
- Mink web assertions tool.
Namespace
Behat\MinkCode
public function checkboxNotChecked(string $field, ?TraversableElement $container = null) {
$node = $this->fieldExists($field, $container);
$this->assert(!$node->isChecked(), sprintf('Checkbox "%s" is checked, but it should not be.', $field));
}