summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Controller/FeedControllerTest.php
diff options
context:
space:
mode:
authorDaniel Opitz <git@copynpaste.de>2018-10-16 22:37:48 +0200
committerSean Molenaar <SMillerDev@users.noreply.github.com>2018-12-04 17:10:46 +0100
commite158cc1d3b1fb33de5aaa1aaac0c7828016fb7b9 (patch)
tree4d3b4da643a428f259ca9fe1c63d97f8cecfb5fc /tests/Unit/Controller/FeedControllerTest.php
parent5c7fdb08534018ba86ec4a38f45b63cbbf67a72f (diff)
use magic class constant instead of classname strings
Diffstat (limited to 'tests/Unit/Controller/FeedControllerTest.php')
-rw-r--r--tests/Unit/Controller/FeedControllerTest.php19
1 files changed, 10 insertions, 9 deletions
diff --git a/tests/Unit/Controller/FeedControllerTest.php b/tests/Unit/Controller/FeedControllerTest.php
index 7580920d3..4703d307a 100644
--- a/tests/Unit/Controller/FeedControllerTest.php
+++ b/tests/Unit/Controller/FeedControllerTest.php
@@ -14,12 +14,17 @@
namespace OCA\News\Tests\Unit\Controller;
use OCA\News\Controller\FeedController;
+use OCA\News\Service\FeedService;
+use OCA\News\Service\FolderService;
+use OCA\News\Service\ItemService;
use OCP\AppFramework\Http;
use OCA\News\Db\Feed;
use OCA\News\Db\FeedType;
use OCA\News\Service\ServiceNotFoundException;
use OCA\News\Service\ServiceConflictException;
+use OCP\IConfig;
+use OCP\IRequest;
use PHPUnit\Framework\TestCase;
@@ -44,26 +49,22 @@ class FeedControllerTest extends TestCase
{
$this->appName = 'news';
$this->user = 'jack';
- $this->settings = $this->getMockBuilder(
- '\OCP\IConfig'
- )
+ $this->settings = $this->getMockBuilder(IConfig::class)
->disableOriginalConstructor()
->getMock();
$this->itemService = $this
- ->getMockBuilder('\OCA\News\Service\ItemService')
+ ->getMockBuilder(ItemService::class)
->disableOriginalConstructor()
->getMock();
$this->feedService = $this
- ->getMockBuilder('\OCA\News\Service\FeedService')
+ ->getMockBuilder(FeedService::class)
->disableOriginalConstructor()
->getMock();
$this->folderService = $this
- ->getMockBuilder('\OCA\News\Service\FolderService')
+ ->getMockBuilder(FolderService::class)
->disableOriginalConstructor()
->getMock();
- $this->request = $this->getMockBuilder(
- '\OCP\IRequest'
- )
+ $this->request = $this->getMockBuilder(IRequest::class)
->disableOriginalConstructor()
->getMock();
$this->controller = new FeedController(