summaryrefslogtreecommitdiffstats
path: root/tests/lib/share
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-10-03 21:06:01 +0200
committerRobin Appelman <icewind@owncloud.com>2012-10-03 21:29:50 +0200
commit22f8f50e050f63c02193c4256e515bab25db1cf7 (patch)
tree1b9868d38a17d1e6eee6b052626edb1a00e069ac /tests/lib/share
parent6fdd1a96ad26633463b9353f8408f19db4b2407a (diff)
downloadnextcloud-server-22f8f50e050f63c02193c4256e515bab25db1cf7.tar.gz
nextcloud-server-22f8f50e050f63c02193c4256e515bab25db1cf7.zip
initual phpunit support
Diffstat (limited to 'tests/lib/share')
-rw-r--r--tests/lib/share/share.php4
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);
}