summaryrefslogtreecommitdiffstats
path: root/apps/federation/tests/TrustedServersTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/federation/tests/TrustedServersTest.php')
-rw-r--r--apps/federation/tests/TrustedServersTest.php39
1 files changed, 0 insertions, 39 deletions
diff --git a/apps/federation/tests/TrustedServersTest.php b/apps/federation/tests/TrustedServersTest.php
index 5cb494643b8..bc16f14eedd 100644
--- a/apps/federation/tests/TrustedServersTest.php
+++ b/apps/federation/tests/TrustedServersTest.php
@@ -156,45 +156,6 @@ class TrustedServersTest extends TestCase {
];
}
- /**
- * @dataProvider dataTrueFalse
- *
- * @param bool $status
- */
- public function testSetAutoAddServers($status) {
- if ($status) {
- $this->config->expects($this->once())->method('setAppValue')
- ->with('federation', 'autoAddServers', '1');
- } else {
- $this->config->expects($this->once())->method('setAppValue')
- ->with('federation', 'autoAddServers', '0');
- }
-
- $this->trustedServers->setAutoAddServers($status);
- }
-
- /**
- * @dataProvider dataTestGetAutoAddServers
- *
- * @param string $status
- * @param bool $expected
- */
- public function testGetAutoAddServers($status, $expected) {
- $this->config->expects($this->once())->method('getAppValue')
- ->with('federation', 'autoAddServers', '0')->willReturn($status);
-
- $this->assertSame($expected,
- $this->trustedServers->getAutoAddServers()
- );
- }
-
- public function dataTestGetAutoAddServers() {
- return [
- ['1', true],
- ['0', false]
- ];
- }
-
public function testAddSharedSecret() {
$this->dbHandler->expects($this->once())->method('addSharedSecret')
->with('url', 'secret');