Skip to content

Commit 706b6ea

Browse files
committed
Add tests
1 parent 8f065b5 commit 706b6ea

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

tests/TestCase.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ protected function generateCreateParams()
115115
'breakoutRoomsEnabled' => $this->faker->boolean(50),
116116
'breakoutRoomsPrivateChatEnabled' => $this->faker->boolean(50),
117117
'breakoutRoomsRecord' => $this->faker->boolean(50),
118+
'allowRequestsWithoutSession' => $this->faker->boolean(50),
119+
'virtualBackgroundsDisabled' => $this->faker->boolean(50),
118120
];
119121
}
120122

@@ -182,7 +184,9 @@ protected function getCreateMock($params)
182184
->setAllowModsToEjectCameras($params['allowModsToEjectCameras'])
183185
->setBreakoutRoomsEnabled($params['breakoutRoomsEnabled'])
184186
->setBreakoutRoomsPrivateChatEnabled($params['breakoutRoomsPrivateChatEnabled'])
185-
->setBreakoutRoomsRecord($params['breakoutRoomsRecord']);
187+
->setBreakoutRoomsRecord($params['breakoutRoomsRecord'])
188+
->setAllowRequestsWithoutSession($params['allowRequestsWithoutSession'])
189+
->setVirtualBackgroundsDisabled($params['virtualBackgroundsDisabled']);
186190
}
187191

188192
/**

tests/unit/Parameters/CreateMeetingParametersTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ public function testCreateMeetingParameters()
7676
$this->assertEquals($params['breakoutRoomsEnabled'], $createMeetingParams->isBreakoutRoomsEnabled());
7777
$this->assertEquals($params['breakoutRoomsPrivateChatEnabled'], $createMeetingParams->isBreakoutRoomsPrivateChatEnabled());
7878
$this->assertEquals($params['breakoutRoomsRecord'], $createMeetingParams->isBreakoutRoomsRecord());
79+
$this->assertEquals($params['allowRequestsWithoutSession'], $createMeetingParams->isAllowRequestsWithoutSession());
80+
$this->assertEquals($params['virtualBackgroundsDisabled'], $createMeetingParams->isVirtualBackgroundsDisabled());
7981

8082
// Check values are empty of this is not a breakout room
8183
$this->assertNull($createMeetingParams->isBreakout());

0 commit comments

Comments
 (0)