diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-06-08 01:29:46 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-06-08 01:29:55 +0200 |
commit | 4768510923f6bfa3f3473874395a7a61872f1df0 (patch) | |
tree | 32655c82dda4dcd779f33b9b41073427c525fc2a /apps/files_external/tests | |
parent | 4afcae8d56e880288124605a7b2a9890081601d5 (diff) | |
download | nextcloud-server-4768510923f6bfa3f3473874395a7a61872f1df0.tar.gz nextcloud-server-4768510923f6bfa3f3473874395a7a61872f1df0.zip |
split share and root config for smb backend, also sanitize config a bit more
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r-- | apps/files_external/tests/config.php | 3 | ||||
-rw-r--r-- | apps/files_external/tests/smb.php | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_external/tests/config.php b/apps/files_external/tests/config.php index 970008d642c..e58a87fabdf 100644 --- a/apps/files_external/tests/config.php +++ b/apps/files_external/tests/config.php @@ -34,7 +34,8 @@ return array( 'user'=>'test', 'password'=>'test', 'host'=>'localhost', - 'root'=>'/test', + 'share'=>'/test', + 'root'=>'/test/', ), 'amazons3'=>array( 'run'=>false, diff --git a/apps/files_external/tests/smb.php b/apps/files_external/tests/smb.php index 52e1700b019..e1495b7480d 100644 --- a/apps/files_external/tests/smb.php +++ b/apps/files_external/tests/smb.php @@ -19,7 +19,7 @@ if(!is_array($config) or !isset($config['smb']) or !$config['smb']['run']){ public function setUp(){ $id=uniqid(); $this->config=include('apps/files_external/tests/config.php'); - $this->config['smb']['root'].='/'.$id;//make sure we have an new empty folder to work in + $this->config['smb']['root'].=$id;//make sure we have an new empty folder to work in $this->instance=new OC_Filestorage_SMB($this->config['smb']); } |