diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-04-20 22:41:39 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-04-20 22:41:39 +0200 |
commit | 711aa229b882d3fc5e2fa8c22e6db2ec05642984 (patch) | |
tree | 5098a6dacf65a3d557977ff39b52ac527a0eb777 /apps/files_external/tests/swift.php | |
parent | 12ef2f5054ebae12853f51d067993b825e4b4286 (diff) | |
parent | 0f5864d864f63a7142064d142661c46644b2d0db (diff) | |
download | nextcloud-server-711aa229b882d3fc5e2fa8c22e6db2ec05642984.tar.gz nextcloud-server-711aa229b882d3fc5e2fa8c22e6db2ec05642984.zip |
Merge branch 'master' into movable_apps
Diffstat (limited to 'apps/files_external/tests/swift.php')
-rw-r--r-- | apps/files_external/tests/swift.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/apps/files_external/tests/swift.php b/apps/files_external/tests/swift.php new file mode 100644 index 00000000000..f0bde6ed605 --- /dev/null +++ b/apps/files_external/tests/swift.php @@ -0,0 +1,32 @@ +<?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. + */ + +$config=include('apps/files_external/tests/config.php'); +if(!is_array($config) or !isset($config['swift']) or !$config['swift']['run']){ + abstract class Test_Filestorage_SWIFT extends Test_FileStorage{} + return; +}else{ + class Test_Filestorage_SWIFT extends Test_FileStorage { + private $config; + private $id; + + public function setUp(){ + $id=uniqid(); + $this->config=include('apps/files_external/tests/config.php'); + $this->config['swift']['root'].='/'.$id;//make sure we have an new empty folder to work in + $this->instance=new OC_Filestorage_SWIFT($this->config['swift']); + } + + + public function tearDown(){ + $this->instance->rmdir(''); + } + + } +} + |