summaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap/WebDav.php
diff options
context:
space:
mode:
Diffstat (limited to 'build/integration/features/bootstrap/WebDav.php')
-rw-r--r--build/integration/features/bootstrap/WebDav.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/WebDav.php b/build/integration/features/bootstrap/WebDav.php
index 02f3e82a4c3..f4904e5ae7a 100644
--- a/build/integration/features/bootstrap/WebDav.php
+++ b/build/integration/features/bootstrap/WebDav.php
@@ -425,6 +425,20 @@ 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($user, $filename, $bytes);
+ PHPUnit_Framework_Assert::assertEquals(1, file_exists("data/$filename"));
+ $this->userUploadsAFileTo($user, "data/$filename", $destination);
+ $this->removeFile("data/", $filename);
+ }
+
+ /**
* @When User :user uploads file with content :content to :destination
*/
public function userUploadsAFileWithContentTo($user, $content, $destination)