diff options
Diffstat (limited to 'tests/lib/Files/Storage/LocalTest.php')
-rw-r--r-- | tests/lib/Files/Storage/LocalTest.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/lib/Files/Storage/LocalTest.php b/tests/lib/Files/Storage/LocalTest.php index 3b83a349cfa..23738a25c2a 100644 --- a/tests/lib/Files/Storage/LocalTest.php +++ b/tests/lib/Files/Storage/LocalTest.php @@ -63,24 +63,24 @@ class LocalTest extends Storage { $this->assertNotEquals($etag1, $etag2); } - /** - * @expectedException \InvalidArgumentException - */ + public function testInvalidArgumentsEmptyArray() { + $this->expectException(\InvalidArgumentException::class); + new \OC\Files\Storage\Local([]); } - /** - * @expectedException \InvalidArgumentException - */ + public function testInvalidArgumentsNoArray() { + $this->expectException(\InvalidArgumentException::class); + new \OC\Files\Storage\Local(null); } - /** - * @expectedException \OCP\Files\ForbiddenException - */ + public function testDisallowSymlinksOutsideDatadir() { + $this->expectException(\OCP\Files\ForbiddenException::class); + $subDir1 = $this->tmpDir . 'sub1'; $subDir2 = $this->tmpDir . 'sub2'; $sym = $this->tmpDir . 'sub1/sym'; |