/** * @Then /^the ("[^"]+" taxon) should appear in the registry$/ */ public function theTaxonShouldAppearInTheRegistry(TaxonInterface $taxon) { $this->updatePage->open(['id' => $taxon->getId()]); Assert::true($this->updatePage->hasResourceValues(['code' => $taxon->getCode()]), sprintf('Taxon %s should be in the registry.', $taxon->getName())); }
/** * @Then /^the slug of the ("[^"]+" taxon) should(?:| still) be "([^"]+)"$/ */ public function productSlugShouldBe(TaxonInterface $taxon, $slug) { $this->updatePage->open(['id' => $taxon->getId()]); Assert::true($this->updatePage->hasResourceValues(['slug' => $slug]), sprintf('Taxon\'s slug should be %s.', $slug)); }