mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
check if removed folders are really gone
This commit is contained in:
parent
bdb3962b8d
commit
aceda02887
1 changed files with 9 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue