Changed data directory for work one
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
4480dca3e3
commit
456d4fce1e
|
@ -344,7 +344,7 @@ trait BasicStructure {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function createFileSpecificSize($name, $size) {
|
public function createFileSpecificSize($name, $size) {
|
||||||
$file = fopen("data/" . "$name", 'w');
|
$file = fopen("work/" . "$name", 'w');
|
||||||
fseek($file, $size - 1 ,SEEK_CUR);
|
fseek($file, $size - 1 ,SEEK_CUR);
|
||||||
fwrite($file,'a'); // write a dummy char at SIZE position
|
fwrite($file,'a'); // write a dummy char at SIZE position
|
||||||
fclose($file);
|
fclose($file);
|
||||||
|
|
|
@ -496,9 +496,9 @@ trait WebDav {
|
||||||
public function userAddsAFileTo($user, $bytes, $destination){
|
public function userAddsAFileTo($user, $bytes, $destination){
|
||||||
$filename = "filespecificSize.txt";
|
$filename = "filespecificSize.txt";
|
||||||
$this->createFileSpecificSize($filename, $bytes);
|
$this->createFileSpecificSize($filename, $bytes);
|
||||||
PHPUnit_Framework_Assert::assertEquals(1, file_exists("data/$filename"));
|
PHPUnit_Framework_Assert::assertEquals(1, file_exists("work/$filename"));
|
||||||
$this->userUploadsAFileTo($user, "data/$filename", $destination);
|
$this->userUploadsAFileTo($user, "work/$filename", $destination);
|
||||||
$this->removeFile("data/", $filename);
|
$this->removeFile("work/", $filename);
|
||||||
$userHome = $this->getUserHome($user);
|
$userHome = $this->getUserHome($user);
|
||||||
PHPUnit_Framework_Assert::assertEquals(1, file_exists($userHome . "/files$destination"));
|
PHPUnit_Framework_Assert::assertEquals(1, file_exists($userHome . "/files$destination"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue