aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests/ftp.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/tests/ftp.php')
-rw-r--r--apps/files_external/tests/ftp.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/files_external/tests/ftp.php b/apps/files_external/tests/ftp.php
index 3037793120a..842b7f43fa8 100644
--- a/apps/files_external/tests/ftp.php
+++ b/apps/files_external/tests/ftp.php
@@ -11,8 +11,10 @@ namespace Test\Files\Storage;
class FTP extends Storage {
private $config;
- public function setUp() {
- $id = uniqid();
+ protected function setUp() {
+ parent::setUp();
+
+ $id = $this->getUniqueID();
$this->config = include('files_external/tests/config.php');
if ( ! is_array($this->config) or ! isset($this->config['ftp']) or ! $this->config['ftp']['run']) {
$this->markTestSkipped('FTP backend not configured');
@@ -22,10 +24,12 @@ class FTP extends Storage {
$this->instance->mkdir('/');
}
- public function tearDown() {
+ protected function tearDown() {
if ($this->instance) {
\OCP\Files::rmdirr($this->instance->constructUrl(''));
}
+
+ parent::tearDown();
}
public function testConstructUrl(){