diff options
Diffstat (limited to 'build/integration/features/bootstrap/WebDav.php')
-rw-r--r-- | build/integration/features/bootstrap/WebDav.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/WebDav.php b/build/integration/features/bootstrap/WebDav.php index 02f3e82a4c3..be181f2bcb7 100644 --- a/build/integration/features/bootstrap/WebDav.php +++ b/build/integration/features/bootstrap/WebDav.php @@ -425,6 +425,21 @@ trait WebDav { } /** + * @When User :user adds a file of :bytes bytes to :destination + * @param string $user + * @param string $bytes + * @param string $destination + */ + public function userAddsAFileTo($user, $bytes, $destination){ + $filename = "filespecificSize.txt"; + $this->createFileSpecificSize($filename, $bytes); + PHPUnit_Framework_Assert::assertEquals(1, file_exists("data/$filename")); + $this->userUploadsAFileTo($user, "data/$filename", $destination); + $this->removeFile("data/", $filename); + PHPUnit_Framework_Assert::assertEquals(1, file_exists("../../data/$user/files$destination")); + } + + /** * @When User :user uploads file with content :content to :destination */ public function userUploadsAFileWithContentTo($user, $content, $destination) |