[tests-only] Api tests for checking conflict status code while creating folder (#6389)

* add tests for checking conflict status code while creating folder

* fix after review
This commit is contained in:
Viktor Scharf
2023-05-25 14:47:32 +02:00
committed by GitHub
parent ca75468211
commit 76b0e744a7
2 changed files with 35 additions and 1 deletions
@@ -1139,6 +1139,25 @@ class SpacesContext implements Context {
}
}
/**
* @When /^user "([^"]*)" tries to create subfolder "([^"]*)" in a nonexistent folder of the space "([^"]*)" using the WebDav Api$/
*
* @param string $user
* @param string $subfolder
* @param string $spaceName
*
* @return void
*
* @throws GuzzleException
*/
public function theUserTriesToCreateASubFolderUsingTheGraphApi(
string $user,
string $subfolder,
string $spaceName
): void {
$this->theUserCreatesAFolderToAnotherOwnerSpaceUsingTheGraphApi($user, $subfolder, $spaceName);
}
/**
* @Given /^user "([^"]*)" has created a (?:folder|subfolder) "([^"]*)" in space "([^"]*)"$/
*