/**
  * @Then /^(this tax category) name should be "([^"]+)"$/
  * @Then /^(this tax category) should still be named "([^"]+)"$/
  */
 public function thisTaxCategoryNameShouldBe(TaxCategoryInterface $taxCategory, $taxCategoryName)
 {
     $this->indexPage->open();
     Assert::true($this->indexPage->isSingleResourceOnPage(['code' => $taxCategory->getCode(), 'name' => $taxCategoryName]), sprintf('Tax category name %s was not assigned properly.', $taxCategoryName));
 }
 function resource_has_incorrectly_filled_fields_after_edition(IndexPageInterface $indexPage, TaxCategoryInterface $taxCategory)
 {
     $indexPage->open()->shouldBeCalled();
     $indexPage->isResourceOnPage(['code' => 'food_and_beverage', 'name' => 'Food and Beverage'])->willReturn(false);
     $taxCategory->getCode()->willReturn('food_and_beverage');
     $this->shouldThrow(new \InvalidArgumentException('Tax category name Food and Beverage was not assigned properly.'))->during('thisTaxCategoryNameShouldBe', [$taxCategory, 'Food and Beverage']);
 }