diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-04-18 20:46:00 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-04-18 20:54:28 +0200 |
commit | aceda02887eb4a52188f0308c6404cc9f201ce79 (patch) | |
tree | 6ec7900a443d335096e35ab71ae03d26d5a3d502 /tests | |
parent | bdb3962b8dc42493a9db87882d1671d6d3a53eea (diff) | |
download | nextcloud-server-aceda02887eb4a52188f0308c6404cc9f201ce79.tar.gz nextcloud-server-aceda02887eb4a52188f0308c6404cc9f201ce79.zip |
check if removed folders are really gone
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/filestorage.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/lib/filestorage.php b/tests/lib/filestorage.php index 4858234a2d8..b58e28cefde 100644 --- a/tests/lib/filestorage.php +++ b/tests/lib/filestorage.php @@ -68,6 +68,15 @@ abstract class Test_FileStorage extends UnitTestCase { $this->assertFalse($this->instance->file_exists('/folder')); $this->assertFalse($this->instance->rmdir('/folder'));//cant remove non existing folders + + $dh=$this->instance->opendir('/'); + $content=array(); + while($file=readdir($dh)){ + if($file!='.' and $file!='..'){ + $content[]=$file; + } + } + $this->assertEqual(array(),$content); } /** |