Ejemplo n.º 1
0
 /**
  * @return ShipmentGatewayInterface|Mockery\Mock
  */
 public function getShipmentGateway()
 {
     $shipmentRate = $this->dummyData->getShipmentRate(225);
     $shipmentGateway = $this->getMockeryMock(ShipmentGatewayInterface::class);
     $shipmentGateway->shouldReceive('getRates')->andReturn([$shipmentRate]);
     return $shipmentGateway;
 }
Ejemplo n.º 2
0
 /**
  * @param string $shipmentRateExternalId
  * @return ShipmentRate
  */
 public function getShipmentRateByExternalId($shipmentRateExternalId)
 {
     $dummyData = new DummyData();
     $shipmentRate = $dummyData->getShipmentRate(225);
     $shipmentRate->setDeliveryDays(7);
     $shipmentRate->setShipmentExternalId($shipmentRateExternalId);
     return $shipmentRate;
 }