diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-04-26 20:57:56 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-04-26 20:57:56 +0200 |
commit | ddbebe91f0ea0c6a938991b929ffdb71bbb2cc16 (patch) | |
tree | 330cf91f3cd31e9c925e9ab962953ac902b79d1a /tests/lib | |
parent | 887045b790ced3473f2c0e955abcdd2bc1944612 (diff) | |
parent | 2f01c83a014dc01e87dbb2475c7620daf867d80a (diff) | |
download | nextcloud-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.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 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); + } } |