diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2015-09-23 14:26:55 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-09-23 23:41:39 +0200 |
commit | 17ef187681fa781afb0cd6f318edc58d70156c74 (patch) | |
tree | fb4f09caf9c0a62a50eb312220201ffb94b4f29e | |
parent | 8b90a55831b2da00ee7d71878eb69d975f7a2424 (diff) | |
download | nextcloud-server-17ef187681fa781afb0cd6f318edc58d70156c74.tar.gz nextcloud-server-17ef187681fa781afb0cd6f318edc58d70156c74.zip |
add is* storage tests
-rw-r--r-- | tests/lib/files/storage/storage.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/lib/files/storage/storage.php b/tests/lib/files/storage/storage.php index fcd7f73dcde..d381b4cdf40 100644 --- a/tests/lib/files/storage/storage.php +++ b/tests/lib/files/storage/storage.php @@ -573,4 +573,29 @@ abstract class Storage extends \Test\TestCase { $this->assertSameAsLorem($target); $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')); + } } |