@@ -36,7 +36,7 @@ public function setUp()
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 ();
@@ -67,6 +67,8 @@ public function testGetMeetingInfoResponseContent()
6767
6868 public function testMeetingAttendeeContent ()
6969 {
70+ $ this ->assertCount (4 , $ this ->meetingInfo ->getMeeting ()->getAttendees ());
71+
7072 $ anAttendee = $ this ->meetingInfo ->getMeeting ()->getAttendees ()[1 ];
7173
7274 $ this ->assertEquals ('xi7y7gpmyq1g ' , $ anAttendee ->getUserId ());
@@ -77,7 +79,6 @@ public function testMeetingAttendeeContent()
7779 $ this ->assertEquals (true , $ anAttendee ->hasJoinedVoice ());
7880 $ this ->assertEquals (false , $ anAttendee ->hasVideo ());
7981 $ this ->assertEquals ('FLASH ' , $ anAttendee ->getClientType ());
80- $ this ->assertCount (2 , $ this ->meetingInfo ->getMeeting ()->getAttendees ());
8182
8283 $ customData = $ anAttendee ->getCustomData ();
8384 $ this ->assertEquals (3 , sizeof ($ customData ));
@@ -86,6 +87,36 @@ public function testMeetingAttendeeContent()
8687 $ this ->assertEquals ('a:focus{color:#0181eb} ' , $ customData ['customStyle ' ]);
8788 }
8889
90+ public function testMeetingModerators ()
91+ {
92+ $ moderators = $ this ->meetingInfo ->getMeeting ()->getModerators ();
93+
94+ $ this ->assertCount (2 , $ moderators );
95+
96+ $ firstModerator = $ moderators [0 ];
97+ $ this ->assertEquals ('Ernie Abernathy ' , $ firstModerator ->getFullName ());
98+ $ this ->assertEquals ('MODERATOR ' , $ firstModerator ->getRole ());
99+
100+ $ secondModerator = $ moderators [1 ];
101+ $ this ->assertEquals ('Barrett Kutch ' , $ secondModerator ->getFullName ());
102+ $ this ->assertEquals ('MODERATOR ' , $ secondModerator ->getRole ());
103+ }
104+
105+ public function testMeetingViewers ()
106+ {
107+ $ viewers = $ this ->meetingInfo ->getMeeting ()->getViewers ();
108+
109+ $ this ->assertCount (2 , $ viewers );
110+
111+ $ firstViewer = $ viewers [0 ];
112+ $ this ->assertEquals ('Peter Parker ' , $ firstViewer ->getFullName ());
113+ $ this ->assertEquals ('VIEWER ' , $ firstViewer ->getRole ());
114+
115+ $ secondViewer = $ viewers [1 ];
116+ $ this ->assertEquals ('Bruce Wayne ' , $ secondViewer ->getFullName ());
117+ $ this ->assertEquals ('VIEWER ' , $ secondViewer ->getRole ());
118+ }
119+
89120 public function testGetMeetingInfoResponseTypes ()
90121 {
91122 $ info = $ this ->meetingInfo ->getMeeting ();
0 commit comments