Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix existing tests
Signed-off-by: Daniel Bishop <[email protected]>
  • Loading branch information
Tetrachloroethene committed Mar 1, 2021
commit ded214ecce1a4d0ffb6ce88f03e3f3e90386910b
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,11 @@ public function testSearch($getData, $apiSetting, $enumSetting, $remoteSharingEn
/** @var IConfig|\PHPUnit\Framework\MockObject\MockObject $config */
$config = $this->createMock(IConfig::class);

// TODO: Add exclude groups config request
$config->expects($this->exactly(1))
$config->expects($this->exactly(2))
->method('getAppValue')
->with($this->anything(), $this->anything(), $this->anything())
->willReturnMap([
['core', 'shareapi_exclude_groups', 'no', 'no'],
['files_sharing', 'lookupServerEnabled', 'yes', 'yes'],
]);

Expand Down Expand Up @@ -360,8 +360,12 @@ public function testSearchInvalid($getData, $message) {

/** @var IConfig|\PHPUnit\Framework\MockObject\MockObject $config */
$config = $this->createMock(IConfig::class);
$config->expects($this->never())
->method('getAppValue');
$config->expects($this->exactly(1))
->method('getAppValue')
->with($this->anything(), $this->anything(), $this->anything())
->willReturnMap([
['core', 'shareapi_exclude_groups', 'no', 'no'],
]);

/** @var string */
$uid = 'test123';
Expand Down