diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-12 21:38:07 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-13 09:09:53 +0200 |
commit | 7bc2d178cad6500853210a7b57120911c7611eff (patch) | |
tree | 4057c29a983c0926de4d0a0f315561db701580e2 /tests | |
parent | 5aad530e6cd5cfb381862e27ddc7b10a2fe1e244 (diff) | |
download | nextcloud-server-7bc2d178cad6500853210a7b57120911c7611eff.tar.gz nextcloud-server-7bc2d178cad6500853210a7b57120911c7611eff.zip |
Fix getMock CertificateMangerTest
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Security/CertificateManagerTest.php | 5 |
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') |