| @@ 83-94 (lines=12) @@ | ||
| 80 | * when: voidIsCalled |
|
| 81 | * should: callUpsShippingVoidRequestMethod. |
|
| 82 | */ |
|
| 83 | public function testShippingVoidMethodIsCalled() |
|
| 84 | { |
|
| 85 | $shipmentDataString = 'shippmentDataString'; |
|
| 86 | $this->shippingMock |
|
| 87 | ->expects($this->once()) |
|
| 88 | ->method('void') |
|
| 89 | ->with($shipmentDataString); |
|
| 90 | ||
| 91 | $sut = new ShippingWrapper($this->shippingMock); |
|
| 92 | ||
| 93 | $sut->void($shipmentDataString); |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * when: recoverLabelIsCalled |
|
| @@ 100-111 (lines=12) @@ | ||
| 97 | * when: recoverLabelIsCalled |
|
| 98 | * should: callUpsShippingRecoverLabelRequestMethod. |
|
| 99 | */ |
|
| 100 | public function testShippingRecoverLabelMethodIsCalled() |
|
| 101 | { |
|
| 102 | $shipmentDataString = 'shipmentDataString'; |
|
| 103 | $this->shippingMock |
|
| 104 | ->expects($this->once()) |
|
| 105 | ->method('recoverLabel') |
|
| 106 | ->with($shipmentDataString); |
|
| 107 | ||
| 108 | $sut = new ShippingWrapper($this->shippingMock); |
|
| 109 | ||
| 110 | $sut->recoverLabel($shipmentDataString); |
|
| 111 | } |
|
| 112 | } |
|
| 113 | ||