public function testLoadsReservation() { $referenceNumber = 'rn'; $reservationView = new ReservationView(); $this->page->expects($this->once())->method('GetReferenceNumber')->will($this->returnValue($referenceNumber)); $this->reservationsService->expects($this->once())->method('LoadByReferenceNumber')->with($this->equalTo($referenceNumber), $this->equalTo($this->fakeUser))->will($this->returnValue($reservationView)); $this->page->expects($this->once())->method('SetReservationJson')->with($this->equalTo($reservationView)); $this->presenter->ProcessDataRequest('load'); }
public function ProcessDataRequest($dataRequest) { $this->presenter->ProcessDataRequest($dataRequest); }