diff options
Diffstat (limited to 'tests/lib/share/share.php')
-rw-r--r-- | tests/lib/share/share.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/share/share.php b/tests/lib/share/share.php index b2fecdc8bf7..df91a27c6e1 100644 --- a/tests/lib/share/share.php +++ b/tests/lib/share/share.php @@ -61,8 +61,10 @@ class Test_Share extends UnitTestCase { $query->execute(array('test')); } + /** + * @expectedException Exception + */ public function testShareInvalidShareType() { - $this->expectException(new Exception('Share type foobar is not valid for test.txt')); OCP\Share::shareItem('test', 'test.txt', 'foobar', $this->user2, OCP\Share::PERMISSION_READ); } |