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/federation/tests/Settings | |
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/federation/tests/Settings')
-rw-r--r-- | apps/federation/tests/Settings/AdminTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/federation/tests/Settings/AdminTest.php b/apps/federation/tests/Settings/AdminTest.php index 78cb7201dcd..758bda6bc5e 100644 --- a/apps/federation/tests/Settings/AdminTest.php +++ b/apps/federation/tests/Settings/AdminTest.php @@ -36,7 +36,7 @@ class AdminTest extends TestCase { public function setUp() { parent::setUp(); - $this->trustedServers = $this->createMock('\OCA\Federation\TrustedServers'); + $this->trustedServers = $this->getMockBuilder('\OCA\Federation\TrustedServers')->disableOriginalConstructor()->getMock(); $this->admin = new Admin( $this->trustedServers ); |