diff options
Diffstat (limited to 'tests/php/Chat')
-rw-r--r-- | tests/php/Chat/Parser/UserMentionTest.php | 2 | ||||
-rw-r--r-- | tests/php/Chat/SystemMessage/ListenerTest.php | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/php/Chat/Parser/UserMentionTest.php b/tests/php/Chat/Parser/UserMentionTest.php index c59934901..497d933bb 100644 --- a/tests/php/Chat/Parser/UserMentionTest.php +++ b/tests/php/Chat/Parser/UserMentionTest.php @@ -402,7 +402,7 @@ class UserMentionTest extends \Test\TestCase { $room = $this->createMock(Room::class); $room->expects($this->once()) ->method('getType') - ->willReturn(Room::GROUP_CALL); + ->willReturn(Room::TYPE_GROUP); $room->expects($this->once()) ->method('getToken') ->willReturn('token'); diff --git a/tests/php/Chat/SystemMessage/ListenerTest.php b/tests/php/Chat/SystemMessage/ListenerTest.php index 60b8d946a..8a11d896a 100644 --- a/tests/php/Chat/SystemMessage/ListenerTest.php +++ b/tests/php/Chat/SystemMessage/ListenerTest.php @@ -134,7 +134,7 @@ class ListenerTest extends TestCase { $room = $this->createMock(Room::class); $room->expects($this->any()) ->method('getType') - ->willReturn(Room::ONE_TO_ONE_CALL); + ->willReturn(Room::TYPE_ONE_TO_ONE); $participants = [[ 'actorType' => 'users', @@ -194,11 +194,11 @@ class ListenerTest extends TestCase { ]; return [ - [Room::GROUP_CALL, '', $allParticipants, $expectedMessages], - [Room::PUBLIC_CALL, '', $allParticipants, $expectedMessages], - [Room::ONE_TO_ONE_CALL, '', $allParticipants, []], - [Room::GROUP_CALL, 'file', $allParticipants, $expectedMessages], - [Room::PUBLIC_CALL, 'file', $allParticipants, $expectedMessages], + [Room::TYPE_GROUP, '', $allParticipants, $expectedMessages], + [Room::TYPE_PUBLIC, '', $allParticipants, $expectedMessages], + [Room::TYPE_ONE_TO_ONE, '', $allParticipants, []], + [Room::TYPE_GROUP, 'file', $allParticipants, $expectedMessages], + [Room::TYPE_PUBLIC, 'file', $allParticipants, $expectedMessages], ]; } @@ -290,7 +290,7 @@ class ListenerTest extends TestCase { $this->mockLoggedInUser('alice_actor'); $room = $this->createMock(Room::class); - $room->method('getType')->willReturn(Room::GROUP_CALL); + $room->method('getType')->willReturn(Room::TYPE_GROUP); $attendee = new Attendee(); $attendee->setActorId('bob_participant'); |