public function testCreateMeeting()
 {
     $meeting = new Meeting();
     $meeting->setSubject('test');
     $meeting->setStartTime(Carbon::now('UTC')->addHour());
     $meeting->setEndTime(Carbon::now('UTC')->addHours(2));
     $meeting->setPasswordRequired(false);
     $meeting->setConferenceCallInfo(Meeting::CONFERENCE_CALL_HYBRID);
     $meeting->setMeetingType(Meeting::TYPE_IMMEDIATE);
     $actualMeeting = $this->meetingService->createMeeting($meeting);
     $this->assertNotNull($actualMeeting);
     $this->assertInstanceOf('\\kenobi883\\GoToMeeting\\Models\\Meeting', $actualMeeting);
     $this->assertObjectHasAttribute('joinUrl', $actualMeeting);
     $this->assertAttributeNotEmpty('joinUrl', $actualMeeting);
     $this->assertObjectHasAttribute('meetingId', $actualMeeting);
     $this->assertAttributeNotEmpty('meetingId', $actualMeeting);
     return $actualMeeting;
 }
 /**
  * @dataProvider createMeetingProvider
  */
 public function testCreateMeeting($meeting, $responseArray)
 {
     $client = $this->getMockBuilder('Client')->setMethods(array('sendRequest'))->getMock();
     $client->method('sendRequest')->will($this->returnValue($responseArray));
     $client->expects($this->once())->method('sendRequest')->with($this->equalTo('POST'));
     $meetingService = new MeetingService($client);
     $actualMeeting = $meetingService->createMeeting($meeting);
     $this->assertNotNull($actualMeeting);
     $this->assertInstanceOf('\\kenobi883\\GoToMeeting\\Models\\Meeting', $actualMeeting);
     $this->assertObjectHasAttribute('joinUrl', $actualMeeting);
 }