From: Robin Appelman Date: Wed, 18 Apr 2012 18:46:00 +0000 (+0200) Subject: check if removed folders are really gone X-Git-Tag: v4.0.0beta~256 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=aceda02887eb4a52188f0308c6404cc9f201ce79;p=nextcloud-server.git check if removed folders are really gone --- 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); } /**