Exemplo n.º 1
0
 /**
  * @Then /^there should be no shipments with ("[^"]+" shipping method) in the registry$/
  */
 public function shipmentShouldNotExistInTheRegistry(ShippingMethodInterface $shippingMethod)
 {
     $shippings = $this->shipmentRepository->findBy(['method' => $shippingMethod]);
     expect($shippings)->toBe([]);
 }
Exemplo n.º 2
0
 /**
  * @Then /^there should be no shipments with ("[^"]+" shipping method) in the registry$/
  */
 public function shipmentShouldNotExistInTheRegistry(ShippingMethodInterface $shippingMethod)
 {
     $shippings = $this->shipmentRepository->findBy(['method' => $shippingMethod]);
     Assert::same($shippings, []);
 }
Exemplo n.º 3
0
 function it_throws_an_exception_if_shipment_still_exist(ShipmentRepositoryInterface $shippingRepository, ShippingMethodInterface $dhlShipmentMethod, ShipmentInterface $shipment)
 {
     $shippingRepository->findBy(['method' => $dhlShipmentMethod])->willReturn([$shipment]);
     $this->shouldThrow(NotEqualException::class)->during('shipmentShouldNotExistInTheRegistry', [$dhlShipmentMethod]);
 }