/** * @Given I want to modify a tax category :taxCategory * @Given /^I want to modify (this tax category)$/ */ public function iWantToModifyTaxCategory(TaxCategoryInterface $taxCategory) { $this->updatePage->open(['id' => $taxCategory->getId()]); }
function it_opens_an_update_page(UpdatePageInterface $updatePage, TaxCategoryInterface $taxCategory) { $taxCategory->getId()->willReturn(1); $updatePage->open(['id' => 1])->shouldBeCalled(); $this->iWantToModifyTaxCategory($taxCategory); }