Codeception\Module\WPDb::getSiteDomain PHP Method

getSiteDomain() public method

Returns the site domain inferred from the url set in the config.
public getSiteDomain ( ) : string
return string
    public function getSiteDomain()
    {
        $domain = last(preg_split('~//~', $this->config['url']));
        return $domain;
    }
WPDb