diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-08-15 16:43:22 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-08-15 16:43:22 +0200 |
commit | 7ffb7b0d846241c8cc6b45a3c85b2374c6d026ae (patch) | |
tree | 8472e73eb69f8495405231d44e1d580cbd0942bd /apps/federatedfilesharing/tests | |
parent | 8a7a0f328746230dd896ccc53b3ada271a91b930 (diff) | |
download | nextcloud-server-7ffb7b0d846241c8cc6b45a3c85b2374c6d026ae.tar.gz nextcloud-server-7ffb7b0d846241c8cc6b45a3c85b2374c6d026ae.zip |
Use MockBuilder instead of createMock
CI uses an older PHPUnit
Diffstat (limited to 'apps/federatedfilesharing/tests')
-rw-r--r-- | apps/federatedfilesharing/tests/Settings/AdminTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/tests/Settings/AdminTest.php b/apps/federatedfilesharing/tests/Settings/AdminTest.php index e082e7bff23..60fadca7b56 100644 --- a/apps/federatedfilesharing/tests/Settings/AdminTest.php +++ b/apps/federatedfilesharing/tests/Settings/AdminTest.php @@ -35,7 +35,7 @@ class AdminTest extends TestCase { public function setUp() { parent::setUp(); - $this->federatedShareProvider = $this->createMock('\OCA\FederatedFileSharing\FederatedShareProvider'); + $this->federatedShareProvider = $this->getMockBuilder('\OCA\FederatedFileSharing\FederatedShareProvider')->disableOriginalConstructor()->getMock(); $this->admin = new Admin( $this->federatedShareProvider ); |