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

countTaxons() public method

public countTaxons ( ) : integer
return integer
    public function countTaxons();

Usage Example

 /**
  * @Then /^I should see (\d+) taxons on the list$/
  */
 public function iShouldSeeTaxonsInTheList($number)
 {
     $taxonsOnPage = $this->createPage->countTaxons();
     Assert::eq($number, $taxonsOnPage, sprintf('On list should be %d taxons but get %d.', $number, $taxonsOnPage));
 }