diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-19 10:52:35 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-19 10:52:35 +0100 |
commit | 47a300814186061991821f8a707c63a3de636b6d (patch) | |
tree | 8db21adb6842f60faab6505422566896228aeff9 /tests/lib/Archive | |
parent | 63bc633d89e53c2ff04d3fd521a2a1b18f6737f7 (diff) | |
download | nextcloud-server-47a300814186061991821f8a707c63a3de636b6d.tar.gz nextcloud-server-47a300814186061991821f8a707c63a3de636b6d.zip |
Remove \OCP\Files::tmpFile
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/Archive')
-rw-r--r-- | tests/lib/Archive/TARTest.php | 2 | ||||
-rw-r--r-- | tests/lib/Archive/TestBase.php | 2 | ||||
-rw-r--r-- | tests/lib/Archive/ZIPTest.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Archive/TARTest.php b/tests/lib/Archive/TARTest.php index 7575f6c5176..77df1c32ca4 100644 --- a/tests/lib/Archive/TARTest.php +++ b/tests/lib/Archive/TARTest.php @@ -18,6 +18,6 @@ class TARTest extends TestBase { } protected function getNew() { - return new TAR(\OCP\Files::tmpFile('.tar.gz')); + return new TAR(\OC::$server->getTempManager()->getTemporaryFile('.tar.gz')); } } 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)); } diff --git a/tests/lib/Archive/ZIPTest.php b/tests/lib/Archive/ZIPTest.php index ff0155f3d01..573339e5a19 100644 --- a/tests/lib/Archive/ZIPTest.php +++ b/tests/lib/Archive/ZIPTest.php @@ -18,6 +18,6 @@ class ZIPTest extends TestBase { } protected function getNew() { - return new ZIP(\OCP\Files::tmpFile('.zip')); + return new ZIP(\OC::$server->getTempManager()->getTemporaryFile('.zip')); } } |