Using propfind instead of accessing the file system

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Sergio Bertolin 2016-12-22 11:35:03 +00:00 committed by Lukas Reschke
parent 456d4fce1e
commit d1b8e58c86
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
1 changed files with 2 additions and 2 deletions

View File

@ -499,8 +499,8 @@ trait WebDav {
PHPUnit_Framework_Assert::assertEquals(1, file_exists("work/$filename")); PHPUnit_Framework_Assert::assertEquals(1, file_exists("work/$filename"));
$this->userUploadsAFileTo($user, "work/$filename", $destination); $this->userUploadsAFileTo($user, "work/$filename", $destination);
$this->removeFile("work/", $filename); $this->removeFile("work/", $filename);
$userHome = $this->getUserHome($user); $expectedElements = new \Behat\Gherkin\Node\TableNode([["$destination"]]);
PHPUnit_Framework_Assert::assertEquals(1, file_exists($userHome . "/files$destination")); $this->checkElementList($user, $expectedElements);
} }
/** /**