aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarius Blüm <marius@lineone.io>2016-08-17 09:02:58 +0200
committerGitHub <noreply@github.com>2016-08-17 09:02:58 +0200
commitc1632c3abd0f136b4ecb8d7a5bef5c3c72f9cb95 (patch)
treef39dd2b81c9743d9912359cbd3649101b8db383d /tests
parent0cc8b8b244fe921226a53c9c03c40e13f63b6362 (diff)
parent8f3dc0ba43123915c25ff9b328104d6fe4faf9e9 (diff)
downloadnextcloud-server-c1632c3abd0f136b4ecb8d7a5bef5c3c72f9cb95.tar.gz
nextcloud-server-c1632c3abd0f136b4ecb8d7a5bef5c3c72f9cb95.zip
Merge pull request #893 from nextcloud/ie8_be_gone
IE8 be gone!
Diffstat (limited to 'tests')
-rw-r--r--tests/Settings/Controller/CertificateControllerTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/Settings/Controller/CertificateControllerTest.php b/tests/Settings/Controller/CertificateControllerTest.php
index c9ea2a4024f..36b5715e734 100644
--- a/tests/Settings/Controller/CertificateControllerTest.php
+++ b/tests/Settings/Controller/CertificateControllerTest.php
@@ -51,11 +51,11 @@ class CertificateControllerTest extends \Test\TestCase {
public function setUp() {
parent::setUp();
- $this->request = $this->getMock('\OCP\IRequest');
- $this->certificateManager = $this->getMock('\OCP\ICertificateManager');
- $this->systemCertificateManager = $this->getMock('\OCP\ICertificateManager');
- $this->l10n = $this->getMock('\OCP\IL10N');
- $this->appManager = $this->getMock('OCP\App\IAppManager');
+ $this->request = $this->getMockBuilder('\OCP\IRequest')->getMock();
+ $this->certificateManager = $this->getMockBuilder('\OCP\ICertificateManager')->getMock();
+ $this->systemCertificateManager = $this->getMockBuilder('\OCP\ICertificateManager')->getMock();
+ $this->l10n = $this->getMockBuilder('\OCP\IL10N')->getMock();
+ $this->appManager = $this->getMockBuilder('OCP\App\IAppManager')->getMock();
$this->certificateController = $this->getMockBuilder('OC\Settings\Controller\CertificateController')
->setConstructorArgs(
@@ -90,7 +90,7 @@ class CertificateControllerTest extends \Test\TestCase {
'name' => 'goodCertificate.crt',
];
- $certificate = $this->getMock('\OCP\ICertificate');
+ $certificate = $this->getMockBuilder('\OCP\ICertificate')->getMock();
$certificate
->expects($this->once())
->method('getName')