]> source.dussan.org Git - nextcloud-server.git/commitdiff
also make sure we have a leading slash for the test root
authorRobin Appelman <icewind@owncloud.com>
Fri, 13 Feb 2015 14:27:05 +0000 (15:27 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 16 Feb 2015 13:01:08 +0000 (14:01 +0100)
apps/files_external/tests/backends/smb.php
apps/files_external/tests/backends/webdav.php

index b66459c42adda8bf7ab67878b00a9fb48dea4d4e..4b1150c6a258d5c39bcea4aac57c6840513a9b64 100644 (file)
@@ -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('/');
index c390612810d0bafbe1bad9125b0588622c0215c1..c454c8e4a9dabd76df31158b5a6d94dadc2e693b 100644 (file)
@@ -10,8 +10,6 @@ namespace Test\Files\Storage;
 
 class DAV extends Storage {
 
-       private $config;
-
        protected function setUp() {
                parent::setUp();