summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-11-18 17:39:08 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-21 11:30:02 +0100
commit7b3855a3752053a440837fe0999e99cff7291dbc (patch)
tree463af9f9dad9ac28dcd1f98d257d9c5d2ae4950b /apps/federatedfilesharing/tests
parentc49b0d383481a698b644187ff27cebdbee765444 (diff)
downloadnextcloud-server-7b3855a3752053a440837fe0999e99cff7291dbc.tar.gz
nextcloud-server-7b3855a3752053a440837fe0999e99cff7291dbc.zip
Add config switch
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/federatedfilesharing/tests')
-rw-r--r--apps/federatedfilesharing/tests/Settings/AdminTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/federatedfilesharing/tests/Settings/AdminTest.php b/apps/federatedfilesharing/tests/Settings/AdminTest.php
index 60fadca7b56..c0b35a6427b 100644
--- a/apps/federatedfilesharing/tests/Settings/AdminTest.php
+++ b/apps/federatedfilesharing/tests/Settings/AdminTest.php
@@ -65,10 +65,15 @@ class AdminTest extends TestCase {
->expects($this->once())
->method('isIncomingServer2serverShareEnabled')
->willReturn($state);
+ $this->federatedShareProvider
+ ->expects($this->once())
+ ->method('isLookupServerQueriesEnabled')
+ ->willReturn($state);
$params = [
'outgoingServer2serverShareEnabled' => $state,
'incomingServer2serverShareEnabled' => $state,
+ 'lookupServerEnabled' => $state,
];
$expected = new TemplateResponse('federatedfilesharing', 'settings-admin', $params, '');
$this->assertEquals($expected, $this->admin->getForm());