summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Controller/ExportControllerTest.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/ExportControllerTest.php
parent5c7fdb08534018ba86ec4a38f45b63cbbf67a72f (diff)
use magic class constant instead of classname strings
Diffstat (limited to 'tests/Unit/Controller/ExportControllerTest.php')
-rw-r--r--tests/Unit/Controller/ExportControllerTest.php19
1 files changed, 8 insertions, 11 deletions
diff --git a/tests/Unit/Controller/ExportControllerTest.php b/tests/Unit/Controller/ExportControllerTest.php
index b2b56e8dd..9af641c42 100644
--- a/tests/Unit/Controller/ExportControllerTest.php
+++ b/tests/Unit/Controller/ExportControllerTest.php
@@ -14,12 +14,15 @@
namespace OCA\News\Tests\Unit\Controller;
use OCA\News\Controller\ExportController;
-use \OCP\AppFramework\Http;
+use OCA\News\Service\FeedService;
+use OCA\News\Service\FolderService;
+use OCA\News\Service\ItemService;
use \OCA\News\Http\TextDownloadResponse;
use \OCA\News\Utility\OPMLExporter;
use \OCA\News\Db\Item;
use \OCA\News\Db\Feed;
+use OCP\IRequest;
use PHPUnit\Framework\TestCase;
@@ -42,22 +45,16 @@ class ExportControllerTest extends TestCase
{
$this->appName = 'news';
$this->user = 'john';
- $this->itemService = $this->getMockBuilder(
- '\OCA\News\Service\ItemService'
- )
+ $this->itemService = $this->getMockBuilder(ItemService::class)
->disableOriginalConstructor()
->getMock();
- $this->feedService = $this->getMockBuilder(
- '\OCA\News\Service\FeedService'
- )
+ $this->feedService = $this->getMockBuilder(FeedService::class)
->disableOriginalConstructor()
->getMock();
- $this->folderService = $this->getMockBuilder(
- '\OCA\News\Service\FolderService'
- )
+ $this->folderService = $this->getMockBuilder(FolderService::class)
->disableOriginalConstructor()
->getMock();
- $this->request = $this->getMockBuilder('\OCP\IRequest')
+ $this->request = $this->getMockBuilder(IRequest::class)
->disableOriginalConstructor()
->getMock();
$this->opmlExporter = new OPMLExporter();