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:08:52 +0200 |
commit | 2f01c83a014dc01e87dbb2475c7620daf867d80a (patch) | |
tree | e771e5950bc62b5e707eda521bd28d09d7d1cb26 /tests | |
parent | 21643150aa2871d36e70de6188d8fa45957f4743 (diff) | |
download | nextcloud-server-2f01c83a014dc01e87dbb2475c7620daf867d80a.tar.gz nextcloud-server-2f01c83a014dc01e87dbb2475c7620daf867d80a.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 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); + } } |