add tests
This commit is contained in:
parent
21643150aa
commit
2f01c83a01
|
@ -70,5 +70,19 @@ class Local extends Storage {
|
||||||
$etag2 = $this->instance->getETag('test.txt');
|
$etag2 = $this->instance->getETag('test.txt');
|
||||||
$this->assertNotEquals($etag1, $etag2);
|
$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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue