diff options
author | Jan-Christoph Borchardt <jan@unhosted.org> | 2012-03-30 18:10:16 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <jan@unhosted.org> | 2012-03-30 18:18:37 +0200 |
commit | 011132feb33b4f7954eb5df5e2283e9c8f8ae944 (patch) | |
tree | a505c04abd1f84dadeaae7100ce571006d31cd89 /apps/files_external/tests | |
parent | 7552390031ee10ed5006ef927fa1f55cdd148554 (diff) | |
download | nextcloud-server-011132feb33b4f7954eb5df5e2283e9c8f8ae944.tar.gz nextcloud-server-011132feb33b4f7954eb5df5e2283e9c8f8ae944.zip |
renaming remote storage support to External storage support to clear up naming conflict
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r-- | apps/files_external/tests/config.php | 22 | ||||
-rw-r--r-- | apps/files_external/tests/ftp.php | 23 | ||||
-rw-r--r-- | apps/files_external/tests/google.php | 38 | ||||
-rw-r--r-- | apps/files_external/tests/webdav.php | 23 |
4 files changed, 106 insertions, 0 deletions
diff --git a/apps/files_external/tests/config.php b/apps/files_external/tests/config.php new file mode 100644 index 00000000000..9b40d2b98cf --- /dev/null +++ b/apps/files_external/tests/config.php @@ -0,0 +1,22 @@ +<?php +return array( + 'ftp'=>array( + 'host'=>'localhost', + 'user'=>'test', + 'password'=>'test', + 'root'=>'/test', + ), + 'webdav'=>array( + 'host'=>'localhost', + 'user'=>'test', + 'password'=>'test', + 'root'=>'/owncloud/files/webdav.php', + ), + 'google'=>array( + 'consumer_key'=>'anonymous', + 'consumer_secret'=>'anonymous', + 'token'=>'test', + 'token_secret'=>'test', + 'root'=>'/google', + ) +); diff --git a/apps/files_external/tests/ftp.php b/apps/files_external/tests/ftp.php new file mode 100644 index 00000000000..aa565751ba3 --- /dev/null +++ b/apps/files_external/tests/ftp.php @@ -0,0 +1,23 @@ +<?php +/** + * Copyright (c) 2012 Robin Appelman <icewind@owncloud.com> + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + */ + +class Test_Filestorage_FTP extends Test_FileStorage { + private $config; + private $id; + + public function setUp(){ + $id=uniqid(); + $this->config=include('apps/files_external/tests/config.php'); + $this->config['ftp']['root'].='/'.$id;//make sure we have an new empty folder to work in + $this->instance=new OC_Filestorage_FTP($this->config['ftp']); + } + + public function tearDown(){ + OC_Helper::rmdirr($this->instance->constructUrl('')); + } +} diff --git a/apps/files_external/tests/google.php b/apps/files_external/tests/google.php new file mode 100644 index 00000000000..1c028945228 --- /dev/null +++ b/apps/files_external/tests/google.php @@ -0,0 +1,38 @@ +<?php + +/** +* ownCloud +* +* @author Michael Gapczynski +* @copyright 2012 Michael Gapczynski mtgap@owncloud.com +* +* This library is free software; you can redistribute it and/or +* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE +* License as published by the Free Software Foundation; either +* version 3 of the License, or any later version. +* +* This library is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU AFFERO GENERAL PUBLIC LICENSE for more details. +* +* You should have received a copy of the GNU Affero General Public +* License along with this library. If not, see <http://www.gnu.org/licenses/>. +*/ + +class Test_Filestorage_Google extends Test_FileStorage { + + private $config; + private $id; + + public function setUp(){ + $id=uniqid(); + $this->config=include('apps/files_external/tests/config.php'); + $this->config['google']['root'].='/'.$id;//make sure we have an new empty folder to work in + $this->instance=new OC_Filestorage_Google($this->config['google']); + } + + public function tearDown(){ + $this->instance->rmdir('/'); + } +} diff --git a/apps/files_external/tests/webdav.php b/apps/files_external/tests/webdav.php new file mode 100644 index 00000000000..51799290540 --- /dev/null +++ b/apps/files_external/tests/webdav.php @@ -0,0 +1,23 @@ +<?php +/** + * Copyright (c) 2012 Robin Appelman <icewind@owncloud.com> + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + */ + +class Test_Filestorage_DAV extends Test_FileStorage { + private $config; + private $id; + + public function setUp(){ + $id=uniqid(); + $this->config=include('apps/files_external/tests/config.php'); + $this->config['webdav']['root'].='/'.$id;//make sure we have an new empty folder to work in + $this->instance=new OC_Filestorage_DAV($this->config['webdav']); + } + + public function tearDown(){ + $this->instance->rmdir('/'); + } +} |