예제 #1
0
 public function testUnHold()
 {
     $this->orderRepositoryMock->expects($this->once())->method('get')->with(123)->willReturn($this->orderMock);
     $this->orderRepositoryMock->expects($this->once())->method('save')->with($this->orderMock)->willReturn($this->orderMock);
     $this->orderMock->expects($this->once())->method('unHold')->willReturn($this->orderMock);
     $this->assertTrue($this->orderService->unHold(123));
 }