diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-07-11 10:21:00 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-07-11 10:21:00 +0200 |
commit | 412f6a6eccd7b4b955d63922150dbe2104cd269d (patch) | |
tree | 02abc1098df572ce6655f361664e514df56ed00f /apps/files_sharing/tests | |
parent | 0c09f566c24e45b3d4dc91dc2bddc341e4f76fbd (diff) | |
download | nextcloud-server-412f6a6eccd7b4b955d63922150dbe2104cd269d.tar.gz nextcloud-server-412f6a6eccd7b4b955d63922150dbe2104cd269d.zip |
fix unit tests
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r-- | apps/files_sharing/tests/External/ManagerTest.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/External/ManagerTest.php b/apps/files_sharing/tests/External/ManagerTest.php index 753836dd58e..93c17ca10cf 100644 --- a/apps/files_sharing/tests/External/ManagerTest.php +++ b/apps/files_sharing/tests/External/ManagerTest.php @@ -138,6 +138,9 @@ class ManagerTest extends TestCase { $shareData3 = $shareData1; $shareData3['token'] = 'token3'; + $this->userManager->expects($this->any())->method('get')->willReturn($this->user); + $this->groupManager->expects($this->any())->method(('getUserGroups'))->willReturn([]); + $this->manager->expects($this->at(0))->method('tryOCMEndPoint')->with('http://localhost', 'token1', -1, 'accept')->willReturn(false); $this->manager->expects($this->at(1))->method('tryOCMEndPoint')->with('http://localhost', 'token3', -1, 'decline')->willReturn(false); |