Sylius\Behat\Page\Admin\Taxon\CreatePageInterface::countTaxonsByName PHP Method

countTaxonsByName() public method

public countTaxonsByName ( string $name ) : integer
$name string
return integer
    public function countTaxonsByName($name);

Usage Example

 /**
  * @Then I should see the taxon named :name in the list
  */
 public function iShouldSeeTheTaxonNamedInTheList($name)
 {
     Assert::eq(1, $this->createPage->countTaxonsByName($name), sprintf('Taxon %s does not exist or multiple taxons with this name exist.', $name));
 }