作者:ep12
项目:plugin-CustomDimension
public function setUp()
{
parent::setUp();
if (!Fixture::siteCreated(1)) {
Fixture::createWebsite('2014-01-01 00:00:00');
}
}
作者:TensorWrenchOS
项目:piwi
public function tearDown()
{
parent::tearDown();
Log::unsetInstance();
@unlink(self::getLogFileLocation());
Error::$debugBacktraceForTests = ExceptionHandler::$debugBacktraceForTests = null;
}
作者:FluentDevelopmen
项目:piwi
public function setUp()
{
parent::setUp();
$this->archiveTableDao = self::$fixture->piwikEnvironment->getContainer()->get('Piwik\\DataAccess\\ArchiveTableDao');
ArchiveTableCreator::getBlobTable(Date::factory('2015-01-01'));
ArchiveTableCreator::getNumericTable(Date::factory('2015-01-01'));
}
作者:ruchitram
项目:plugin-QueuedTrackin
public function setUp()
{
if (!self::isRedisAvailable()) {
$this->markTestSkipped('Redis extension is not installed, skipping test');
}
parent::setUp();
}
作者:ahdinosau
项目:analytics.dinosaur.i
public function setUp()
{
parent::setUp();
Plugin\Manager::getInstance()->activatePlugin('MobileAppMeasurable');
// setup the access layer
FakeAccess::$superUser = true;
}
作者:piwi
项目:piwi
public function setUp()
{
parent::setUp();
$settings = new GlobalSettingsProvider($this->configPath('global.ini.php'), $this->configPath('config.ini.php'), $this->configPath('common.config.ini.php'));
$this->configReader = new ConfigReader($settings, new IniReader());
FakeAccess::clearAccess($superUser = true);
}
作者:hongqua
项目:piwi
public function setUp()
{
parent::setUp();
FakeAccess::$superUser = true;
$idSite = Fixture::createWebsite('2014-01-01 00:00:00');
$this->builder = $this->makeBuilder(array('method' => 'MultiSites_getAll', 'idSite' => $idSite));
}
作者:dev-bobson
项目:piwi
public function setUp()
{
parent::setUp();
$this->siteUrls = new SiteUrls();
$this->api = API::getInstance();
SiteUrls::clearSitesCache();
}
作者:JoeHor
项目:piwi
public function setUp()
{
parent::setUp();
$application = new Console();
$application->setAutoExit(false);
$this->applicationTester = new ApplicationTester($application);
}
作者:mgou-ne
项目:piwi
public function setUp()
{
parent::setUp();
// setup the access layer
FakeAccess::$superUser = true;
Fixture::createWebsite('2015-01-01 00:00:00');
}
作者:diosmosi
项目:piwi
public function setUp()
{
parent::setUp();
$this->logDeleter = new LogDeleter(new RawLogDao(), new LogTablesProvider());
$this->logInserter = new LogHelper();
$this->insertTestData();
}
作者:CaptainShar
项目:SSAD_Projec
public function tearDown()
{
Log::unsetInstance();
@unlink(self::getLogFileLocation());
Log::$debugBacktraceForTests = null;
parent::tearDown();
}
作者:FluentDevelopmen
项目:piwi
public function setUp()
{
parent::setUp();
/** @var PluginManager $manager */
$manager = StaticContainer::get('Piwik\\Plugin\\Manager');
$manager->loadPlugins(array('Events', 'Contents'));
}
作者:ep12
项目:plugin-CustomDimension
public function setUp()
{
parent::setUp();
$this->id1 = $this->createIndex(CustomDimensions::SCOPE_VISIT, $index = 1, $active = true);
$this->id2 = $this->createIndex(CustomDimensions::SCOPE_VISIT, $index = 2, $active = true);
$this->id3 = $this->createIndex(CustomDimensions::SCOPE_ACTION, $index = 1, $active = false);
}
作者:dorelljame
项目:piwi
public function setUp()
{
parent::setUp();
$this->idSite = Fixture::createWebsite('2012-01-01 00:00:00');
$this->formatter = new SegmentFormatter(new SegmentList());
Translate::loadAllTranslations();
}
作者:FluentDevelopmen
项目:piwi
public function setUp()
{
parent::setUp();
Manager::getInstance()->unloadPlugins();
Manager::getInstance()->doNotLoadAlwaysActivatedPlugins();
$this->dimension = new FakeConversionDimension();
}
作者:ep12
项目:plugin-CustomDimension
public function tearDown()
{
$this->logVisit->uninstall();
$this->logAction->uninstall();
$this->logConverison->uninstall();
parent::tearDown();
}
作者:diosmosi
项目:piwi
public function tearDown()
{
if (file_exists($this->dir . self::NOT_EXISTING_FILE)) {
unlink($this->dir . self::NOT_EXISTING_FILE);
}
parent::tearDown();
}
作者:dorelljame
项目:piwi
public function tearDown()
{
if ($this->assetManager !== null) {
$this->assetManager->removeMergedAssets();
}
parent::tearDown();
}
作者:FluentDevelopmen
项目:piwi
public function setUp()
{
parent::setUp();
// setup the access layer
FakeAccess::$superUser = true;
ArchiveTableCreator::$tablesAlreadyInstalled = null;
}