aboutsummaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-08-15 16:43:22 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-08-15 16:43:22 +0200
commit7ffb7b0d846241c8cc6b45a3c85b2374c6d026ae (patch)
tree8472e73eb69f8495405231d44e1d580cbd0942bd /apps/updatenotification/tests
parent8a7a0f328746230dd896ccc53b3ada271a91b930 (diff)
downloadnextcloud-server-7ffb7b0d846241c8cc6b45a3c85b2374c6d026ae.tar.gz
nextcloud-server-7ffb7b0d846241c8cc6b45a3c85b2374c6d026ae.zip
Use MockBuilder instead of createMock
CI uses an older PHPUnit
Diffstat (limited to 'apps/updatenotification/tests')
-rw-r--r--apps/updatenotification/tests/Controller/AdminControllerTest.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/updatenotification/tests/Controller/AdminControllerTest.php b/apps/updatenotification/tests/Controller/AdminControllerTest.php
index a4398715885..cf99679e680 100644
--- a/apps/updatenotification/tests/Controller/AdminControllerTest.php
+++ b/apps/updatenotification/tests/Controller/AdminControllerTest.php
@@ -59,14 +59,14 @@ class AdminControllerTest extends TestCase {
public function setUp() {
parent::setUp();
- $this->request = $this->createMock('\\OCP\\IRequest');
- $this->jobList = $this->createMock('\\OCP\\BackgroundJob\\IJobList');
- $this->secureRandom = $this->createMock('\\OCP\\Security\\ISecureRandom');
- $this->config = $this->createMock('\\OCP\\IConfig');
- $this->timeFactory = $this->createMock('\\OCP\\AppFramework\\Utility\\ITimeFactory');
- $this->l10n = $this->createMock('\\OCP\\IL10N');
- $this->updateChecker = $this->createMock('\\OCA\\UpdateNotification\\UpdateChecker');
- $this->dateTimeFormatter = $this->createMock('\\OCP\\IDateTimeFormatter');
+ $this->request = $this->getMockBuilder('\\OCP\\IRequest')->getMock();
+ $this->jobList = $this->getMockBuilder('\\OCP\\BackgroundJob\\IJobList')->getMock();
+ $this->secureRandom = $this->getMockBuilder('\\OCP\\Security\\ISecureRandom')->getMock();
+ $this->config = $this->getMockBuilder('\\OCP\\IConfig')->getMock();
+ $this->timeFactory = $this->getMockBuilder('\\OCP\\AppFramework\\Utility\\ITimeFactory')->getMock();
+ $this->l10n = $this->getMockBuilder('\\OCP\\IL10N')->getMock();
+ $this->updateChecker = $this->getMockBuilder('\\OCA\\UpdateNotification\\UpdateChecker')->disableOriginalConstructor()->getMock();
+ $this->dateTimeFormatter = $this->getMockBuilder('\\OCP\\IDateTimeFormatter')->getMock();
$this->adminController = new AdminController(
'updatenotification',