diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-19 10:54:39 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-19 10:54:39 +0100 |
commit | 1088068c60d4d085b5751485cf233459d5b0fe3f (patch) | |
tree | 9e03b90f294248155cd6249df8cf39f1f91e7aba /tests/lib/UtilTest.php | |
parent | 47a300814186061991821f8a707c63a3de636b6d (diff) | |
download | nextcloud-server-1088068c60d4d085b5751485cf233459d5b0fe3f.tar.gz nextcloud-server-1088068c60d4d085b5751485cf233459d5b0fe3f.zip |
Remove \OCP\Files::tmpFolder
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/UtilTest.php')
-rw-r--r-- | tests/lib/UtilTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
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); |