protected function DomainTestCase::domainSetBaseUrl in Domain Access 7.3
Set the global $base_url to a domain.
Required so that POST and other url() requests can be routed properly.
Parameters
$domain: The domain to use as the base url.
2 calls to DomainTestCase::domainSetBaseUrl()
File
- tests/
domain.test, line 125 - Simpletest for Domain Access.
Class
- DomainTestCase
- @file Simpletest for Domain Access.
Code
protected function domainSetBaseUrl($domain) {
$GLOBALS['base_url'] = trim($domain['path'], '/');
}