diff options
Diffstat (limited to 'tests/Unit/Controller/FeedControllerTest.php')
-rw-r--r-- | tests/Unit/Controller/FeedControllerTest.php | 19 |
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( |