From d1b8e58c86a7d175c4383634ee342c183ffd039c Mon Sep 17 00:00:00 2001
From: Sergio Bertolin <sbertolin@solidgear.es>
Date: Thu, 22 Dec 2016 11:35:03 +0000
Subject: [PATCH] Using propfind instead of accessing the file system

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
---
 build/integration/features/bootstrap/WebDav.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build/integration/features/bootstrap/WebDav.php b/build/integration/features/bootstrap/WebDav.php
index e0a80c7f525..680d8f96e7c 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);
 	}
 
 	/**
-- 
GitLab