getTestEnvironment()); self::updateDatabase(); $trackerUpdater = StaticContainer::get('Piwik\Plugins\CustomJsTracker\TrackerUpdater'); $trackerUpdater->update(); // for proper geolocation LocationProvider::setCurrentProvider(Php::ID); IPAnonymizer::deactivate(); Fixture::createWebsite('2012-02-02 00:00:00'); } public function performSetUp($setupEnvironmentOnly = false) { $this->extraTestEnvVars = array( 'loadRealTranslations' => 1, ); $this->extraPluginsToLoad = array( 'CustomJsTracker', 'ExampleTracker', ); parent::performSetUp($setupEnvironmentOnly); $this->testEnvironment->overlayUrl = UITestFixture::getLocalTestSiteUrl(); UITestFixture::createOverlayTestSite($idSite = 1); $this->testEnvironment->tokenAuth = self::getTokenAuth(); $this->testEnvironment->pluginsToLoad = $this->extraPluginsToLoad; $this->testEnvironment->save(); } }