コード例 #1
0
ファイル: ShippingContext.php プロジェクト: ahmadrabie/Sylius
 /**
  * @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([]);
 }
コード例 #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, []);
 }
コード例 #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]);
 }