Sanpi\Behatch\Context\TableContext::iShouldSeeColumnsInTheTable PHP Метод

iShouldSeeColumnsInTheTable() публичный Метод

Checks that the specified table contains the given number of columns
public iShouldSeeColumnsInTheTable ( $count, $table )
    public function iShouldSeeColumnsInTheTable($count, $table)
    {
        $columnsSelector = "{$table} thead tr th";
        $columns = $this->getSession()->getPage()->findAll('css', $columnsSelector);
        $this->assertEquals($count, count($columns));
    }