summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Controller/AdminControllerTest.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/AdminControllerTest.php
parent5c7fdb08534018ba86ec4a38f45b63cbbf67a72f (diff)
use magic class constant instead of classname strings
Diffstat (limited to 'tests/Unit/Controller/AdminControllerTest.php')
-rw-r--r--tests/Unit/Controller/AdminControllerTest.php15
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/Unit/Controller/AdminControllerTest.php b/tests/Unit/Controller/AdminControllerTest.php
index 486330193..2b148e67d 100644
--- a/tests/Unit/Controller/AdminControllerTest.php
+++ b/tests/Unit/Controller/AdminControllerTest.php
@@ -13,7 +13,10 @@
namespace OCA\News\Tests\Unit\Controller;
+use OCA\News\Config\Config;
use OCA\News\Controller\AdminController;
+use OCA\News\Service\ItemService;
+use OCP\IRequest;
use PHPUnit\Framework\TestCase;
class AdminControllerTest extends TestCase
@@ -32,19 +35,13 @@ class AdminControllerTest extends TestCase
public function setUp()
{
$this->appName = 'news';
- $this->request = $this->getMockBuilder(
- '\OCP\IRequest'
- )
+ $this->request = $this->getMockBuilder(IRequest::class)
->disableOriginalConstructor()
->getMock();
- $this->config = $this->getMockBuilder(
- '\OCA\News\Config\Config'
- )
+ $this->config = $this->getMockBuilder(Config::class)
->disableOriginalConstructor()
->getMock();
- $this->itemService = $this->getMockBuilder(
- '\OCA\News\Service\ItemService'
- )
+ $this->itemService = $this->getMockBuilder(ItemService::class)
->disableOriginalConstructor()
->getMock();