@@ -36,7 +36,7 @@ public function setUp(): void
3636 public function testGetMeetingInfoResponseContent ()
3737 {
3838 $ this ->assertInstanceOf ('BigBlueButton\Core\Meeting ' , $ this ->meetingInfo ->getMeeting ());
39- $ this ->assertCount (2 , $ this ->meetingInfo ->getMeeting ()->getAttendees ());
39+ $ this ->assertCount (4 , $ this ->meetingInfo ->getMeeting ()->getAttendees ());
4040 $ this ->assertEquals ('SUCCESS ' , $ this ->meetingInfo ->getReturnCode ());
4141
4242 $ info = $ this ->meetingInfo ->getMeeting ();
@@ -68,6 +68,8 @@ public function testGetMeetingInfoResponseContent()
6868
6969 public function testMeetingAttendeeContent ()
7070 {
71+ $ this ->assertCount (4 , $ this ->meetingInfo ->getMeeting ()->getAttendees ());
72+
7173 $ anAttendee = $ this ->meetingInfo ->getMeeting ()->getAttendees ()[1 ];
7274
7375 $ this ->assertEquals ('xi7y7gpmyq1g ' , $ anAttendee ->getUserId ());
@@ -78,7 +80,6 @@ public function testMeetingAttendeeContent()
7880 $ this ->assertEquals (true , $ anAttendee ->hasJoinedVoice ());
7981 $ this ->assertEquals (false , $ anAttendee ->hasVideo ());
8082 $ this ->assertEquals ('FLASH ' , $ anAttendee ->getClientType ());
81- $ this ->assertCount (2 , $ this ->meetingInfo ->getMeeting ()->getAttendees ());
8283
8384 $ customData = $ anAttendee ->getCustomData ();
8485 $ this ->assertEquals (3 , sizeof ($ customData ));
@@ -87,6 +88,36 @@ public function testMeetingAttendeeContent()
8788 $ this ->assertEquals ('a:focus{color:#0181eb} ' , $ customData ['customStyle ' ]);
8889 }
8990
91+ public function testMeetingModerators (): void
92+ {
93+ $ moderators = $ this ->meetingInfo ->getMeeting ()->getModerators ();
94+
95+ $ this ->assertCount (2 , $ moderators );
96+
97+ $ firstModerator = $ moderators [0 ];
98+ $ this ->assertEquals ('Ernie Abernathy ' , $ firstModerator ->getFullName ());
99+ $ this ->assertEquals ('MODERATOR ' , $ firstModerator ->getRole ());
100+
101+ $ secondModerator = $ moderators [1 ];
102+ $ this ->assertEquals ('Barrett Kutch ' , $ secondModerator ->getFullName ());
103+ $ this ->assertEquals ('MODERATOR ' , $ secondModerator ->getRole ());
104+ }
105+
106+ public function testMeetingViewers (): void
107+ {
108+ $ viewers = $ this ->meetingInfo ->getMeeting ()->getViewers ();
109+
110+ $ this ->assertCount (2 , $ viewers );
111+
112+ $ firstViewer = $ viewers [0 ];
113+ $ this ->assertEquals ('Peter Parker ' , $ firstViewer ->getFullName ());
114+ $ this ->assertEquals ('VIEWER ' , $ firstViewer ->getRole ());
115+
116+ $ secondViewer = $ viewers [1 ];
117+ $ this ->assertEquals ('Bruce Wayne ' , $ secondViewer ->getFullName ());
118+ $ this ->assertEquals ('VIEWER ' , $ secondViewer ->getRole ());
119+ }
120+
90121 public function testGetMeetingInfoResponseTypes ()
91122 {
92123 $ info = $ this ->meetingInfo ->getMeeting ();
0 commit comments