Ejemplo n.º 1
0
 /**
  * @depends testUpdateMeeting
  */
 public function testDeleteMeeting(Meeting $meeting)
 {
     $meetingId = $meeting->getMeetingId();
     $this->meetingService->deleteMeeting($meetingId);
     $this->setExpectedException('\\GuzzleHttp\\Exception\\ClientException');
     $this->meetingService->getMeeting($meetingId);
 }
Ejemplo n.º 2
0
 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);
 }