From acae208f2fc6b80fbf9af615661e3905f9cab0a0 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 29 May 2015 21:56:08 +0200 Subject: moved code to /lib/private/tempmanager.php fix for unit test some fixes --- tests/lib/tempmanager.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests') 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() { -- cgit v1.2.3