summaryrefslogtreecommitdiffstats
path: root/tests/lib/files
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-04-26 16:08:52 +0200
committerVincent Petry <pvince81@owncloud.com>2016-04-26 20:17:17 +0200
commit884c8215f800e4753e71a03df26f26459f480964 (patch)
tree8de1287a709cd2b8375c8f6bd8c79b62f4820b22 /tests/lib/files
parent06bfd58b2c05095945d3307bdf87211d1d48dbd3 (diff)
downloadnextcloud-server-884c8215f800e4753e71a03df26f26459f480964.tar.gz
nextcloud-server-884c8215f800e4753e71a03df26f26459f480964.zip
add tests
Diffstat (limited to 'tests/lib/files')
-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);
+ }
}