diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-10 11:05:19 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-10 11:05:19 +0200 |
commit | aa13a585132fb1fd57d3af005f1d637a941d26cc (patch) | |
tree | f1b04718b4259e907739da9b5dd79df8e2a442c8 /tests/lib/share | |
parent | 29fa9dfb79e6f4a792fd012c33fec43965238aca (diff) | |
parent | 37579505628654cb86e6a453c07c05cbd2026b4f (diff) | |
download | nextcloud-server-aa13a585132fb1fd57d3af005f1d637a941d26cc.tar.gz nextcloud-server-aa13a585132fb1fd57d3af005f1d637a941d26cc.zip |
Merge branch 'phpunit'
Diffstat (limited to 'tests/lib/share')
-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 f0b5f120584..48d0270cc57 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); } |