/** * @Given /^(shipping method "[^"]+") belongs to ("[^"]+" tax category)$/ */ public function shippingMethodBelongsToTaxCategory(ShippingMethodInterface $shippingMethod, TaxCategoryInterface $taxCategory) { $shippingMethod->setTaxCategory($taxCategory); $this->shippingMethodManager->flush(); }
function it_assigns_product_for_given_tax_category($shippingMethodManager, ShippingMethodInterface $shippingMethod, TaxCategoryInterface $taxCategory) { $shippingMethod->setTaxCategory($taxCategory)->shouldBeCalled(); $shippingMethodManager->flush()->shouldBeCalled(); $this->shippingMethodBelongsToTaxCategory($shippingMethod, $taxCategory); }