File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323use BigBlueButton \Core \ApiMethod ;
2424use BigBlueButton \Core \DocumentFile ;
2525use BigBlueButton \Core \DocumentUrl ;
26+ use BigBlueButton \Enum \Feature ;
2627use BigBlueButton \Parameters \CreateMeetingParameters ;
2728use BigBlueButton \Parameters \DeleteRecordingsParameters ;
2829use BigBlueButton \Parameters \EndMeetingParameters ;
@@ -303,7 +304,11 @@ public function testInsertDocumentFile(): void
303304 $ insertDocumentResponse = $ this ->bbb ->insertDocument ($ insertDocumentParameters );
304305
305306 // ASSERT
306- $ this ->assertTrue ($ insertDocumentResponse ->success ());
307+ if (!array_search (Feature::PRESENTATION , $ createMeetingParameters ->getDisabledFeatures ()) > 0 ) {
308+ $ this ->assertTrue ($ insertDocumentResponse ->success ());
309+ } else {
310+ $ this ->assertTrue ($ insertDocumentResponse ->failed ());
311+ }
307312 }
308313
309314 /**
@@ -337,7 +342,11 @@ public function testInsertDocumentUrlAndFile(): void
337342 $ insertDocumentResponse = $ this ->bbb ->insertDocument ($ insertDocumentParameters );
338343
339344 // ASSERT
340- $ this ->assertTrue ($ insertDocumentResponse ->success ());
345+ if (!array_search (Feature::PRESENTATION , $ createMeetingParameters ->getDisabledFeatures ()) > 0 ) {
346+ $ this ->assertTrue ($ insertDocumentResponse ->success ());
347+ } else {
348+ $ this ->assertTrue ($ insertDocumentResponse ->failed ());
349+ }
341350 }
342351
343352 // Join Meeting
You can’t perform that action at this time.
0 commit comments