Merge pull request #19303 from owncloud/usecorrectvariable
Use correct variable
This commit is contained in:
commit
330ea18996
|
@ -66,7 +66,7 @@ class PermissionsMask extends Wrapper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isSharable($path) {
|
public function isSharable($path) {
|
||||||
return $this->checkMask(Constants::PERMISSION_SHARE) and parent::isSharable($parm);
|
return $this->checkMask(Constants::PERMISSION_SHARE) and parent::isSharable($path);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getPermissions($path) {
|
public function getPermissions($path) {
|
||||||
|
|
|
@ -573,4 +573,29 @@ abstract class Storage extends \Test\TestCase {
|
||||||
$this->assertSameAsLorem($target);
|
$this->assertSameAsLorem($target);
|
||||||
$this->assertTrue($this->instance->file_exists($source), $source . ' was deleted');
|
$this->assertTrue($this->instance->file_exists($source), $source . ' was deleted');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testIsCreatable() {
|
||||||
|
$this->instance->mkdir('source');
|
||||||
|
$this->assertTrue($this->instance->isCreatable('source'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function testIsReadable() {
|
||||||
|
$this->instance->mkdir('source');
|
||||||
|
$this->assertTrue($this->instance->isReadable('source'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function testIsUpdatable() {
|
||||||
|
$this->instance->mkdir('source');
|
||||||
|
$this->assertTrue($this->instance->isUpdatable('source'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function testIsDeletable() {
|
||||||
|
$this->instance->mkdir('source');
|
||||||
|
$this->assertTrue($this->instance->isDeletable('source'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function testIsShareable() {
|
||||||
|
$this->instance->mkdir('source');
|
||||||
|
$this->assertTrue($this->instance->isSharable('source'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue