Add tests removed by core pr-40276
This commit is contained in:
committed by
Phil Davis
parent
6f9afa84a8
commit
70ed9792f1
@@ -270,7 +270,6 @@ class SpacesContext implements Context {
|
||||
$spaces = $this->getAvailableSpaces();
|
||||
Assert::assertIsArray($spaces[$spaceName], "Space with name $spaceName for user $user not found");
|
||||
Assert::assertNotEmpty($spaces[$spaceName]["root"]["webDavUrl"], "WebDavUrl for space with name $spaceName for user $user not found");
|
||||
|
||||
return $spaces[$spaceName];
|
||||
}
|
||||
|
||||
@@ -1632,6 +1631,29 @@ class SpacesContext implements Context {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Given /^user "([^"]*)" has changed the quota of the personal space of "([^"]*)" space to "([^"]*)"$/
|
||||
*
|
||||
* @param string $user
|
||||
* @param string $spaceName
|
||||
* @param int $newQuota
|
||||
*
|
||||
* @return void
|
||||
* @throws GuzzleException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function userHasChangedTheQuotaOfTheSpaceTo(
|
||||
string $user,
|
||||
string $spaceName,
|
||||
int $newQuota
|
||||
): void {
|
||||
$this->updateSpaceQuota($user, $spaceName, $newQuota);
|
||||
$this->featureContext->theHTTPStatusCodeShouldBe(
|
||||
200,
|
||||
"Expected response status code should be 200"
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @When /^user "([^"]*)" sets the file "([^"]*)" as a (description|space image)\s? in a special section of the "([^"]*)" space$/
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user