function setUp()
 {
     parent::setUp();
     $this->host = $_SERVER['HTTP_HOST'];
     $_SERVER['HTTP_HOST'] = 'test1';
     $GLOBALS['_MAX']['CONF']['webpath']['delivery'] = OX_getHostName();
     if (file_exists(MAX_PATH . '/var/' . OX_getHostName() . '.conf.php')) {
         unlink(MAX_PATH . '/var/' . OX_getHostName() . '.conf.php');
     }
     // Tests in this class need to use the "real" configuration
     // file writing method, not the one reserved for the test
     // environment...
     $GLOBALS['override_TEST_ENVIRONMENT_RUNNING'] = true;
     $this->createConfigIfNotExists();
 }
 function setUp()
 {
     parent::setUp();
     $this->initDatabase(108, array('adstats', 'adviews', 'adclicks', 'data_summary_ad_hourly', 'data_intermediate_ad'));
     $this->configPath = MAX_PATH . '/var/config.inc.php';
 }
 function setUp()
 {
     parent::setUp();
     $this->assertTrue($this->initDatabase(606, array('banners', 'ad_zone_assoc')));
 }
 function setUp()
 {
     parent::setUp();
     $this->assertTrue($this->initDatabase(604, array('preferences', 'account_preference_assoc')) . 'failed to created version 604 of campaigns of preference table and account_preference_assoc table');
 }
 function setUp()
 {
     parent::setUp();
 }
 function setUp()
 {
     parent::setUp();
     $this->assertTrue($this->initDatabase(608, array_values($this->aTables)));
 }
 function setUp()
 {
     parent::setUp();
     $this->assertTrue($this->initDatabase(606, array('preferences')) . 'failed to created version 606 of campaigns of preference table');
 }
 function setUp()
 {
     parent::setUp();
     mkdir(MAX_PATH . '/var/plugins/config', 0777, true);
 }