/** * A method to be run before all tests. */ function setUp() { // Set up the configuration array to have an operation interval // of 60 minutes, and set the timezone to GMT $aConf =& $GLOBALS['_MAX']['CONF']; $aConf['maintenance']['operationInteval'] = 60; OA_setTimeZone('GMT'); //setTimeZoneLocation($aConf['timezone']['location']); // Set up the database handler object $this->oDbh =& OA_DB::singleton(); // Set up the service locator object $this->oServiceLocator =& OA_ServiceLocator::instance(); // Discover the number of operation intervals per week $this->intervalsPerWeek = OX_OperationInterval::operationIntervalsPerWeek(); // This test was written with a ZONE_FORECAST_DEFAULT_ZONE_IMPRESSIONS value of 10 in mind. OA_Dal_Maintenance_Priority::$ZONE_FORECAST_DEFAULT_ZONE_IMPRESSIONS = 10; }