summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorroot <martin.mattel@diemattels.at>2015-05-29 21:56:08 +0200
committerRobin McCorkell <rmccorkell@owncloud.com>2015-08-29 16:59:02 +0100
commitacae208f2fc6b80fbf9af615661e3905f9cab0a0 (patch)
tree61ac4b858698626ea4fa9c7e541da9563c3991ad /tests
parent723f8c8f1ba8c9859ec2d46515dc06e7236f89c0 (diff)
downloadnextcloud-server-acae208f2fc6b80fbf9af615661e3905f9cab0a0.tar.gz
nextcloud-server-acae208f2fc6b80fbf9af615661e3905f9cab0a0.zip
moved code to /lib/private/tempmanager.php
fix for unit test some fixes
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/tempmanager.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/lib/tempmanager.php b/tests/lib/tempmanager.php
index 0fa025d44c8..89625ac62f2 100644
--- a/tests/lib/tempmanager.php
+++ b/tests/lib/tempmanager.php
@@ -22,12 +22,11 @@ class NullLogger extends Log {
}
class TempManager extends \Test\TestCase {
- protected $baseDir;
protected function setUp() {
parent::setUp();
- $this->baseDir = get_temp_dir() . $this->getUniqueID('/oc_tmp_test');
+ $this->baseDir = $this->getManager()->t_get_temp_dir() . $this->getUniqueID('/oc_tmp_test');
if (!is_dir($this->baseDir)) {
mkdir($this->baseDir);
}
@@ -46,7 +45,7 @@ class TempManager extends \Test\TestCase {
if (!$logger) {
$logger = new NullLogger();
}
- return new \OC\TempManager($this->baseDir, $logger);
+ return new \OC\TempManager($logger);
}
public function testGetFile() {