add tests

This commit is contained in:
Robin Appelman 2016-04-26 16:08:52 +02:00
parent 21643150aa
commit 2f01c83a01
1 changed files with 14 additions and 0 deletions

View File

@ -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);
}
}