summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/tests/Notification/NotifierTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/updatenotification/tests/Notification/NotifierTest.php')
-rw-r--r--apps/updatenotification/tests/Notification/NotifierTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/updatenotification/tests/Notification/NotifierTest.php b/apps/updatenotification/tests/Notification/NotifierTest.php
index 8848a3124fb..e5ccb291b5c 100644
--- a/apps/updatenotification/tests/Notification/NotifierTest.php
+++ b/apps/updatenotification/tests/Notification/NotifierTest.php
@@ -38,8 +38,8 @@ class NotifierTest extends TestCase {
public function setUp() {
parent::setUp();
- $this->notificationManager = $this->getMock('OCP\Notification\IManager');
- $this->l10nFactory = $this->getMock('OCP\L10n\IFactory');
+ $this->notificationManager = $this->getMockBuilder('OCP\Notification\IManager')->getMock();
+ $this->l10nFactory = $this->getMockBuilder('OCP\L10n\IFactory')->getMock();
}
/**
@@ -81,7 +81,7 @@ class NotifierTest extends TestCase {
public function testUpdateAlreadyInstalledCheck($versionNotification, $versionInstalled, $exception) {
$notifier = $this->getNotifier();
- $notification = $this->getMock('OCP\Notification\INotification');
+ $notification = $this->getMockBuilder('OCP\Notification\INotification')->getMock();
$notification->expects($this->once())
->method('getObjectId')
->willReturn($versionNotification);