]> source.dussan.org Git - nextcloud-server.git/commitdiff
check if removed folders are really gone
authorRobin Appelman <icewind@owncloud.com>
Wed, 18 Apr 2012 18:46:00 +0000 (20:46 +0200)
committerRobin Appelman <icewind@owncloud.com>
Wed, 18 Apr 2012 18:54:28 +0000 (20:54 +0200)
tests/lib/filestorage.php

index 4858234a2d863d247f6f3b0b65661abd64f464b2..b58e28cefde7654dedf83fac9d48419c414708b3 100644 (file)
@@ -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);
        }
 
        /**