Skip to content
Snippets Groups Projects
Commit aceda028 authored by Robin Appelman's avatar Robin Appelman
Browse files

check if removed folders are really gone

parent bdb3962b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment