From 1088068c60d4d085b5751485cf233459d5b0fe3f Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 19 Mar 2018 10:54:39 +0100 Subject: Remove \OCP\Files::tmpFolder Signed-off-by: Roeland Jago Douma --- tests/lib/UtilTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/lib/UtilTest.php') diff --git a/tests/lib/UtilTest.php b/tests/lib/UtilTest.php index 18d065c68d6..d731085af46 100644 --- a/tests/lib/UtilTest.php +++ b/tests/lib/UtilTest.php @@ -332,13 +332,13 @@ class UtilTest extends \Test\TestCase { } public function testCheckDataDirectoryValidity() { - $dataDir = \OCP\Files::tmpFolder(); + $dataDir = \OC::$server->getTempManager()->getTemporaryFolder(); touch($dataDir . '/.ocdata'); $errors = \OC_Util::checkDataDirectoryValidity($dataDir); $this->assertEmpty($errors); \OCP\Files::rmdirr($dataDir); - $dataDir = \OCP\Files::tmpFolder(); + $dataDir = \OC::$server->getTempManager()->getTemporaryFolder(); // no touch $errors = \OC_Util::checkDataDirectoryValidity($dataDir); $this->assertNotEmpty($errors); -- cgit v1.2.3