You are here

public function WebAssert::checkboxNotChecked in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/WebAssert.php \Behat\Mink\WebAssert::checkboxNotChecked()

Checks that specific checkbox is unchecked.

Parameters

string $field field id|name|label|value:

TraversableElement $container document to check against:

Throws

ExpectationException

File

vendor/behat/mink/src/WebAssert.php, line 723

Class

WebAssert
Mink web assertions tool.

Namespace

Behat\Mink

Code

public function checkboxNotChecked($field, TraversableElement $container = null) {
  $node = $this
    ->fieldExists($field, $container);
  $this
    ->assert(!$node
    ->isChecked(), sprintf('Checkbox "%s" is checked, but it should not be.', $field));
}