aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-08-11 21:32:18 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-08-12 13:55:19 +0200
commit234b510652d117bb3ef9ef3b6315db3a2c2eb91b (patch)
tree880cec2bf4fe4846eff9fa5aa68d2671fb0495be /apps/federatedfilesharing
parent138f47a1b980aaceb116b256b8ccf14f523e7e67 (diff)
downloadnextcloud-server-234b510652d117bb3ef9ef3b6315db3a2c2eb91b.tar.gz
nextcloud-server-234b510652d117bb3ef9ef3b6315db3a2c2eb91b.zip
Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r--apps/federatedfilesharing/tests/AddressHandlerTest.php4
-rw-r--r--apps/federatedfilesharing/tests/Controller/MountPublicLinkControllerTest.php20
-rw-r--r--apps/federatedfilesharing/tests/Controller/RequestHandlerControllerTest.php30
-rw-r--r--apps/federatedfilesharing/tests/FederatedShareProviderTest.php16
-rw-r--r--apps/federatedfilesharing/tests/NotificationsTest.php16
-rw-r--r--apps/federatedfilesharing/tests/Settings/AdminTest.php2
-rw-r--r--apps/federatedfilesharing/tests/TokenHandlerTest.php2
7 files changed, 45 insertions, 45 deletions
diff --git a/apps/federatedfilesharing/tests/AddressHandlerTest.php b/apps/federatedfilesharing/tests/AddressHandlerTest.php
index 300622f1c00..6cfe9d60e1d 100644
--- a/apps/federatedfilesharing/tests/AddressHandlerTest.php
+++ b/apps/federatedfilesharing/tests/AddressHandlerTest.php
@@ -37,10 +37,10 @@ class AddressHandlerTest extends \Test\TestCase {
/** @var AddressHandler */
private $addressHandler;
- /** @var IURLGenerator | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IURLGenerator | \PHPUnit\Framework\MockObject\MockObject */
private $urlGenerator;
- /** @var IL10N | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IL10N | \PHPUnit\Framework\MockObject\MockObject */
private $il10n;
/** @var CloudIdManager */
diff --git a/apps/federatedfilesharing/tests/Controller/MountPublicLinkControllerTest.php b/apps/federatedfilesharing/tests/Controller/MountPublicLinkControllerTest.php
index 1d885bb601d..11dd585f662 100644
--- a/apps/federatedfilesharing/tests/Controller/MountPublicLinkControllerTest.php
+++ b/apps/federatedfilesharing/tests/Controller/MountPublicLinkControllerTest.php
@@ -50,34 +50,34 @@ class MountPublicLinkControllerTest extends \Test\TestCase {
/** @var MountPublicLinkController */
private $controller;
- /** @var \OCP\IRequest | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCP\IRequest | \PHPUnit\Framework\MockObject\MockObject */
private $request;
- /** @var FederatedShareProvider | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var FederatedShareProvider | \PHPUnit\Framework\MockObject\MockObject */
private $federatedShareProvider;
- /** @var IManager | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IManager | \PHPUnit\Framework\MockObject\MockObject */
private $shareManager;
- /** @var AddressHandler | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var AddressHandler | \PHPUnit\Framework\MockObject\MockObject */
private $addressHandler;
- /** @var IRootFolder | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IRootFolder | \PHPUnit\Framework\MockObject\MockObject */
private $rootFolder;
- /** @var IUserManager | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserManager | \PHPUnit\Framework\MockObject\MockObject */
private $userManager;
- /** @var ISession | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var ISession | \PHPUnit\Framework\MockObject\MockObject */
private $session;
- /** @var IL10N | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IL10N | \PHPUnit\Framework\MockObject\MockObject */
private $l10n;
- /** @var IUserSession | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserSession | \PHPUnit\Framework\MockObject\MockObject */
private $userSession;
- /** @var IClientService | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IClientService | \PHPUnit\Framework\MockObject\MockObject */
private $clientService;
/** @var IShare */
diff --git a/apps/federatedfilesharing/tests/Controller/RequestHandlerControllerTest.php b/apps/federatedfilesharing/tests/Controller/RequestHandlerControllerTest.php
index b192b466d59..1b02d8d0b7b 100644
--- a/apps/federatedfilesharing/tests/Controller/RequestHandlerControllerTest.php
+++ b/apps/federatedfilesharing/tests/Controller/RequestHandlerControllerTest.php
@@ -59,46 +59,46 @@ class RequestHandlerControllerTest extends \Test\TestCase {
/** @var RequestHandlerController */
private $requestHandler;
- /** @var \OCA\FederatedFileSharing\FederatedShareProvider|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCA\FederatedFileSharing\FederatedShareProvider|\PHPUnit\Framework\MockObject\MockObject */
private $federatedShareProvider;
- /** @var \OCA\FederatedFileSharing\Notifications|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCA\FederatedFileSharing\Notifications|\PHPUnit\Framework\MockObject\MockObject */
private $notifications;
- /** @var \OCA\FederatedFileSharing\AddressHandler|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCA\FederatedFileSharing\AddressHandler|\PHPUnit\Framework\MockObject\MockObject */
private $addressHandler;
- /** @var IUserManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserManager|\PHPUnit\Framework\MockObject\MockObject */
private $userManager;
- /** @var IShare|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IShare|\PHPUnit\Framework\MockObject\MockObject */
private $share;
- /** @var ICloudIdManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ICloudIdManager|\PHPUnit\Framework\MockObject\MockObject */
private $cloudIdManager;
- /** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ILogger|\PHPUnit\Framework\MockObject\MockObject */
private $logger;
- /** @var IRequest|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IRequest|\PHPUnit\Framework\MockObject\MockObject */
private $request;
- /** @var IDBConnection|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IDBConnection|\PHPUnit\Framework\MockObject\MockObject */
private $connection;
- /** @var Share\IManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var Share\IManager|\PHPUnit\Framework\MockObject\MockObject */
private $shareManager;
- /** @var ICloudFederationFactory|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ICloudFederationFactory|\PHPUnit\Framework\MockObject\MockObject */
private $cloudFederationFactory;
- /** @var ICloudFederationProviderManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ICloudFederationProviderManager|\PHPUnit\Framework\MockObject\MockObject */
private $cloudFederationProviderManager;
- /** @var ICloudFederationProvider|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ICloudFederationProvider|\PHPUnit\Framework\MockObject\MockObject */
private $cloudFederationProvider;
- /** @var ICloudFederationShare|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ICloudFederationShare|\PHPUnit\Framework\MockObject\MockObject */
private $cloudFederationShare;
protected function setUp(): void {
@@ -172,7 +172,7 @@ class RequestHandlerControllerTest extends \Test\TestCase {
'file'
)->willReturn($this->cloudFederationShare);
- /** @var ICloudFederationProvider|\PHPUnit_Framework_MockObject_MockObject $provider */
+ /** @var ICloudFederationProvider|\PHPUnit\Framework\MockObject\MockObject $provider */
$this->cloudFederationProviderManager->expects($this->once())
->method('getCloudFederationProvider')
->with('file')
diff --git a/apps/federatedfilesharing/tests/FederatedShareProviderTest.php b/apps/federatedfilesharing/tests/FederatedShareProviderTest.php
index e3e13f05867..aed08424475 100644
--- a/apps/federatedfilesharing/tests/FederatedShareProviderTest.php
+++ b/apps/federatedfilesharing/tests/FederatedShareProviderTest.php
@@ -57,23 +57,23 @@ class FederatedShareProviderTest extends \Test\TestCase {
/** @var IDBConnection */
protected $connection;
- /** @var AddressHandler | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var AddressHandler | \PHPUnit\Framework\MockObject\MockObject */
protected $addressHandler;
- /** @var Notifications | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var Notifications | \PHPUnit\Framework\MockObject\MockObject */
protected $notifications;
- /** @var TokenHandler|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var TokenHandler|\PHPUnit\Framework\MockObject\MockObject */
protected $tokenHandler;
/** @var IL10N */
protected $l;
/** @var ILogger */
protected $logger;
- /** @var IRootFolder | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IRootFolder | \PHPUnit\Framework\MockObject\MockObject */
protected $rootFolder;
- /** @var IConfig | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IConfig | \PHPUnit\Framework\MockObject\MockObject */
protected $config;
- /** @var IUserManager | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IUserManager | \PHPUnit\Framework\MockObject\MockObject */
protected $userManager;
- /** @var \OCP\GlobalScale\IConfig|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCP\GlobalScale\IConfig|\PHPUnit\Framework\MockObject\MockObject */
protected $gsConfig;
/** @var IManager */
@@ -84,7 +84,7 @@ class FederatedShareProviderTest extends \Test\TestCase {
/** @var ICloudIdManager */
private $cloudIdManager;
- /** @var \PHPUnit_Framework_MockObject_MockObject|ICloudFederationProviderManager */
+ /** @var \PHPUnit\Framework\MockObject\MockObject|ICloudFederationProviderManager */
private $cloudFederationProviderManager;
protected function setUp(): void {
diff --git a/apps/federatedfilesharing/tests/NotificationsTest.php b/apps/federatedfilesharing/tests/NotificationsTest.php
index 32ceedd45c0..29826c1e1b4 100644
--- a/apps/federatedfilesharing/tests/NotificationsTest.php
+++ b/apps/federatedfilesharing/tests/NotificationsTest.php
@@ -35,25 +35,25 @@ use OCP\OCS\IDiscoveryService;
class NotificationsTest extends \Test\TestCase {
- /** @var AddressHandler | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var AddressHandler | \PHPUnit\Framework\MockObject\MockObject */
private $addressHandler;
- /** @var IClientService | \PHPUnit_Framework_MockObject_MockObject*/
+ /** @var IClientService | \PHPUnit\Framework\MockObject\MockObject*/
private $httpClientService;
- /** @var IDiscoveryService | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IDiscoveryService | \PHPUnit\Framework\MockObject\MockObject */
private $discoveryService;
- /** @var IJobList | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var IJobList | \PHPUnit\Framework\MockObject\MockObject */
private $jobList;
- /** @var ICloudFederationProviderManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ICloudFederationProviderManager|\PHPUnit\Framework\MockObject\MockObject */
private $cloudFederationProviderManager;
- /** @var ICloudFederationFactory|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ICloudFederationFactory|\PHPUnit\Framework\MockObject\MockObject */
private $cloudFederationFactory;
- /** @var IEventDispatcher|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IEventDispatcher|\PHPUnit\Framework\MockObject\MockObject */
private $eventDispatcher;
protected function setUp(): void {
@@ -73,7 +73,7 @@ class NotificationsTest extends \Test\TestCase {
* get instance of Notifications class
*
* @param array $mockedMethods methods which should be mocked
- * @return Notifications | \PHPUnit_Framework_MockObject_MockObject
+ * @return Notifications | \PHPUnit\Framework\MockObject\MockObject
*/
private function getInstance(array $mockedMethods = []) {
if (empty($mockedMethods)) {
diff --git a/apps/federatedfilesharing/tests/Settings/AdminTest.php b/apps/federatedfilesharing/tests/Settings/AdminTest.php
index 4f53b3cd741..0285739cfea 100644
--- a/apps/federatedfilesharing/tests/Settings/AdminTest.php
+++ b/apps/federatedfilesharing/tests/Settings/AdminTest.php
@@ -36,7 +36,7 @@ class AdminTest extends TestCase {
private $admin;
/** @var \OCA\FederatedFileSharing\FederatedShareProvider */
private $federatedShareProvider;
- /** @var IConfig|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IConfig|\PHPUnit\Framework\MockObject\MockObject */
private $gsConfig;
protected function setUp(): void {
diff --git a/apps/federatedfilesharing/tests/TokenHandlerTest.php b/apps/federatedfilesharing/tests/TokenHandlerTest.php
index 50479654752..9d8dd676e79 100644
--- a/apps/federatedfilesharing/tests/TokenHandlerTest.php
+++ b/apps/federatedfilesharing/tests/TokenHandlerTest.php
@@ -32,7 +32,7 @@ class TokenHandlerTest extends \Test\TestCase {
/** @var TokenHandler */
private $tokenHandler;
- /** @var ISecureRandom | \PHPUnit_Framework_MockObject_MockObject */
+ /** @var ISecureRandom | \PHPUnit\Framework\MockObject\MockObject */
private $secureRandom;
/** @var int */