@@ -64,6 +64,7 @@ public function testApiVersion()
6464 $ apiVersion = $ this ->bbb ->getApiVersion ();
6565 $ this ->assertEquals ('SUCCESS ' , $ apiVersion ->getReturnCode ());
6666 $ this ->assertEquals ('2.0 ' , $ apiVersion ->getVersion ());
67+ $ this ->assertTrue ($ apiVersion ->success ());
6768 }
6869
6970 /* Create Meeting */
@@ -91,6 +92,7 @@ public function testCreateMeeting()
9192 $ params = $ this ->generateCreateParams ();
9293 $ result = $ this ->bbb ->createMeeting ($ this ->getCreateMock ($ params ));
9394 $ this ->assertEquals ('SUCCESS ' , $ result ->getReturnCode ());
95+ $ this ->assertTrue ($ result ->success ());
9496 }
9597
9698 /**
@@ -105,6 +107,7 @@ public function testCreateMeetingWithDocumentUrl()
105107
106108 $ this ->assertCount (1 , $ params ->getPresentations ());
107109 $ this ->assertEquals ('SUCCESS ' , $ result ->getReturnCode ());
110+ $ this ->assertTrue ($ result ->success ());
108111 }
109112
110113 /**
@@ -119,6 +122,7 @@ public function testCreateMeetingWithDocumentUrlAndFileName()
119122
120123 $ this ->assertCount (1 , $ params ->getPresentations ());
121124 $ this ->assertEquals ('SUCCESS ' , $ result ->getReturnCode ());
125+ $ this ->assertTrue ($ result ->success ());
122126 }
123127
124128 /**
@@ -133,6 +137,7 @@ public function testCreateMeetingWithDocumentEmbedded()
133137
134138 $ this ->assertCount (1 , $ params ->getPresentations ());
135139 $ this ->assertEquals ('SUCCESS ' , $ result ->getReturnCode ());
140+ $ this ->assertTrue ($ result ->success ());
136141 }
137142
138143 /**
@@ -148,6 +153,7 @@ public function testCreateMeetingWithMultiDocument()
148153
149154 $ this ->assertCount (2 , $ params ->getPresentations ());
150155 $ this ->assertEquals ('SUCCESS ' , $ result ->getReturnCode ());
156+ $ this ->assertTrue ($ result ->success ());
151157 }
152158
153159 /* Join Meeting */
@@ -182,6 +188,7 @@ public function testJoinMeeting()
182188
183189 $ joinMeeting = $ this ->bbb ->joinMeeting ($ joinMeetingMock );
184190 $ this ->assertEquals ('SUCCESS ' , $ joinMeeting ->getReturnCode ());
191+ $ this ->assertTrue ($ joinMeeting ->success ());
185192 $ this ->assertNotEmpty ($ joinMeeting ->getAuthToken ());
186193 $ this ->assertNotEmpty ($ joinMeeting ->getUserId ());
187194 $ this ->assertNotEmpty ($ joinMeeting ->getSessionToken ());
@@ -222,6 +229,7 @@ public function testSetConfigXML()
222229 $ params = $ this ->generateCreateParams ();
223230 $ createMeetingResponse = $ this ->bbb ->createMeeting ($ this ->getCreateMock ($ params ));
224231 $ this ->assertEquals ('SUCCESS ' , $ createMeetingResponse ->getReturnCode ());
232+ $ this ->assertTrue ($ createMeetingResponse ->success ());
225233
226234 // Execute setConfigXML request
227235 $ params = ['meetingId ' => $ createMeetingResponse ->getMeetingId ()];
@@ -231,6 +239,7 @@ public function testSetConfigXML()
231239
232240 $ result = $ this ->bbb ->setConfigXML ($ setConfigXMLParams );
233241 $ this ->assertEquals ('SUCCESS ' , $ result ->getReturnCode ());
242+ $ this ->assertTrue ($ result ->success ());
234243 $ this ->assertNotEmpty ($ result ->getToken ());
235244 }
236245
@@ -258,13 +267,15 @@ public function testEndMeeting()
258267 $ endMeeting = new EndMeetingParameters ($ meeting ->getMeetingId (), $ meeting ->getModeratorPassword ());
259268 $ result = $ this ->bbb ->endMeeting ($ endMeeting );
260269 $ this ->assertEquals ('SUCCESS ' , $ result ->getReturnCode ());
270+ $ this ->assertTrue ($ result ->success ());
261271 }
262272
263273 public function testEndNonExistingMeeting ()
264274 {
265275 $ params = $ this ->generateEndMeetingParams ();
266276 $ result = $ this ->bbb ->endMeeting ($ this ->getEndMeetingMock ($ params ));
267277 $ this ->assertEquals ('FAILED ' , $ result ->getReturnCode ());
278+ $ this ->assertTrue ($ result ->failed ());
268279 }
269280
270281 /* Is Meeting Running */
@@ -273,6 +284,7 @@ public function testIsMeetingRunning()
273284 {
274285 $ result = $ this ->bbb ->isMeetingRunning (new IsMeetingRunningParameters ($ this ->faker ->uuid ));
275286 $ this ->assertEquals ('SUCCESS ' , $ result ->getReturnCode ());
287+ $ this ->assertTrue ($ result ->success ());
276288 $ this ->assertEquals (false , $ result ->isRunning ());
277289 }
278290
@@ -307,6 +319,7 @@ public function testGetMeetingInfo()
307319
308320 $ result = $ this ->bbb ->getMeetingInfo (new GetMeetingInfoParameters ($ meeting ->getMeetingId (), $ meeting ->getModeratorPassword ()));
309321 $ this ->assertEquals ('SUCCESS ' , $ result ->getReturnCode ());
322+ $ this ->assertTrue ($ result ->success ());
310323 }
311324
312325 public function testGetRecordingsUrl ()
@@ -319,6 +332,7 @@ public function testGetRecordings()
319332 {
320333 $ result = $ this ->bbb ->getRecordings (new GetRecordingsParameters ());
321334 $ this ->assertEquals ('SUCCESS ' , $ result ->getReturnCode ());
335+ $ this ->assertTrue ($ result ->success ());
322336 }
323337
324338 public function testPublishRecordingsUrl ()
@@ -331,6 +345,7 @@ public function testPublishRecordings()
331345 {
332346 $ result = $ this ->bbb ->publishRecordings (new PublishRecordingsParameters ('non-existing-id- ' . $ this ->faker ->sha1 , true ));
333347 $ this ->assertEquals ('FAILED ' , $ result ->getReturnCode ());
348+ $ this ->assertTrue ($ result ->failed ());
334349 }
335350
336351 public function testDeleteRecordingsUrl ()
@@ -343,6 +358,7 @@ public function testDeleteRecordings()
343358 {
344359 $ result = $ this ->bbb ->deleteRecordings (new DeleteRecordingsParameters ('non-existing-id- ' . $ this ->faker ->sha1 ));
345360 $ this ->assertEquals ('FAILED ' , $ result ->getReturnCode ());
361+ $ this ->assertTrue ($ result ->failed ());
346362 }
347363
348364 public function testUpdateRecordingsUrl ()
@@ -362,5 +378,6 @@ public function testUpdateRecordings()
362378 $ params = $ this ->generateUpdateRecordingsParams ();
363379 $ result = $ this ->bbb ->updateRecordings ($ this ->getUpdateRecordingsParamsMock ($ params ));
364380 $ this ->assertEquals ('FAILED ' , $ result ->getReturnCode ());
381+ $ this ->assertTrue ($ result ->failed ());
365382 }
366383}
0 commit comments