src/Sylius/Bundle/WebBundle/Behat/WebContext.php
/**
     * For example: I should see 10 products in that list.
     *
     * @Then /^I should see (\d+) ([^""]*) in (that|the) list$/
     */
For example: I should see 10 products in that list.
For example : I should see 10 products in that list .
public function iShouldSeeThatMuchResourcesInTheList($amount, $type)
    {
        if (1 === count($this->getSession()->getPage()->findAll('css', 'table'))) {
            $this->assertSession()->elementsCount('css', 'table tbody > tr', $amount);
        } else {
            $this->assertSession()->elementsCount('css', sprintf('table#%s tbody > tr', str_replace(' ', '-', $type)), $amount);
        }
    }
public function iShouldSeeThatMuchResourcesInTheList ( $ amount , $ type ) { if ( 1 === count ( $ this -> getSession ( ) -> getPage ( ) -> findAll ( 'css' , 'table' ) ) ) { $ this -> assertSession ( ) -> elementsCount ( 'css' , 'table tbody > tr' , $ amount ) ; } else { $ this -> assertSession ( ) -> elementsCount ( 'css' , sprintf ( 'table#%s tbody > tr' , str_replace ( ' ' , '-' , $ type ) ) , $ amount ) ; } }
For example: I should see 10 products in that list.
For example : I should see 10 products in that list .