/** * @depends testUpdateMeeting */ public function testDeleteMeeting(Meeting $meeting) { $meetingId = $meeting->getMeetingId(); $this->meetingService->deleteMeeting($meetingId); $this->setExpectedException('\\GuzzleHttp\\Exception\\ClientException'); $this->meetingService->getMeeting($meetingId); }
public function testDeleteMeeting() { $meetingId = 123456; $client = $this->getMockBuilder('Client')->setMethods(array('sendRequest'))->getMock(); $client->expects($this->once())->method('sendRequest')->with($this->equalTo('DELETE')); $meetingService = new MeetingService($client); $meetingService->deleteMeeting($meetingId); }