diff options
author | Vitor Mattos <vitor@php.rio> | 2022-04-04 21:51:15 +0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-04-05 21:21:35 +0300 |
commit | f6b523898012f7957f9ca64a84558087fc02c548 (patch) | |
tree | 78a640dcdedb52623d961abb393c424bd1f23b7a /tests | |
parent | d7ac2a1f64fc934e53c930cd8051be2fdfa64a2b (diff) |
fix typing
Signed-off-by: Vitor Mattos <vitor@php.rio>
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 { |