From 357944693017572319334aa8943e888cde0e99c0 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 12 Feb 2012 18:06:32 +0100 Subject: use SimpleTest for unit testing includes some tests for storage providers, more to come --- tests/lib/filestorage/local.php | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 tests/lib/filestorage/local.php (limited to 'tests/lib/filestorage/local.php') diff --git a/tests/lib/filestorage/local.php b/tests/lib/filestorage/local.php new file mode 100644 index 00000000000..0a2d46c5ebc --- /dev/null +++ b/tests/lib/filestorage/local.php @@ -0,0 +1,41 @@ +. +* +*/ + +class Test_Filestorage_Local extends Test_FileStorage { + /** + * @var string tmpDir + */ + private $tmpDir; + public function setUp(){ + $this->tmpDir=get_temp_dir().'/filestoragelocal'; + if(!file_exists($this->tmpDir)){ + mkdir($this->tmpDir); + } + $this->instance=new OC_Filestorage_Local(array('datadir'=>$this->tmpDir)); + } + + public function tearDown(){ + OC_Helper::rmdirr($this->tmpDir); + } +} + +?> \ No newline at end of file -- cgit v1.2.3