Codeception\Module\WPDb::_initialize PHP Method

_initialize() public method

Initializes the module.
public _initialize ( Handlebars\Handlebars $handlebars = null, tad\WPBrowser\Generators\Tables $table = null )
$handlebars Handlebars\Handlebars
$table tad\WPBrowser\Generators\Tables
    public function _initialize(Handlebars $handlebars = null, Tables $table = null)
    {
        $this->prepareSqlDumpFile();
        $this->initialize_driver();
        $this->dbh = $this->driver->getDbh();
        // starting with loading dump
        $this->importSqlDumpFile();
        $this->tablePrefix = $this->config['tablePrefix'];
        $this->handlebars = $handlebars ?: new Handlebars();
        $this->tables = $table ?: new Tables();
    }
WPDb