aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-05-27 19:39:19 +0200
committerRobin Appelman <robin@icewind.nl>2021-10-07 17:19:18 +0200
commit10b613810f533fbba18f9f4301349f86a528535b (patch)
treed60a0a2db9c157bc80a7e83730c237bfd5e63840 /apps/files_external/tests
parent682944925839e5300c02a231b261bb6fc6dfdf20 (diff)
downloadnextcloud-server-10b613810f533fbba18f9f4301349f86a528535b.tar.gz
nextcloud-server-10b613810f533fbba18f9f4301349f86a528535b.zip
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();