diff options
author | Sergio Bertolin <sbertolin@solidgear.es> | 2016-09-26 10:44:14 +0000 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-02 21:16:49 +0200 |
commit | 7413e2a88ca7479f06acc3ab25f9958150dcae97 (patch) | |
tree | a5a04f05bc4bf0ae2fc5dd24223f18d7f42281c5 /build/integration/features/bootstrap/BasicStructure.php | |
parent | 6297d201df57f91085e17cf974a4e1ad08475a0c (diff) | |
download | nextcloud-server-7413e2a88ca7479f06acc3ab25f9958150dcae97.tar.gz nextcloud-server-7413e2a88ca7479f06acc3ab25f9958150dcae97.zip |
Added test checking quota after usage
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'build/integration/features/bootstrap/BasicStructure.php')
-rw-r--r-- | build/integration/features/bootstrap/BasicStructure.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/BasicStructure.php b/build/integration/features/bootstrap/BasicStructure.php index df46d0b1983..c2a826521ad 100644 --- a/build/integration/features/bootstrap/BasicStructure.php +++ b/build/integration/features/bootstrap/BasicStructure.php @@ -313,6 +313,13 @@ trait BasicStructure { file_put_contents("../../data/$user/files" . "$filename", "$text"); } + public function createFileSpecificSize($user, $name, $size){ + $file = fopen("data/" . "$name", 'w'); + fseek($file, $size - 1 ,SEEK_CUR); + fwrite($file,'a'); // write a dummy char at SIZE position + fclose($file); + } + /** * @BeforeSuite */ |