From c5d3f09262dac29703b33112571a1e067dc27a4e Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Tue, 23 Apr 2013 23:19:11 +0200 Subject: test case for iRODS storage added --- apps/files_external/tests/irods.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 apps/files_external/tests/irods.php diff --git a/apps/files_external/tests/irods.php b/apps/files_external/tests/irods.php new file mode 100644 index 00000000000..614e5bc7c3a --- /dev/null +++ b/apps/files_external/tests/irods.php @@ -0,0 +1,30 @@ + + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + */ + +namespace Test\Files\Storage; + +class iRODS extends Storage { + + private $config; + + public function setUp() { + $id = uniqid(); + $this->config = include('files_external/tests/config.php'); + if ( ! is_array($this->config) or ! isset($this->config['irods']) or ! $this->config['irods']['run']) { + $this->markTestSkipped('irods backend not configured'); + } + $this->config['irods']['root'] .= $id; //make sure we have an new empty folder to work in + $this->instance = new \OC\Files\Storage\iRODS($this->config['irods']); + } + + public function tearDown() { + if ($this->instance) { + \OCP\Files::rmdirr($this->instance->constructUrl('')); + } + } +} -- cgit v1.2.3