diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-04-26 16:08:52 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-04-26 16:10:09 +0200 |
commit | e2437c51b560191ed76c8f13d367cb44c2e43c91 (patch) | |
tree | 153d2e9518f3c558c90d92606dc65d2f3dfe0cfc /tests | |
parent | dca1945e877440e169e84255e5da23e25a6a21c8 (diff) | |
download | nextcloud-server-e2437c51b560191ed76c8f13d367cb44c2e43c91.tar.gz nextcloud-server-e2437c51b560191ed76c8f13d367cb44c2e43c91.zip |
add tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/files/storage/local.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/lib/files/storage/local.php b/tests/lib/files/storage/local.php index d2b27117c3b..9f4f3927386 100644 --- a/tests/lib/files/storage/local.php +++ b/tests/lib/files/storage/local.php @@ -63,5 +63,19 @@ class Local extends Storage { $etag2 = $this->instance->getETag('test.txt'); $this->assertNotEquals($etag1, $etag2); } + + /** + * @expectedException \InvalidArgumentException + */ + public function testInvalidArgumentsEmptyArray() { + new \OC\Files\Storage\Local([]); + } + + /** + * @expectedException \InvalidArgumentException + */ + public function testInvalidArgumentsNoArray() { + new \OC\Files\Storage\Local(null); + } } |