File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 2626use BigBlueButton \Http \Transport \TransportResponse ;
2727use BigBlueButton \Parameters \DeleteRecordingsParameters ;
2828use BigBlueButton \Parameters \GetRecordingsParameters ;
29+ use BigBlueButton \Parameters \InsertDocumentParameters ;
2930use BigBlueButton \Parameters \PublishRecordingsParameters ;
3031use PHPUnit \Framework \MockObject \MockObject ;
3132
@@ -346,4 +347,17 @@ public function testUpdateRecordingsUrl()
346347 $ this ->assertStringContainsString (\rawurlencode ($ key ) . '= ' . rawurlencode ($ value ), $ url );
347348 }
348349 }
350+
351+ public function testGetInsertDocument ()
352+ {
353+ $ params = new InsertDocumentParameters ('foobar ' );
354+
355+ $ this ->assertStringContainsString ('http://localhost/api/insertDocument?meetingID=foobar ' , $ this ->bbb ->getInsertDocumentUrl ($ params ));
356+
357+ $ this ->transport ->method ('request ' )->willReturn (new TransportResponse ('<response><returncode>SUCCESS</returncode></response> ' , null ));
358+
359+ $ response = $ this ->bbb ->insertDocument ($ params );
360+
361+ $ this ->assertTrue ($ response ->success ());
362+ }
349363}
You can’t perform that action at this time.
0 commit comments