diff options
Diffstat (limited to 'tests/lib/Archive/TestBase.php')
-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 5bf4d9d43ea..80750a1694c 100644 --- a/tests/lib/Archive/TestBase.php +++ b/tests/lib/Archive/TestBase.php @@ -58,7 +58,7 @@ abstract class TestBase extends \Test\TestCase { $textFile=$dir.'/lorem.txt'; $this->assertEquals(file_get_contents($textFile), $this->instance->getFile('lorem.txt')); - $tmpFile=\OCP\Files::tmpFile('.txt'); + $tmpFile = \OC::$server->getTempManager()->getTemporaryFile('.txt'); $this->instance->extractFile('lorem.txt', $tmpFile); $this->assertEquals(file_get_contents($textFile), file_get_contents($tmpFile)); } |