Skip to content

Commit 59bb2f6

Browse files
Match create parameters
1 parent ce0aa8e commit 59bb2f6

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@
3737
use OCP\AppFramework\OCS\OCSBadRequestException;
3838
use OCP\Collaboration\Collaborators\ISearch;
3939
use OCP\IConfig;
40+
use OCP\IGroupManager;
4041
use OCP\IRequest;
4142
use OCP\IURLGenerator;
43+
use OCP\IUserManager;
4244
use OCP\Share\IShare;
4345
use OCP\Share\IManager;
4446

@@ -65,6 +67,12 @@ class ShareesAPIControllerTest extends TestCase {
6567
/** @var ISearch|\PHPUnit\Framework\MockObject\MockObject */
6668
protected $collaboratorSearch;
6769

70+
/** @var IGroupManager|\PHPUnit\Framework\MockObject\MockObject */
71+
private $groupManager;
72+
73+
/** @var IUserManager|\PHPUnit\Framework\MockObject\MockObject */
74+
private $userManager;
75+
6876
protected function setUp(): void {
6977
parent::setUp();
7078

@@ -80,14 +88,20 @@ protected function setUp(): void {
8088

8189
$this->collaboratorSearch = $this->createMock(ISearch::class);
8290

91+
$this->groupManager = $this->createMock(IGroupManager::class);
92+
93+
$this->userManager = $this->createMock(IUserManager::class);
94+
8395
$this->sharees = new ShareesAPIController(
8496
$this->uid,
8597
'files_sharing',
8698
$this->request,
8799
$configMock,
88100
$urlGeneratorMock,
89101
$this->shareManager,
90-
$this->collaboratorSearch
102+
$this->collaboratorSearch,
103+
$this->groupManager,
104+
$this->userManager
91105
);
92106
}
93107

@@ -239,6 +253,8 @@ public function testSearch($getData, $apiSetting, $enumSetting, $remoteSharingEn
239253

240254
/** @var IConfig|\PHPUnit\Framework\MockObject\MockObject $config */
241255
$config = $this->createMock(IConfig::class);
256+
257+
// TODO: Add exclude groups config request
242258
$config->expects($this->exactly(1))
243259
->method('getAppValue')
244260
->with($this->anything(), $this->anything(), $this->anything())

0 commit comments

Comments
 (0)