diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-09-13 14:32:19 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-09-26 23:10:24 +0200 |
commit | 3888b3a285734f8c3319689f5681dff3aa21f5e9 (patch) | |
tree | c461d0a78b0a4273370cfec6b66d788a550ca7b7 /apps/files_sharing | |
parent | a28b1d91f95f421c6efbb7752d9404c6719c0688 (diff) | |
download | nextcloud-server-3888b3a285734f8c3319689f5681dff3aa21f5e9.tar.gz nextcloud-server-3888b3a285734f8c3319689f5681dff3aa21f5e9.zip |
adapt unit test for ensuring exception
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php b/apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php index 529a8754b83..85b4f5ae35d 100644 --- a/apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php +++ b/apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php @@ -403,8 +403,8 @@ class ShareesAPIControllerTest extends TestCase { * @expectedException \OCP\AppFramework\OCS\OCSBadRequestException * @expectedExceptionMessage Missing itemType */ - public function testSearchShareesNoItemType() { - $this->invokePrivate($this->sharees, 'searchSharees', ['', null, [], [], 0, 0, false]); + public function testSearchNoItemType() { + $this->sharees->search('', null, 0, 0, [], false); } public function dataGetPaginationLink() { |