From e2437c51b560191ed76c8f13d367cb44c2e43c91 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 26 Apr 2016 16:08:52 +0200 Subject: add tests --- tests/lib/files/storage/local.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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); + } } -- cgit v1.2.3