diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-04-06 08:30:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-06 08:30:13 +0200 |
commit | c510d5816ac5517d71b4f898378fa5e2b5e82fca (patch) | |
tree | 39466da0ec1d2a96ca6181cd9b64bb00db6f8288 /tests | |
parent | e5d1a5e51a589f349d19460c5bf74216f2312370 (diff) | |
parent | f6b523898012f7957f9ca64a84558087fc02c548 (diff) |
Merge pull request #7094 from nextcloud/feature/fix-typing
fix property typing
Diffstat (limited to 'tests')
-rw-r--r-- | tests/php/Controller/SignalingControllerTest.php | 7 | ||||
-rw-r--r-- | tests/php/Federation/FederationTest.php | 15 |
2 files changed, 15 insertions, 7 deletions
diff --git a/tests/php/Controller/SignalingControllerTest.php b/tests/php/Controller/SignalingControllerTest.php index d7b4464c1..9c95b35cb 100644 --- a/tests/php/Controller/SignalingControllerTest.php +++ b/tests/php/Controller/SignalingControllerTest.php @@ -392,6 +392,7 @@ class SignalingControllerTest extends \Test\TestCase { $attendee = Attendee::fromRow([ 'permissions' => Attendee::PERMISSIONS_DEFAULT, + 'actor_type' => Attendee::ACTOR_USERS, ]); $participant = $this->createMock(Participant::class); $participant->expects($this->any()) @@ -452,6 +453,7 @@ class SignalingControllerTest extends \Test\TestCase { $attendee = Attendee::fromRow([ 'permissions' => Attendee::PERMISSIONS_DEFAULT, + 'actor_type' => Attendee::ACTOR_USERS, ]); $participant = $this->createMock(Participant::class); $participant->expects($this->any()) @@ -512,6 +514,7 @@ class SignalingControllerTest extends \Test\TestCase { $attendee = Attendee::fromRow([ 'permissions' => Attendee::PERMISSIONS_DEFAULT, + 'actor_type' => Attendee::ACTOR_USERS, ]); $participant = $this->createMock(Participant::class); $participant->expects($this->any()) @@ -578,6 +581,7 @@ class SignalingControllerTest extends \Test\TestCase { $attendee = Attendee::fromRow([ 'permissions' => Attendee::PERMISSIONS_DEFAULT, + 'actor_type' => Attendee::ACTOR_USERS, ]); $participant = $this->createMock(Participant::class); $participant->expects($this->any()) @@ -639,6 +643,7 @@ class SignalingControllerTest extends \Test\TestCase { $attendee = Attendee::fromRow([ 'permissions' => Attendee::PERMISSIONS_DEFAULT, + 'actor_type' => Attendee::ACTOR_USERS, ]); $participant = $this->createMock(Participant::class); $participant->expects($this->any()) @@ -718,6 +723,7 @@ class SignalingControllerTest extends \Test\TestCase { $attendee = Attendee::fromRow([ 'permissions' => $permissions, + 'actor_type' => Attendee::ACTOR_USERS, ]); $participant = $this->createMock(Participant::class); $participant->expects($this->any()) @@ -812,6 +818,7 @@ class SignalingControllerTest extends \Test\TestCase { $attendee = Attendee::fromRow([ 'permissions' => Attendee::PERMISSIONS_DEFAULT, + 'actor_type' => Attendee::ACTOR_USERS, ]); $participant = $this->createMock(Participant::class); $participant->expects($this->any()) diff --git a/tests/php/Federation/FederationTest.php b/tests/php/Federation/FederationTest.php index 401562fe4..1774bcecb 100644 --- a/tests/php/Federation/FederationTest.php +++ b/tests/php/Federation/FederationTest.php @@ -43,6 +43,7 @@ use OCP\IUser; use OCP\IUserManager; use OCP\Notification\IManager as INotificationManager; use OCP\Notification\INotification; +use PHPUnit\Framework\MockObject\MockObject; use Psr\Log\LoggerInterface; use Test\TestCase; @@ -53,28 +54,28 @@ class FederationTest extends TestCase { /** @var Notifications */ protected $notifications; - /** @var ICloudFederationProviderManager */ + /** @var ICloudFederationProviderManager|MockObject */ protected $cloudFederationProviderManager; - /** @var ICloudFederationFactory */ + /** @var ICloudFederationFactory|MockObject */ protected $cloudFederationFactory; - /** @var Config */ + /** @var Config|MockObject */ protected $config; - /** @var AddressHandler */ + /** @var AddressHandler|MockObject */ protected $addressHandler; /** @var CloudFederationProviderTalk */ protected $cloudFederationProvider; - /** @var IUserManager */ + /** @var IUserManager|MockObject */ protected $userManager; - /** @var INotificationManager */ + /** @var INotificationManager|MockObject */ protected $notificationManager; - /** @var AttendeeMapper */ + /** @var AttendeeMapper|MockObject */ protected $attendeeMapper; public function setUp(): void { |