function it_deletes_given_shipping_method(ShowPageInterface $shippingMethodShowPage, ShippingMethodInterface $shippingMethod)
 {
     $shippingMethod->getId()->willReturn(5);
     $shippingMethodShowPage->open(['id' => 5])->shouldBeCalled();
     $shippingMethodShowPage->pressDelete()->shouldBeCalled();
     $this->iTryToDeleteShippingMethod($shippingMethod);
 }
 /**
  * @When /^I try to delete ("[^"]+" shipping method)$/
  */
 public function iTryToDeleteShippingMethod(ShippingMethodInterface $shippingMethod)
 {
     $this->sharedStorage->set('shipping_method', $shippingMethod);
     $this->shippingMethodShowPage->open(['id' => $shippingMethod->getId()]);
     $this->shippingMethodShowPage->pressDelete();
 }