summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-08-21 09:25:35 +0200
committerGitHub <noreply@github.com>2017-08-21 09:25:35 +0200
commit6e3b8db98dd00ca0473e1a7d41174ed3dc9c7830 (patch)
tree30f9b2b7a901d78192154fcd1dcf00d8a77d205c /apps
parent9e1884b27cb873ee57247560d72d4d3c7e0aa801 (diff)
parentf8b4b2c4998239fbbee7c7e5b2de0654e66c46fb (diff)
downloadnextcloud-server-6e3b8db98dd00ca0473e1a7d41174ed3dc9c7830.tar.gz
nextcloud-server-6e3b8db98dd00ca0473e1a7d41174ed3dc9c7830.zip
Merge pull request #6180 from nextcloud/fix-warnings
Fix PHPUnit warnings
Diffstat (limited to 'apps')
-rw-r--r--apps/federatedfilesharing/tests/Settings/AdminTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/federatedfilesharing/tests/Settings/AdminTest.php b/apps/federatedfilesharing/tests/Settings/AdminTest.php
index ce47ffb2385..183cd055686 100644
--- a/apps/federatedfilesharing/tests/Settings/AdminTest.php
+++ b/apps/federatedfilesharing/tests/Settings/AdminTest.php
@@ -23,6 +23,7 @@
namespace OCA\FederatedFileSharing\Tests\Settings;
+use OCA\FederatedFileSharing\FederatedShareProvider;
use OCA\FederatedFileSharing\Settings\Admin;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\GlobalScale\IConfig;
@@ -38,9 +39,8 @@ class AdminTest extends TestCase {
public function setUp() {
parent::setUp();
- $this->federatedShareProvider = $this->getMockBuilder('\OCA\FederatedFileSharing\FederatedShareProvider')
- ->disableOriginalConstructor()->getMock();
- $this->gsConfig = $this->getMock(IConfig::class);
+ $this->federatedShareProvider = $this->createMock(FederatedShareProvider::class);
+ $this->gsConfig = $this->createMock(IConfig::class);
$this->admin = new Admin(
$this->federatedShareProvider,
$this->gsConfig