Skip to content

Commit f553535

Browse files
committed
fix: increase test coverage
1 parent 8b5838d commit f553535

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/unit/BigBlueButtonTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
use BigBlueButton\Http\Transport\TransportResponse;
2727
use BigBlueButton\Parameters\DeleteRecordingsParameters;
2828
use BigBlueButton\Parameters\GetRecordingsParameters;
29+
use BigBlueButton\Parameters\InsertDocumentParameters;
2930
use BigBlueButton\Parameters\PublishRecordingsParameters;
3031
use 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
}

0 commit comments

Comments
 (0)