From e3ba0c3082841afe84b677fdc1fc07692c5a6cd3 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Fri, 15 Feb 2013 14:46:09 +0100 Subject: [PATCH] adding a new test class for mapped local using a dot in the datadir - reflects the issue described in #1659 --- .../storage/mappedlocalwithdotteddatadir.php | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 tests/lib/files/storage/mappedlocalwithdotteddatadir.php diff --git a/tests/lib/files/storage/mappedlocalwithdotteddatadir.php b/tests/lib/files/storage/mappedlocalwithdotteddatadir.php new file mode 100644 index 0000000000..abd0b3d85c --- /dev/null +++ b/tests/lib/files/storage/mappedlocalwithdotteddatadir.php @@ -0,0 +1,40 @@ +. +* +*/ + +namespace Test\Files\Storage; + +class MappedLocalWithDottedDataDir extends Storage { + /** + * @var string tmpDir + */ + private $tmpDir; + public function setUp() { + $this->tmpDir = \OC_Helper::tmpFolder().'dir.123'.DIRECTORY_SEPARATOR; + $this->instance=new \OC\Files\Storage\MappedLocal(array('datadir'=>$this->tmpDir)); + } + + public function tearDown() { + \OC_Helper::rmdirr($this->tmpDir); + unset($this->instance); + } +} +