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/Archive | |
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/Archive')
-rw-r--r-- | tests/lib/Archive/TestBase.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/Archive/TestBase.php b/tests/lib/Archive/TestBase.php index 80750a1694c..bdfe65d4304 100644 --- a/tests/lib/Archive/TestBase.php +++ b/tests/lib/Archive/TestBase.php @@ -112,7 +112,7 @@ abstract class TestBase extends \Test\TestCase { public function testExtract() { $dir=\OC::$SERVERROOT.'/tests/data'; $this->instance=$this->getExisting(); - $tmpDir=\OCP\Files::tmpFolder(); + $tmpDir = \OC::$server->getTempManager()->getTemporaryFolder(); $this->instance->extract($tmpDir); $this->assertEquals(true, file_exists($tmpDir.'lorem.txt')); $this->assertEquals(true, file_exists($tmpDir.'dir/lorem.txt')); |