/** * @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; }
/** * @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); }