summaryrefslogtreecommitdiffstats
path: root/apps/federation/tests/Controller
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-08-31 20:54:17 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-08-31 20:54:17 +0200
commit62485ed08f2ae12c1c6dc92d1b9be020c67001ca (patch)
tree2bcfddd7d2dfd1f836c2a9e3f6ce1469a598ecd2 /apps/federation/tests/Controller
parent2685129184472a308a3ba7730207816151b0ffd7 (diff)
downloadnextcloud-server-62485ed08f2ae12c1c6dc92d1b9be020c67001ca.tar.gz
nextcloud-server-62485ed08f2ae12c1c6dc92d1b9be020c67001ca.zip
Fix deprecated getMock call in Federation app
Diffstat (limited to 'apps/federation/tests/Controller')
-rw-r--r--apps/federation/tests/Controller/SettingsControllerTest.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/federation/tests/Controller/SettingsControllerTest.php b/apps/federation/tests/Controller/SettingsControllerTest.php
index e73d1f47cdd..2f93ebfeaa1 100644
--- a/apps/federation/tests/Controller/SettingsControllerTest.php
+++ b/apps/federation/tests/Controller/SettingsControllerTest.php
@@ -25,7 +25,10 @@ namespace OCA\Federation\Tests\Controller;
use OCA\Federation\Controller\SettingsController;
+use OCA\Federation\TrustedServers;
use OCP\AppFramework\Http\DataResponse;
+use OCP\IL10N;
+use OCP\IRequest;
use Test\TestCase;
class SettingsControllerTest extends TestCase {
@@ -45,9 +48,9 @@ class SettingsControllerTest extends TestCase {
public function setUp() {
parent::setUp();
- $this->request = $this->getMock('OCP\IRequest');
- $this->l10n = $this->getMock('OCP\IL10N');
- $this->trustedServers = $this->getMockBuilder('OCA\Federation\TrustedServers')
+ $this->request = $this->getMockBuilder(IRequest::class)->getMock();
+ $this->l10n = $this->getMockBuilder(IL10N::class)->getMock();
+ $this->trustedServers = $this->getMockBuilder(TrustedServers::class)
->disableOriginalConstructor()->getMock();
$this->controller = new SettingsController(