summaryrefslogtreecommitdiffstats
path: root/tests/lib/share/share.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-10-13 04:29:20 +0200
committerRobin Appelman <icewind@owncloud.com>2012-10-13 04:29:20 +0200
commit11e9ce25e622ea3a98c8085717541620fb878a69 (patch)
tree4cc0563d51768efa01a92a7333f370a4d0ccf3d3 /tests/lib/share/share.php
parent141ff806c6cfbd349ffa232502a89a620882c409 (diff)
parentd386bc8737374200b4dc8ca0b62e432757ac2f04 (diff)
downloadnextcloud-server-11e9ce25e622ea3a98c8085717541620fb878a69.tar.gz
nextcloud-server-11e9ce25e622ea3a98c8085717541620fb878a69.zip
merge master into filesystem
Diffstat (limited to 'tests/lib/share/share.php')
-rw-r--r--tests/lib/share/share.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/lib/share/share.php b/tests/lib/share/share.php
index 48d0270cc57..7f6784f8df7 100644
--- a/tests/lib/share/share.php
+++ b/tests/lib/share/share.php
@@ -61,11 +61,13 @@ class Test_Share extends UnitTestCase {
$query->execute(array('test'));
}
- /**
- * @expectedException Exception
- */
public function testShareInvalidShareType() {
- OCP\Share::shareItem('test', 'test.txt', 'foobar', $this->user2, OCP\Share::PERMISSION_READ);
+ $message = 'Share type foobar is not valid for test.txt';
+ try {
+ OCP\Share::shareItem('test', 'test.txt', 'foobar', $this->user2, OCP\Share::PERMISSION_READ);
+ } catch (Exception $exception) {
+ $this->assertEqual($exception->getMessage(), $message);
+ }
}
public function testInvalidItemType() {