Skip to content
Snippets Groups Projects
Unverified Commit 7bc2d178 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Fix getMock CertificateMangerTest

parent 5aad530e
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment