diff options
author | Robin Appelman <robin@icewind.nl> | 2021-05-27 20:39:19 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-10-07 18:19:18 +0300 |
commit | 10b613810f533fbba18f9f4301349f86a528535b (patch) | |
tree | d60a0a2db9c157bc80a7e83730c237bfd5e63840 /apps/files_external/tests/Storage | |
parent | 682944925839e5300c02a231b261bb6fc6dfdf20 (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/Storage')
-rw-r--r-- | apps/files_external/tests/Storage/FtpTest.php | 5 |
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(); |