Fix getMock CertificateMangerTest

This commit is contained in:
Roeland Jago Douma 2016-09-12 21:38:07 +02:00
parent 5aad530e6c
commit 7bc2d178ca
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 3 additions and 2 deletions

View File

@ -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')