File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,22 @@ public function setUp(): void
5757 $ this ->bbb = new BigBlueButton ();
5858 }
5959
60+ public function tearDown (): void
61+ {
62+ parent ::tearDown ();
63+
64+ // close all existing meetings
65+ $ meetingsResponse = $ this ->bbb ->getMeetings ();
66+ $ meetings = $ meetingsResponse ->getMeetings ();
67+
68+ foreach ($ meetings as $ meeting ) {
69+ $ endMeetingParameters = new EndMeetingParameters ($ meeting ->getMeetingId (), $ meeting ->getModeratorPassword ());
70+ $ endMeetingResponse = $ this ->bbb ->endMeeting ($ endMeetingParameters );
71+
72+ $ this ->assertEquals ('SUCCESS ' , $ endMeetingResponse ->getReturnCode ());
73+ }
74+ }
75+
6076 // API Version
6177
6278 /**
@@ -247,6 +263,10 @@ public function testGetMeetingsUrl(): void
247263
248264 public function testGetMeetings (): void
249265 {
266+ // create some meetings
267+ $ createMeetingResponse = $ this ->createRealMeeting ($ this ->bbb );
268+ $ this ->assertEquals ('SUCCESS ' , $ createMeetingResponse ->getReturnCode ());
269+
250270 $ result = $ this ->bbb ->getMeetings ();
251271 $ this ->assertNotEmpty ($ result ->getMeetings ());
252272 }
You can’t perform that action at this time.
0 commit comments