aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-08-12 13:55:36 +0200
committerGitHub <noreply@github.com>2020-08-12 13:55:36 +0200
commit55e79b8a6afabce230175be382216cedc9dec741 (patch)
tree4f317e5eda3f46b61a62d5738d637f9d5185e1c0 /apps/files
parent4c1f13c5695b117ff58a8b763bea1f10fa8628c2 (diff)
parent234b510652d117bb3ef9ef3b6315db3a2c2eb91b (diff)
downloadnextcloud-server-55e79b8a6afabce230175be382216cedc9dec741.tar.gz
nextcloud-server-55e79b8a6afabce230175be382216cedc9dec741.zip
Merge pull request #22199 from nextcloud/techdebt/noid/PHPUnit_Framework_MockObject_MockObject
Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to …
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/tests/Controller/ApiControllerTest.php4
-rw-r--r--apps/files/tests/Controller/ViewControllerTest.php14
-rw-r--r--apps/files/tests/Service/TagServiceTest.php10
3 files changed, 14 insertions, 14 deletions
diff --git a/apps/files/tests/Controller/ApiControllerTest.php b/apps/files/tests/Controller/ApiControllerTest.php
index d347cffdd81..bf3ca5e5a87 100644
--- a/apps/files/tests/Controller/ApiControllerTest.php
+++ b/apps/files/tests/Controller/ApiControllerTest.php
@@ -57,7 +57,7 @@ class ApiControllerTest extends TestCase {
private $request;
/** @var TagService */
private $tagService;
- /** @var IPreview|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IPreview|\PHPUnit\Framework\MockObject\MockObject */
private $preview;
/** @var ApiController */
private $apiController;
@@ -65,7 +65,7 @@ class ApiControllerTest extends TestCase {
private $shareManager;
/** @var \OCP\IConfig */
private $config;
- /** @var Folder|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var Folder|\PHPUnit\Framework\MockObject\MockObject */
private $userFolder;
protected function setUp(): void {
diff --git a/apps/files/tests/Controller/ViewControllerTest.php b/apps/files/tests/Controller/ViewControllerTest.php
index 50eb40079a0..c17c2ea3575 100644
--- a/apps/files/tests/Controller/ViewControllerTest.php
+++ b/apps/files/tests/Controller/ViewControllerTest.php
@@ -56,27 +56,27 @@ use Test\TestCase;
* @package OCA\Files\Tests\Controller
*/
class ViewControllerTest extends TestCase {
- /** @var IRequest|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IRequest|\PHPUnit\Framework\MockObject\MockObject */
private $request;
- /** @var IURLGenerator|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IURLGenerator|\PHPUnit\Framework\MockObject\MockObject */
private $urlGenerator;
/** @var IL10N */
private $l10n;
- /** @var IConfig|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IConfig|\PHPUnit\Framework\MockObject\MockObject */
private $config;
/** @var EventDispatcherInterface */
private $eventDispatcher;
- /** @var ViewController|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ViewController|\PHPUnit\Framework\MockObject\MockObject */
private $viewController;
/** @var IUser */
private $user;
/** @var IUserSession */
private $userSession;
- /** @var IAppManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IAppManager|\PHPUnit\Framework\MockObject\MockObject */
private $appManager;
- /** @var IRootFolder|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IRootFolder|\PHPUnit\Framework\MockObject\MockObject */
private $rootFolder;
- /** @var Helper|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var Helper|\PHPUnit\Framework\MockObject\MockObject */
private $activityHelper;
protected function setUp(): void {
diff --git a/apps/files/tests/Service/TagServiceTest.php b/apps/files/tests/Service/TagServiceTest.php
index ca6d98909ed..e9c55400493 100644
--- a/apps/files/tests/Service/TagServiceTest.php
+++ b/apps/files/tests/Service/TagServiceTest.php
@@ -48,10 +48,10 @@ class TagServiceTest extends \Test\TestCase {
*/
private $user;
- /** @var IUserSession|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserSession|\PHPUnit\Framework\MockObject\MockObject */
private $userSession;
- /** @var IManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IManager|\PHPUnit\Framework\MockObject\MockObject */
private $activityManager;
/**
@@ -59,11 +59,11 @@ class TagServiceTest extends \Test\TestCase {
*/
private $root;
- /** @var EventDispatcherInterface|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var EventDispatcherInterface|\PHPUnit\Framework\MockObject\MockObject */
private $dispatcher;
/**
- * @var \OCA\Files\Service\TagService|\PHPUnit_Framework_MockObject_MockObject
+ * @var \OCA\Files\Service\TagService|\PHPUnit\Framework\MockObject\MockObject
*/
private $tagService;
@@ -98,7 +98,7 @@ class TagServiceTest extends \Test\TestCase {
/**
* @param array $methods
- * @return TagService|\PHPUnit_Framework_MockObject_MockObject
+ * @return TagService|\PHPUnit\Framework\MockObject\MockObject
*/
protected function getTagService(array $methods = []) {
return $this->getMockBuilder(TagService::class)