public function testUpdatesReservationAttribute()
 {
     $referenceNumber = 'rn';
     $attrId = 'attid';
     $attrValue = 'val';
     $this->page->expects($this->once())->method('GetReferenceNumber')->will($this->returnValue($referenceNumber));
     $this->page->expects($this->once())->method('GetAttributeId')->will($this->returnValue($attrId));
     $this->page->expects($this->once())->method('GetAttributeValue')->will($this->returnValue($attrValue));
     $this->reservationsService->expects($this->once())->method('UpdateAttribute')->with($this->equalTo($referenceNumber), $this->equalTo($attrId), $this->equalTo($attrValue), $this->equalTo($this->fakeUser))->will($this->returnValue(array()));
     $this->presenter->UpdateAttribute();
 }
 public function GetReservationParticipants($reservationRefNum)
 {
     $series = $this->presenter->SetParticipants($reservationRefNum);
     return $series;
 }
예제 #3
0
 public function ProcessDataRequest($dataRequest)
 {
     $this->presenter->ProcessDataRequest($dataRequest);
 }