summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-04-26 16:08:52 +0200
committerRobin Appelman <icewind@owncloud.com>2016-04-26 16:10:09 +0200
commite2437c51b560191ed76c8f13d367cb44c2e43c91 (patch)
tree153d2e9518f3c558c90d92606dc65d2f3dfe0cfc
parentdca1945e877440e169e84255e5da23e25a6a21c8 (diff)
downloadnextcloud-server-e2437c51b560191ed76c8f13d367cb44c2e43c91.tar.gz
nextcloud-server-e2437c51b560191ed76c8f13d367cb44c2e43c91.zip
add tests
-rw-r--r--tests/lib/files/storage/local.php14
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);
+ }
}