Exemplo n.º 1
0
 /**
  * @depends testCreateMeeting
  */
 public function testUpdateMeeting(Meeting $meeting)
 {
     $modifiedSubject = 'test modified';
     $meeting->setSubject($modifiedSubject);
     $meeting->setConferenceCallInfo(Meeting::CONFERENCE_CALL_HYBRID);
     $this->meetingService->updateMeeting($meeting);
     $actualMeeting = $this->meetingService->getMeeting($meeting->getMeetingId());
     $this->assertAttributeContains($modifiedSubject, 'subject', $actualMeeting);
     return $meeting;
 }
Exemplo n.º 2
0
 /**
  * @dataProvider updateMeetingProvider
  */
 public function testUpdateMeeting($meeting)
 {
     $client = $this->getMockBuilder('Client')->setMethods(array('sendRequest'))->getMock();
     $client->method('sendRequest');
     $client->expects($this->once())->method('sendRequest')->with($this->equalTo('PUT'));
     $meetingService = new MeetingService($client);
     $meetingService->updateMeeting($meeting);
 }