summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-12 21:38:07 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-13 09:09:53 +0200
commit7bc2d178cad6500853210a7b57120911c7611eff (patch)
tree4057c29a983c0926de4d0a0f315561db701580e2 /tests
parent5aad530e6cd5cfb381862e27ddc7b10a2fe1e244 (diff)
downloadnextcloud-server-7bc2d178cad6500853210a7b57120911c7611eff.tar.gz
nextcloud-server-7bc2d178cad6500853210a7b57120911c7611eff.zip
Fix getMock CertificateMangerTest
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Security/CertificateManagerTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/Security/CertificateManagerTest.php b/tests/lib/Security/CertificateManagerTest.php
index 3abd3392e6c..92a063d47c7 100644
--- a/tests/lib/Security/CertificateManagerTest.php
+++ b/tests/lib/Security/CertificateManagerTest.php
@@ -9,6 +9,7 @@
namespace Test\Security;
use \OC\Security\CertificateManager;
+use OCP\IConfig;
/**
* Class CertificateManagerTest
@@ -38,7 +39,7 @@ class CertificateManagerTest extends \Test\TestCase {
\OC\Files\Filesystem::tearDown();
\OC_Util::setupFS($this->username);
- $config = $this->getMock('OCP\IConfig');
+ $config = $this->createMock(IConfig::class);
$config->expects($this->any())->method('getSystemValue')
->with('installed', false)->willReturn(true);
@@ -138,7 +139,7 @@ class CertificateManagerTest extends \Test\TestCase {
$view = $this->getMockBuilder('OC\Files\View')
->disableOriginalConstructor()->getMock();
- $config = $this->getMock('OCP\IConfig');
+ $config = $this->createMock(IConfig::class);
/** @var CertificateManager | \PHPUnit_Framework_MockObject_MockObject $certificateManager */
$certificateManager = $this->getMockBuilder('OC\Security\CertificateManager')