summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/tests/UpdateCheckerTest.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-01-17 13:42:02 +0100
committerJoas Schilling <coding@schilljs.com>2018-01-18 10:55:44 +0100
commit19f7cc9e9243c8ce4f3a5cba2c6fc286b1e32f38 (patch)
treec87781c3db915aa2bb3a7fe0ff20e4428f423bb3 /apps/updatenotification/tests/UpdateCheckerTest.php
parent9296116297fb6c46f1f26d745b5fe1f63f6caa2a (diff)
downloadnextcloud-server-19f7cc9e9243c8ce4f3a5cba2c6fc286b1e32f38.tar.gz
nextcloud-server-19f7cc9e9243c8ce4f3a5cba2c6fc286b1e32f38.zip
Make Update notficiations strict and fix all inspections
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/updatenotification/tests/UpdateCheckerTest.php')
-rw-r--r--apps/updatenotification/tests/UpdateCheckerTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/updatenotification/tests/UpdateCheckerTest.php b/apps/updatenotification/tests/UpdateCheckerTest.php
index f7ed83047a6..5502e1ce8ac 100644
--- a/apps/updatenotification/tests/UpdateCheckerTest.php
+++ b/apps/updatenotification/tests/UpdateCheckerTest.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
@@ -24,12 +25,12 @@
namespace OCA\UpdateNotification\Tests;
-use OC\Updater;
+use OC\Updater\VersionCheck;
use OCA\UpdateNotification\UpdateChecker;
use Test\TestCase;
class UpdateCheckerTest extends TestCase {
- /** @var Updater */
+ /** @var VersionCheck|\PHPUnit_Framework_MockObject_MockObject */
private $updater;
/** @var UpdateChecker */
private $updateChecker;
@@ -37,8 +38,7 @@ class UpdateCheckerTest extends TestCase {
public function setUp() {
parent::setUp();
- $this->updater = $this->getMockBuilder('\OC\Updater\VersionCheck')
- ->disableOriginalConstructor()->getMock();
+ $this->updater = $this->createMock(VersionCheck::class);
$this->updateChecker = new UpdateChecker($this->updater);
}