_generated\WebGuyActions::canSeeNumRecords PHP Method

canSeeNumRecords() public method

Asserts that the given number of records were found in the database. php seeNumRecords(1, 'users', ['name' => 'davert']) ?>
See also: Codeception\Module\Db::seeNumRecords()
public canSeeNumRecords ( integer $expectedNumber, string $table, array $criteria = null )
$expectedNumber integer Expected number
$table string Table name
$criteria array Search criteria [Optional] Conditional Assertion: Test won't be stopped on fail
    public function canSeeNumRecords($expectedNumber, $table, $criteria = null)
    {
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeNumRecords', func_get_args()));
    }
WebGuyActions