Skip to content

Commit e3e0e6c

Browse files
committed
Added new test for creating a meeting with multiple documents.
1 parent b3caa76 commit e3e0e6c

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

tests/BigBlueButtonTest.php

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function testCreateMeetingWithDocumentUrl()
113113
public function testCreateMeetingWithDocumentUrlAndFileName()
114114
{
115115
$params = $this->getCreateMock($this->generateCreateParams());
116-
$params->addPresentation('https://placeholdit.imgix.net/~text?txtsize=96&bg=30406B&txtclr=ffffff&txt=BigBlueButton&w=800&h=600', null, 'placeholder.png');
116+
$params->addPresentation('https://placeholdit.imgix.net/~text?txtsize=100&bg=AB5080&txtclr=ffffff&txt=BigBlueButton&w=1920&h=1080', null, 'placeholder.png');
117117

118118
$result = $this->bbb->createMeeting($params);
119119

@@ -135,6 +135,21 @@ public function testCreateMeetingWithDocumentEmbedded()
135135
$this->assertEquals('SUCCESS', $result->getReturnCode());
136136
}
137137

138+
/**
139+
* Test create meeting with a multiple documents
140+
*/
141+
public function testCreateMeetingWithMultiDocument()
142+
{
143+
$params = $this->getCreateMock($this->generateCreateParams());
144+
$params->addPresentation('https://placeholdit.imgix.net/~text?txtsize=96&bg=DE3040&txtclr=ffffff&txt=BigBlueButton&w=1600&h=1200', null, 'presentation.png');
145+
$params->addPresentation('logo.png', file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'fixtures' . DIRECTORY_SEPARATOR . 'bbb_logo.png'));
146+
147+
$result = $this->bbb->createMeeting($params);
148+
149+
$this->assertCount(2, $params->getPresentations());
150+
$this->assertEquals('SUCCESS', $result->getReturnCode());
151+
}
152+
138153
/* Join Meeting */
139154

140155
/**

0 commit comments

Comments
 (0)