summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-04-26 20:57:56 +0200
committerLukas Reschke <lukas@owncloud.com>2016-04-26 20:57:56 +0200
commitddbebe91f0ea0c6a938991b929ffdb71bbb2cc16 (patch)
tree330cf91f3cd31e9c925e9ab962953ac902b79d1a /tests/lib
parent887045b790ced3473f2c0e955abcdd2bc1944612 (diff)
parent2f01c83a014dc01e87dbb2475c7620daf867d80a (diff)
downloadnextcloud-server-ddbebe91f0ea0c6a938991b929ffdb71bbb2cc16.tar.gz
nextcloud-server-ddbebe91f0ea0c6a938991b929ffdb71bbb2cc16.zip
Merge pull request #24246 from owncloud/local-invalid
error out if a local storage isn't setup correctly
Diffstat (limited to 'tests/lib')
-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 2583863b554..4cc6c6a842c 100644
--- a/tests/lib/files/storage/local.php
+++ b/tests/lib/files/storage/local.php
@@ -70,5 +70,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);
+ }
}