Merge pull request #19995 from nextcloud/bugfix/noid/unify_default_types_lookupServerEnabled

Default value of lookupServerEnabled should be the same everywhere
This commit is contained in:
Roeland Jago Douma 2020-03-17 15:06:10 +01:00 committed by GitHub
commit 54baf610f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1046,7 +1046,7 @@ class FederatedShareProvider implements IShareProvider {
if ($this->gsConfig->isGlobalScaleEnabled()) { if ($this->gsConfig->isGlobalScaleEnabled()) {
return true; return true;
} }
$result = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'no'); $result = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'yes');
return ($result === 'yes'); return ($result === 'yes');
} }

View File

@ -778,7 +778,7 @@ class FederatedShareProviderTest extends \Test\TestCase {
$this->gsConfig->expects($this->once())->method('isGlobalScaleEnabled') $this->gsConfig->expects($this->once())->method('isGlobalScaleEnabled')
->willReturn($gsEnabled); ->willReturn($gsEnabled);
$this->config->expects($this->any())->method('getAppValue') $this->config->expects($this->any())->method('getAppValue')
->with('files_sharing', 'lookupServerEnabled', 'no') ->with('files_sharing', 'lookupServerEnabled', 'yes')
->willReturn($isEnabled); ->willReturn($isEnabled);
$this->assertSame($expected, $this->assertSame($expected,