Merge pull request #6180 from nextcloud/fix-warnings

Fix PHPUnit warnings
This commit is contained in:
Morris Jobke 2017-08-21 09:25:35 +02:00 committed by GitHub
commit 6e3b8db98d
1 changed files with 3 additions and 3 deletions

View File

@ -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