summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Utility
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Utility')
-rw-r--r--tests/Unit/Utility/ProxyConfigParserTest.php5
-rw-r--r--tests/Unit/Utility/UpdaterTest.php16
2 files changed, 9 insertions, 12 deletions
diff --git a/tests/Unit/Utility/ProxyConfigParserTest.php b/tests/Unit/Utility/ProxyConfigParserTest.php
index 34a7e4502..1433558e7 100644
--- a/tests/Unit/Utility/ProxyConfigParserTest.php
+++ b/tests/Unit/Utility/ProxyConfigParserTest.php
@@ -15,6 +15,7 @@ namespace OCA\News\Tests\Unit\Utility;
use OCA\News\Utility\ProxyConfigParser;
+use OCP\IConfig;
use PHPUnit\Framework\TestCase;
class ProxyConfigParserTest extends TestCase
@@ -27,9 +28,7 @@ class ProxyConfigParserTest extends TestCase
protected function setUp()
{
- $this->config = $this->getMockBuilder(
- '\OCP\IConfig'
- )
+ $this->config = $this->getMockBuilder(IConfig::class)
->disableOriginalConstructor()
->getMock();
$this->parser = new ProxyConfigParser($this->config);
diff --git a/tests/Unit/Utility/UpdaterTest.php b/tests/Unit/Utility/UpdaterTest.php
index 3ebf47a9a..3a285ccfd 100644
--- a/tests/Unit/Utility/UpdaterTest.php
+++ b/tests/Unit/Utility/UpdaterTest.php
@@ -13,6 +13,10 @@
namespace OCA\News\Tests\Unit\Utility;
+
+use OCA\News\Service\FeedService;
+use OCA\News\Service\FolderService;
+use OCA\News\Service\ItemService;
use OCA\News\Utility\Updater;
use PHPUnit\Framework\TestCase;
@@ -26,19 +30,13 @@ class UpdaterTest extends TestCase
protected function setUp()
{
- $this->folderService = $this->getMockBuilder(
- '\OCA\News\Service\FolderService'
- )
+ $this->folderService = $this->getMockBuilder(FolderService::class)
->disableOriginalConstructor()
->getMock();
- $this->feedService = $this->getMockBuilder(
- '\OCA\News\Service\FeedService'
- )
+ $this->feedService = $this->getMockBuilder(FeedService::class)
->disableOriginalConstructor()
->getMock();
- $this->itemService = $this->getMockBuilder(
- '\OCA\News\Service\ItemService'
- )
+ $this->itemService = $this->getMockBuilder(ItemService::class)
->disableOriginalConstructor()
->getMock();
$this->updater = new Updater(