diff --git a/build/integration/features/bootstrap/WebDav.php b/build/integration/features/bootstrap/WebDav.php index e0a80c7f52..680d8f96e7 100644 --- a/build/integration/features/bootstrap/WebDav.php +++ b/build/integration/features/bootstrap/WebDav.php @@ -499,8 +499,8 @@ trait WebDav { 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")); + $expectedElements = new \Behat\Gherkin\Node\TableNode([["$destination"]]); + $this->checkElementList($user, $expectedElements); } /**