don't add server automatically to trusted server
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
de983e61e3
commit
7df5c5db2d
|
@ -137,7 +137,7 @@ class TrustedServers {
|
|||
* @return bool
|
||||
*/
|
||||
public function getAutoAddServers() {
|
||||
$value = $this->config->getAppValue('federation', 'autoAddServers', '1');
|
||||
$value = $this->config->getAppValue('federation', 'autoAddServers', '0');
|
||||
return $value === '1';
|
||||
}
|
||||
|
||||
|
|
|
@ -172,7 +172,7 @@ class TrustedServersTest extends TestCase {
|
|||
*/
|
||||
public function testGetAutoAddServers($status, $expected) {
|
||||
$this->config->expects($this->once())->method('getAppValue')
|
||||
->with('federation', 'autoAddServers', '1')->willReturn($status);
|
||||
->with('federation', 'autoAddServers', '0')->willReturn($status);
|
||||
|
||||
$this->assertSame($expected,
|
||||
$this->trustedServers->getAutoAddServers()
|
||||
|
|
Loading…
Reference in New Issue