_generated\WebGuyActions::haveInDatabase PHP Method

haveInDatabase() public method

Inserts an SQL record into a database. This record will be erased after the test. php haveInDatabase('users', array('name' => 'miles', 'email' => '[email protected]')); ?>
See also: Codeception\Module\Db::haveInDatabase()
public haveInDatabase ( string $table, array $data ) : integer
$table string
$data array
return integer $id
    public function haveInDatabase($table, $data)
    {
        return $this->getScenario()->runStep(new \Codeception\Step\Action('haveInDatabase', func_get_args()));
    }
WebGuyActions