diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-12-01 13:36:55 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-12-01 14:51:32 +0100 |
commit | 83432b3c257101dcd90b1309adfcc69e863ebc5c (patch) | |
tree | 792f539d98c14cb0c7672af1fc0cb2404d6f1f05 /build/integration/features/bootstrap/Provisioning.php | |
parent | d5fe052838064909232565265787ba2d9bbf39cf (diff) | |
download | nextcloud-server-83432b3c257101dcd90b1309adfcc69e863ebc5c.tar.gz nextcloud-server-83432b3c257101dcd90b1309adfcc69e863ebc5c.zip |
add behat tests for 0 quota upload failure
Diffstat (limited to 'build/integration/features/bootstrap/Provisioning.php')
-rw-r--r-- | build/integration/features/bootstrap/Provisioning.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/Provisioning.php b/build/integration/features/bootstrap/Provisioning.php index 05a8885d96d..86d476944fd 100644 --- a/build/integration/features/bootstrap/Provisioning.php +++ b/build/integration/features/bootstrap/Provisioning.php @@ -511,6 +511,20 @@ trait Provisioning { } /** + * @Given user :user has a quota of :quota + */ + public function userHasAQuotaOf($user, $quota) + { + $body = new \Behat\Gherkin\Node\TableNode([ + 0 => ['key', 'quota'], + 1 => ['value', $quota], + ]); + + // method used from BasicStructure trait + $this->sendingToWith("PUT", "/cloud/users/" . $user, $body); + } + + /** * @BeforeScenario * @AfterScenario */ |