/**
  * @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()));
 }
Esempio n. 2
0
 /**
  * @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));
 }