Skip to content

Commit

Permalink
Merge pull request #36615 from owncloud/BasicStructure-GivenCheck
Browse files Browse the repository at this point in the history
Adjust Given-When steps in BasicStructure context
  • Loading branch information
skshetry authored Dec 19, 2019
2 parents 2e93bf9 + 95f850a commit d74d406
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions tests/acceptance/features/bootstrap/BasicStructure.php
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,6 @@ public function theAdministratorRequestsStatusPhp() {

/**
* @When the administrator creates file :path with content :content in local storage using the testing API
* @Given the administrator has created file :path with content :content in local storage using the testing API
*
* @param string $path
* @param string $content
Expand All @@ -1622,9 +1621,24 @@ public function theAdministratorCreatesFileUsingTheTestingApi($path, $content) {
);
}

/**
* @Given the administrator has created file :path with content :content in local storage using the testing API
*
* @param string $path
* @param string $content
*
* @return void
*/
public function theAdministratorHasCreatedFileUsingTheTestingApi($path, $content) {
$this->theAdministratorHasCreatedFileWithContentInLocalStorageUsingTheTestingApi(
$path,
$content,
'local_storage'
);
}

/**
* @When the administrator creates file :path with content :content in local storage :mountPoint using the testing API
* @Given the administrator has created file :path with content :content in local storage :mountPount
*
* @param string $path
* @param string $content
Expand All @@ -1649,9 +1663,27 @@ public function theAdministratorCreatesFileWithContentInLocalStorageUsingTheTest
$this->getOcsApiVersion()
);
$this->setResponse($response);
$this->theHTTPStatusCodeShouldBeSuccess();
}

/**
* @Given the administrator has created file :path with content :content in local storage :mountPount
*
* @param string $path
* @param string $content
* @param string $mountPoint
*
* @return void
*/
public function theAdministratorHasCreatedFileWithContentInLocalStorageUsingTheTestingApi(
$path, $content, $mountPoint
) {
$this->theAdministratorCreatesFileWithContentInLocalStorageUsingTheTestingApi(
$path,
$content,
$mountPoint
);
$this->theHTTPStatusCodeShouldBeSuccess();
}
/**
* @When the administrator deletes file :path in local storage using the testing API
*
Expand Down

0 comments on commit d74d406

Please sign in to comment.