Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Few more possible regular expressions to check checkbox is checked #57

Merged
merged 2 commits into from Mar 9, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Behat/MinkExtension/Context/MinkContext.php
Expand Up @@ -371,6 +371,7 @@ public function assertFieldNotContains($field, $value)
* Checks, that checkbox with specified in|name|label|value is checked. * Checks, that checkbox with specified in|name|label|value is checked.
* *
* @Then /^the "(?P<checkbox>(?:[^"]|\\")*)" checkbox should be checked$/ * @Then /^the "(?P<checkbox>(?:[^"]|\\")*)" checkbox should be checked$/
* @Then /^the checkbox "(?P<checkbox>(?:[^"]|\\")*)" (?:is|should be) checked$/
*/ */
public function assertCheckboxChecked($checkbox) public function assertCheckboxChecked($checkbox)
{ {
Expand All @@ -381,6 +382,8 @@ public function assertCheckboxChecked($checkbox)
* Checks, that checkbox with specified in|name|label|value is unchecked. * Checks, that checkbox with specified in|name|label|value is unchecked.
* *
* @Then /^the "(?P<checkbox>(?:[^"]|\\")*)" checkbox should not be checked$/ * @Then /^the "(?P<checkbox>(?:[^"]|\\")*)" checkbox should not be checked$/
* @Then /^the checkbox "(?P<checkbox>(?:[^"]|\\")*)" should (?:be unchecked|not be checked)$/
* @Then /^the checkbox "(?P<checkbox>(?:[^"]|\\")*)" is (?:unchecked|not checked)$/
*/ */
public function assertCheckboxNotChecked($checkbox) public function assertCheckboxNotChecked($checkbox)
{ {
Expand Down
3 changes: 3 additions & 0 deletions src/Behat/MinkExtension/Context/MinkDictionary.php
Expand Up @@ -437,6 +437,7 @@ public function assertFieldNotContains($field, $value)
* Checks, that checkbox with specified in|name|label|value is checked. * Checks, that checkbox with specified in|name|label|value is checked.
* *
* @Then /^the "(?P<checkbox>(?:[^"]|\\")*)" checkbox should be checked$/ * @Then /^the "(?P<checkbox>(?:[^"]|\\")*)" checkbox should be checked$/
* @Then /^the checkbox "(?P<checkbox>(?:[^"]|\\")*)" (?:is|should be) checked$/
*/ */
public function assertCheckboxChecked($checkbox) public function assertCheckboxChecked($checkbox)
{ {
Expand All @@ -447,6 +448,8 @@ public function assertCheckboxChecked($checkbox)
* Checks, that checkbox with specified in|name|label|value is unchecked. * Checks, that checkbox with specified in|name|label|value is unchecked.
* *
* @Then /^the "(?P<checkbox>(?:[^"]|\\")*)" checkbox should not be checked$/ * @Then /^the "(?P<checkbox>(?:[^"]|\\")*)" checkbox should not be checked$/
* @Then /^the checkbox "(?P<checkbox>(?:[^"]|\\")*)" should (?:be unchecked|not be checked)$/
* @Then /^the checkbox "(?P<checkbox>(?:[^"]|\\")*)" is (?:unchecked|not checked)$/
*/ */
public function assertCheckboxNotChecked($checkbox) public function assertCheckboxNotChecked($checkbox)
{ {
Expand Down