summaryrefslogtreecommitdiffstats
path: root/build/integration/features
diff options
context:
space:
mode:
authorSergio Bertolin <sbertolin@solidgear.es>2016-12-22 10:17:01 +0000
committerLukas Reschke <lukas@statuscode.ch>2016-12-23 12:25:20 +0100
commit456d4fce1eac5b55886290bd22e5ce8537034011 (patch)
tree892c711358caa636ae34660197c26e20aba0c14b /build/integration/features
parent4480dca3e36b975a3d321a24798c8738aa45cf95 (diff)
downloadnextcloud-server-456d4fce1eac5b55886290bd22e5ce8537034011.tar.gz
nextcloud-server-456d4fce1eac5b55886290bd22e5ce8537034011.zip
Changed data directory for work one
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'build/integration/features')
-rw-r--r--build/integration/features/bootstrap/BasicStructure.php4
-rw-r--r--build/integration/features/bootstrap/WebDav.php6
2 files changed, 5 insertions, 5 deletions
diff --git a/build/integration/features/bootstrap/BasicStructure.php b/build/integration/features/bootstrap/BasicStructure.php
index 46647f97e85..24428b6c9d9 100644
--- a/build/integration/features/bootstrap/BasicStructure.php
+++ b/build/integration/features/bootstrap/BasicStructure.php
@@ -343,8 +343,8 @@ trait BasicStructure {
file_put_contents("../../data/$user/files" . "$filename", "$text");
}
- public function createFileSpecificSize($name, $size){
- $file = fopen("data/" . "$name", 'w');
+ public function createFileSpecificSize($name, $size) {
+ $file = fopen("work/" . "$name", 'w');
fseek($file, $size - 1 ,SEEK_CUR);
fwrite($file,'a'); // write a dummy char at SIZE position
fclose($file);
diff --git a/build/integration/features/bootstrap/WebDav.php b/build/integration/features/bootstrap/WebDav.php
index fb1a078fd94..e0a80c7f525 100644
--- a/build/integration/features/bootstrap/WebDav.php
+++ b/build/integration/features/bootstrap/WebDav.php
@@ -496,9 +496,9 @@ trait WebDav {
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("work/$filename"));
+ $this->userUploadsAFileTo($user, "work/$filename", $destination);
+ $this->removeFile("work/", $filename);
$userHome = $this->getUserHome($user);
PHPUnit_Framework_Assert::assertEquals(1, file_exists($userHome . "/files$destination"));
}