コード例 #1
0
 /**
  * @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()]);
 }
コード例 #2
0
 function it_opens_an_update_page(UpdatePageInterface $updatePage, TaxCategoryInterface $taxCategory)
 {
     $taxCategory->getId()->willReturn(1);
     $updatePage->open(['id' => 1])->shouldBeCalled();
     $this->iWantToModifyTaxCategory($taxCategory);
 }