public static function setUpBeforeClass() { parent::setUpBeforeClass(); ArchiveTableCreator::getNumericTable(Date::factory('2015-01-01')); ArchiveTableCreator::getNumericTable(Date::factory('2015-02-02')); ArchiveTableCreator::getNumericTable(Date::factory('2015-03-03')); }
public static function setUpBeforeClass() { parent::setUpBeforeClass(); Fixture::createWebsite('2012-01-01 00:00:00'); Fixture::createWebsite('2012-01-01 00:00:00'); Fixture::createWebsite('2012-01-01 00:00:00'); }
public static function setUpBeforeClass() { parent::setUpBeforeClass(); // make sure archiving is initiated so there is data in the archive tables VisitsSummaryAPI::getInstance()->get(self::$fixture->idSite, 'month', '2010-03-01'); VisitsSummaryAPI::getInstance()->get(self::$fixture->idSite, 'month', '2010-03-01', 'browserCode==FF'); VisitsSummaryAPI::getInstance()->get(self::$fixture->idSite, 'month', '2010-03-01', 'daysSinceFirstVisit==2'); }
public function setUp() { self::removeTestConfigFile(); parent::setUp(); }
public function tearDown() { $_SERVER['SCRIPT_NAME'] = $this->oldScriptName; parent::tearDown(); }