diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-02-13 15:27:05 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-16 14:01:08 +0100 |
commit | 6477e39be931e33864c64bfcea72391e51f44213 (patch) | |
tree | 41b48d748b2ac9f2348a5642326bcb9d6d7731f9 /apps/files_external | |
parent | 6467369cad5eebe9ade84cf9b61f12c4cbaff759 (diff) | |
download | nextcloud-server-6477e39be931e33864c64bfcea72391e51f44213.tar.gz nextcloud-server-6477e39be931e33864c64bfcea72391e51f44213.zip |
also make sure we have a leading slash for the test root
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/tests/backends/smb.php | 5 | ||||
-rw-r--r-- | apps/files_external/tests/backends/webdav.php | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/apps/files_external/tests/backends/smb.php b/apps/files_external/tests/backends/smb.php index b66459c42ad..4b1150c6a25 100644 --- a/apps/files_external/tests/backends/smb.php +++ b/apps/files_external/tests/backends/smb.php @@ -10,8 +10,6 @@ namespace Test\Files\Storage; class SMB extends Storage { - private $config; - protected function setUp() { parent::setUp(); @@ -20,6 +18,9 @@ class SMB extends Storage { if (!is_array($config) or !$config['run']) { $this->markTestSkipped('Samba backend not configured'); } + if (substr($config['root'], -1, 1) != '/') { + $config['root'] .= '/'; + } $config['root'] .= $id; //make sure we have an new empty folder to work in $this->instance = new \OC\Files\Storage\SMB($config); $this->instance->mkdir('/'); diff --git a/apps/files_external/tests/backends/webdav.php b/apps/files_external/tests/backends/webdav.php index c390612810d..c454c8e4a9d 100644 --- a/apps/files_external/tests/backends/webdav.php +++ b/apps/files_external/tests/backends/webdav.php @@ -10,8 +10,6 @@ namespace Test\Files\Storage; class DAV extends Storage { - private $config; - protected function setUp() { parent::setUp(); |