mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
Add new specific tests for SMB
This commit is contained in:
parent
71012b3432
commit
f2bd5f7496
1 changed files with 19 additions and 0 deletions
|
|
@ -132,4 +132,23 @@ class SmbTest extends \Test\Files\Storage\Storage {
|
|||
|
||||
$this->assertEquals(new Change(IChange::ADDED, 'newfile.txt'), $result);
|
||||
}
|
||||
|
||||
public function testRenameRoot() {
|
||||
// root can't be renamed
|
||||
$this->assertFalse($this->instance->rename('', 'foo1'));
|
||||
|
||||
$this->instance->mkdir('foo2');
|
||||
$this->assertFalse($this->instance->rename('foo2', ''));
|
||||
$this->instance->rmdir('foo2');
|
||||
}
|
||||
|
||||
public function testUnlinkRoot() {
|
||||
// root can't be deleted
|
||||
$this->assertFalse($this->instance->unlink(''));
|
||||
}
|
||||
|
||||
public function testRmdirRoot() {
|
||||
// root can't be deleted
|
||||
$this->assertFalse($this->instance->rmdir(''));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue