Skip to content

Commit

Permalink
Merge pull request #31625 from owncloud/stable10-acceptance-test-dav-…
Browse files Browse the repository at this point in the history
…path-variable

[stable10] Allow old-new DAV path to be used in scenario outlines
  • Loading branch information
Vincent Petry authored Jun 4, 2018
2 parents 62006bf + 1fffdc0 commit 5114289
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions tests/acceptance/features/bootstrap/WebDav.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,21 @@ private function getNewDavPath() {
}

/**
* @Given /^using old (?:dav|DAV) path$/
* @Given /^using (old|new) (?:dav|DAV) path$/
*
* @param string $oldOrNewDavPath
* @return void
*/
public function usingOldOrNewDavPath($oldOrNewDavPath) {
if ($oldOrNewDavPath === 'old') {
$this->usingOldDavPath();
} else {
$this->usingNewDavPath();
}
}

/**
* Select the old DAV path as the default for later scenario steps
*
* @return void
*/
Expand All @@ -106,7 +120,7 @@ public function usingOldDavPath() {
}

/**
* @Given /^using new (?:dav|DAV) path$/
* Select the new DAV path as the default for later scenario steps
*
* @return void
*/
Expand Down

0 comments on commit 5114289

Please sign in to comment.