Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-05-27 20:39:19 +0300
committerRobin Appelman <robin@icewind.nl>2021-10-07 18:19:18 +0300
commit10b613810f533fbba18f9f4301349f86a528535b (patch)
treed60a0a2db9c157bc80a7e83730c237bfd5e63840 /apps/files_external/tests
parent682944925839e5300c02a231b261bb6fc6dfdf20 (diff)
run ftp external storage tests against multiple ftp servers
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r--apps/files_external/tests/Storage/FtpTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_external/tests/Storage/FtpTest.php b/apps/files_external/tests/Storage/FtpTest.php
index 507490204e3..501c0f72b8d 100644
--- a/apps/files_external/tests/Storage/FtpTest.php
+++ b/apps/files_external/tests/Storage/FtpTest.php
@@ -48,6 +48,9 @@ class FtpTest extends \Test\Files\Storage\Storage {
if (! is_array($this->config) or ! $this->config['run']) {
$this->markTestSkipped('FTP backend not configured');
}
+ $rootInstace = new FTP($this->config);
+ $rootInstace->mkdir($id);
+
$this->config['root'] .= '/' . $id; //make sure we have an new empty folder to work in
$this->instance = new FTP($this->config);
$this->instance->mkdir('/');
@@ -55,7 +58,7 @@ class FtpTest extends \Test\Files\Storage\Storage {
protected function tearDown(): void {
if ($this->instance) {
- \OCP\Files::rmdirr($this->instance->constructUrl(''));
+ $this->instance->rmdir('');
}
parent::tearDown();