Commit 0eb8baa5 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1738667: Fix grammar in steps"

parents ab83396c 1d20fa8d
...@@ -1047,12 +1047,12 @@ class BehatGeneral extends BehatBase { ...@@ -1047,12 +1047,12 @@ class BehatGeneral extends BehatBase {
* *
* This step is for advanced users, use it if you don't find anything else suitable for what you need. * This step is for advanced users, use it if you don't find anything else suitable for what you need.
* *
* @Then /^"(?P<element_string>(?:[^"]|\\")*)" "(?P<selector_string>[^"]*)" should exists$/ * @Then /^"(?P<element_string>(?:[^"]|\\")*)" "(?P<selector_string>[^"]*)" should exist$/
* @throws ElementNotFoundException Thrown by BehatBase::find * @throws ElementNotFoundException Thrown by BehatBase::find
* @param string $element The locator of the specified selector * @param string $element The locator of the specified selector
* @param string $selectortype The selector type * @param string $selectortype The selector type
*/ */
public function should_exists($element, $selectortype) { public function should_exist($element, $selectortype) {
// Getting Mink selector and locator. // Getting Mink selector and locator.
list($selector, $locator) = $this->transform_selector($selectortype, $element); list($selector, $locator) = $this->transform_selector($selectortype, $element);
...@@ -1066,12 +1066,12 @@ class BehatGeneral extends BehatBase { ...@@ -1066,12 +1066,12 @@ class BehatGeneral extends BehatBase {
* *
* This step is for advanced users, use it if you don't find anything else suitable for what you need. * This step is for advanced users, use it if you don't find anything else suitable for what you need.
* *
* @Then /^"(?P<element_string>(?:[^"]|\\")*)" "(?P<selector_string>[^"]*)" should not exists$/ * @Then /^"(?P<element_string>(?:[^"]|\\")*)" "(?P<selector_string>[^"]*)" should not exist$/
* @throws ExpectationException * @throws ExpectationException
* @param string $element The locator of the specified selector * @param string $element The locator of the specified selector
* @param string $selectortype The selector type * @param string $selectortype The selector type
*/ */
public function should_not_exists($element, $selectortype) { public function should_not_exist($element, $selectortype) {
try { try {
$this->should_exists($element, $selectortype); $this->should_exists($element, $selectortype);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment