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