/** * @When I delete taxon named :name */ public function iDeleteTaxonNamed($name) { $this->createPage->open(); $this->createPage->deleteTaxonOnPageByName($name); }
/** * @Then the first taxon on the list should be :taxon */ public function theFirstTaxonOnTheListShouldBe(TaxonInterface $taxon) { $this->createPage->open(); Assert::same($this->createPage->getLeafNameFromPosition(0), $taxon->getName(), sprintf('Expected %s as a first taxon, but got %s.', $taxon->getName(), $this->createPage->getLeafNameFromPosition(0))); }