From b6df1919333f00b7c9b481f1787b53fab938167c Mon Sep 17 00:00:00 2001 From: kssundar Date: Thu, 13 Dec 2012 16:42:54 +0530 Subject: [PATCH] by kssundar: Updated regular expression to remove 2 verbs and updated trait to be in sync with minkcontext. --- src/Behat/MinkExtension/Context/MinkContext.php | 2 -- src/Behat/MinkExtension/Context/MinkDictionary.php | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Behat/MinkExtension/Context/MinkContext.php b/src/Behat/MinkExtension/Context/MinkContext.php index f8c5f43..2a84aca 100644 --- a/src/Behat/MinkExtension/Context/MinkContext.php +++ b/src/Behat/MinkExtension/Context/MinkContext.php @@ -371,7 +371,6 @@ class MinkContext extends RawMinkContext implements TranslatedContextInterface * Checks, that checkbox with specified in|name|label|value is checked. * * @Then /^the "(?P(?:[^"]|\\")*)" checkbox should be checked$/ - * @Then /^I (?:|should )see the checkbox "(?P(?:[^"]|\\")*)" checked$/ * @Then /^the checkbox "(?P(?:[^"]|\\")*)" (?:is|should be) checked$/ */ public function assertCheckboxChecked($checkbox) @@ -383,7 +382,6 @@ class MinkContext extends RawMinkContext implements TranslatedContextInterface * Checks, that checkbox with specified in|name|label|value is unchecked. * * @Then /^the "(?P(?:[^"]|\\")*)" checkbox should not be checked$/ - * @Then /^I (?:|should )see the checkbox "(?P(?:[^"]|\\")*)" (?:is not checked|is unchecked)$/ * @Then /^the checkbox "(?P(?:[^"]|\\")*)" should (?:be unchecked|not be checked)$/ * @Then /^the checkbox "(?P(?:[^"]|\\")*)" is (?:unchecked|not checked)$/ */ diff --git a/src/Behat/MinkExtension/Context/MinkDictionary.php b/src/Behat/MinkExtension/Context/MinkDictionary.php index a36aef3..77804f5 100644 --- a/src/Behat/MinkExtension/Context/MinkDictionary.php +++ b/src/Behat/MinkExtension/Context/MinkDictionary.php @@ -437,6 +437,7 @@ trait MinkDictionary * Checks, that checkbox with specified in|name|label|value is checked. * * @Then /^the "(?P(?:[^"]|\\")*)" checkbox should be checked$/ + * @Then /^the checkbox "(?P(?:[^"]|\\")*)" (?:is|should be) checked$/ */ public function assertCheckboxChecked($checkbox) { @@ -447,6 +448,8 @@ trait MinkDictionary * Checks, that checkbox with specified in|name|label|value is unchecked. * * @Then /^the "(?P(?:[^"]|\\")*)" checkbox should not be checked$/ + * @Then /^the checkbox "(?P(?:[^"]|\\")*)" should (?:be unchecked|not be checked)$/ + * @Then /^the checkbox "(?P(?:[^"]|\\")*)" is (?:unchecked|not checked)$/ */ public function assertCheckboxNotChecked($checkbox) {