diff options
author | Joas Schilling <coding@schilljs.com> | 2023-02-02 14:21:40 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-02-02 14:22:44 +0100 |
commit | 58668bd54d6177437d0bd1ec6d273a2e96313dfd (patch) | |
tree | ce237c0552cac024cd02be7239e6fd68a8158ca0 | |
parent | 5cd6f0c793db2884c094559e9513ef7262460e2a (diff) |
fix(CI): Creation of dynamic property is deprecated
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | tests/php/Chat/ChatManagerTest.php | 7 | ||||
-rw-r--r-- | tests/php/Federation/FederationTest.php | 2 | ||||
-rw-r--r-- | tests/php/Service/BreakoutRoomServiceTest.php | 2 | ||||
-rw-r--r-- | tests/php/Service/RoomServiceTest.php | 2 |
4 files changed, 6 insertions, 7 deletions
diff --git a/tests/php/Chat/ChatManagerTest.php b/tests/php/Chat/ChatManagerTest.php index 0586011a8..5ae6955e5 100644 --- a/tests/php/Chat/ChatManagerTest.php +++ b/tests/php/Chat/ChatManagerTest.php @@ -173,13 +173,6 @@ class ChatManagerTest extends TestCase { $comment->method('getCreationDateTime')->willReturn($creationDateTime); $comment->method('getMessage')->willReturn($message); - // Used for equals comparison - $comment->id = $id; - $comment->actorType = $actorType; - $comment->actorId = $actorId; - $comment->creationDateTime = $creationDateTime; - $comment->message = $message; - return $comment; } diff --git a/tests/php/Federation/FederationTest.php b/tests/php/Federation/FederationTest.php index 0b6b6d147..adfde6edb 100644 --- a/tests/php/Federation/FederationTest.php +++ b/tests/php/Federation/FederationTest.php @@ -62,6 +62,8 @@ class FederationTest extends TestCase { /** @var Config|MockObject */ protected $config; + /** @var LoggerInterface|MockObject */ + protected $logger; /** @var AddressHandler|MockObject */ protected $addressHandler; diff --git a/tests/php/Service/BreakoutRoomServiceTest.php b/tests/php/Service/BreakoutRoomServiceTest.php index 4292a0547..9c4ca88bd 100644 --- a/tests/php/Service/BreakoutRoomServiceTest.php +++ b/tests/php/Service/BreakoutRoomServiceTest.php @@ -51,6 +51,8 @@ class BreakoutRoomServiceTest extends TestCase { private $participantService; /** @var ChatManager|MockObject */ private $chatManager; + /** @var INotificationManager|MockObject */ + private $notificationManager; /** @var IEventDispatcher|MockObject */ private $dispatcher; /** @var IL10N|MockObject */ diff --git a/tests/php/Service/RoomServiceTest.php b/tests/php/Service/RoomServiceTest.php index a8b1fcf64..9334f2d71 100644 --- a/tests/php/Service/RoomServiceTest.php +++ b/tests/php/Service/RoomServiceTest.php @@ -54,6 +54,8 @@ class RoomServiceTest extends TestCase { protected $manager; /** @var ParticipantService|MockObject */ protected $participantService; + /** @var ITimeFactory|MockObject */ + protected $timeFactory; /** @var IShareManager|MockObject */ protected $shareManager; /** @var Config|MockObject */ |