Codeception\Module\WPLoader::initialize PHP Method

initialize() protected method

protected initialize ( )
    protected function initialize()
    {
        // let's make sure *Db Module is either not running or properly configured
        $this->ensureDbModuleCompat();
        $this->ensureWPRoot($this->getWpRootFolder());
        // WordPress  will deal with database connection errors
        $this->wpBootstrapFile = dirname(dirname(__DIR__)) . '/includes/bootstrap.php';
        $this->loadWordPress();
    }