aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/files/storage/home.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/files/storage/home.php')
-rw-r--r--tests/lib/files/storage/home.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/lib/files/storage/home.php b/tests/lib/files/storage/home.php
index d085efe9c1c..b0670a22892 100644
--- a/tests/lib/files/storage/home.php
+++ b/tests/lib/files/storage/home.php
@@ -60,15 +60,18 @@ class Home extends Storage {
*/
private $user;
- public function setUp() {
+ protected function setUp() {
+ parent::setUp();
+
$this->tmpDir = \OC_Helper::tmpFolder();
- $this->userId = uniqid('user_');
+ $this->userId = $this->getUniqueID('user_');
$this->user = new DummyUser($this->userId, $this->tmpDir);
$this->instance = new \OC\Files\Storage\Home(array('user' => $this->user));
}
- public function tearDown() {
+ protected function tearDown() {
\OC_Helper::rmdirr($this->tmpDir);
+ parent::tearDown();
}
/**