summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/tests/Controller
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-08-14 15:45:45 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-08-14 15:45:45 +0200
commit3b948f76945ac6ff148e88a04293933576d090b9 (patch)
treeee5af0464fa358e75602a88eeedd5da869eea2a7 /apps/updatenotification/tests/Controller
parent241fc286c78917137776d44bdf2d426d6f26f52e (diff)
downloadnextcloud-server-3b948f76945ac6ff148e88a04293933576d090b9.tar.gz
nextcloud-server-3b948f76945ac6ff148e88a04293933576d090b9.zip
Fix deprecated getMock warning
Diffstat (limited to 'apps/updatenotification/tests/Controller')
-rw-r--r--apps/updatenotification/tests/Controller/AdminControllerTest.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/updatenotification/tests/Controller/AdminControllerTest.php b/apps/updatenotification/tests/Controller/AdminControllerTest.php
index 0343542ef41..20b0c534c46 100644
--- a/apps/updatenotification/tests/Controller/AdminControllerTest.php
+++ b/apps/updatenotification/tests/Controller/AdminControllerTest.php
@@ -59,15 +59,15 @@ class AdminControllerTest extends TestCase {
public function setUp() {
parent::setUp();
- $this->request = $this->getMock('\\OCP\\IRequest');
- $this->jobList = $this->getMock('\\OCP\\BackgroundJob\\IJobList');
- $this->secureRandom = $this->getMock('\\OCP\\Security\\ISecureRandom');
- $this->config = $this->getMock('\\OCP\\IConfig');
- $this->timeFactory = $this->getMock('\\OCP\\AppFramework\\Utility\\ITimeFactory');
- $this->l10n = $this->getMock('\\OCP\\IL10N');
+ $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->getMock('\\OCP\\IDateTimeFormatter');
+ $this->dateTimeFormatter = $this->getMockBuilder('\\OCP\\IDateTimeFormatter')->getMock();
$this->adminController = new AdminController(
'updatenotification',