function DomainTokenTest::setUp in Domain Access 7.3
On setup, install our module and create a default domain.
Parameters
$list: An optional array of modules to enable.
Overrides DomainTestCase::setUp
File
- tests/
domain.test, line 1015 - Simpletest for Domain Access.
Class
Code
function setUp($list = array()) {
$list[] = 'domain_test';
parent::setUp($list);
// Build the {domain} table specifically for this test run.
// Note the the base test already created some domains.
db_query("TRUNCATE {domain}");
db_query("TRUNCATE {domain_export}");
// Create dummy domains. We want to use example.com for reliable token
// testing.
$this->domains = $this
->domainCreateDomains(array(
'one',
'two',
'three',
), 'example.com');
}