当前位置: 首页>>代码示例>>PHP>>正文


PHP IntegrationTestCase::setUp方法代码示例

本文整理汇总了PHP中Piwik\Tests\Framework\TestCase\IntegrationTestCase::setUp方法的典型用法代码示例。如果您正苦于以下问题:PHP IntegrationTestCase::setUp方法的具体用法?PHP IntegrationTestCase::setUp怎么用?PHP IntegrationTestCase::setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Piwik\Tests\Framework\TestCase\IntegrationTestCase的用法示例。


在下文中一共展示了IntegrationTestCase::setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

 public function setUp()
 {
     parent::setUp();
     $this->bulk = new BulkTracking();
     $this->pluginBackup = Plugin\Manager::getInstance()->getLoadedPlugin('BulkTracking');
     Plugin\Manager::getInstance()->addLoadedPlugin('BulkTracking', $this->bulk);
 }
开发者ID:FluentDevelopment,项目名称:piwik,代码行数:7,代码来源:BulkTrackingTestCase.php

示例2: setUp

 public function setUp()
 {
     parent::setUp();
     if (!Fixture::siteCreated(1)) {
         Fixture::createWebsite('2014-01-01 00:00:00');
     }
 }
开发者ID:ep123,项目名称:plugin-CustomDimensions,代码行数:7,代码来源:ExtractionTest.php

示例3: setUp

 public function setUp()
 {
     parent::setUp();
     $application = new Console();
     $application->setAutoExit(false);
     $this->applicationTester = new ApplicationTester($application);
 }
开发者ID:JoeHorn,项目名称:piwik,代码行数:7,代码来源:FixDuplicateActionsTest.php

示例4: setUp

 public function setUp()
 {
     parent::setUp();
     Plugin\Manager::getInstance()->activatePlugin('MobileAppMeasurable');
     // setup the access layer
     FakeAccess::$superUser = true;
 }
开发者ID:ahdinosaur,项目名称:analytics.dinosaur.is,代码行数:7,代码来源:ApiTest.php

示例5: setUp

 public function setUp()
 {
     parent::setUp();
     $this->siteUrls = new SiteUrls();
     $this->api = API::getInstance();
     SiteUrls::clearSitesCache();
 }
开发者ID:dev-bobsong,项目名称:piwik,代码行数:7,代码来源:SiteUrlsTest.php

示例6: setUp

 public function setUp()
 {
     parent::setUp();
     File::reset();
     Url::setHost(false);
     $this->output = new Output('myid');
 }
开发者ID:dorelljames,项目名称:piwik,代码行数:7,代码来源:OutputTest.php

示例7: setUp

 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));
 }
开发者ID:hongquan,项目名称:piwik,代码行数:7,代码来源:RssRendererTest.php

示例8: setUp

 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'));
 }
开发者ID:FluentDevelopment,项目名称:piwik,代码行数:7,代码来源:ArchiveTableDaoTest.php

示例9: setUp

 public function setUp()
 {
     parent::setUp();
     // setup the access layer
     FakeAccess::$superUser = true;
     Fixture::createWebsite('2015-01-01 00:00:00');
 }
开发者ID:mgou-net,项目名称:piwik,代码行数:7,代码来源:ChunksTest.php

示例10: setUp

 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);
 }
开发者ID:piwik,项目名称:piwik,代码行数:7,代码来源:ConfigReaderTest.php

示例11: setUp

 public function setUp()
 {
     parent::setUp();
     $this->logDeleter = new LogDeleter(new RawLogDao(), new LogTablesProvider());
     $this->logInserter = new LogHelper();
     $this->insertTestData();
 }
开发者ID:diosmosis,项目名称:piwik,代码行数:7,代码来源:LogDeleterTest.php

示例12: setUp

 public function setUp()
 {
     parent::setUp();
     Log::unsetInstance();
     @unlink(self::getLogFileLocation());
     Log::$debugBacktraceForTests = "dummy backtrace";
 }
开发者ID:CaptainSharf,项目名称:SSAD_Project,代码行数:7,代码来源:LogTest.php

示例13: setUp

 public function setUp()
 {
     parent::setUp();
     Fixture::createWebsite('2014-01-01 00:00:00');
     $this->tracker = new TestTracker();
     $this->request = $this->buildRequest(array('idsite' => 1));
 }
开发者ID:dorelljames,项目名称:piwik,代码行数:7,代码来源:TrackerTest.php

示例14: setUp

 public function setUp()
 {
     parent::setUp();
     /** @var PluginManager $manager */
     $manager = StaticContainer::get('Piwik\\Plugin\\Manager');
     $manager->loadPlugins(array('Events', 'Contents'));
 }
开发者ID:FluentDevelopment,项目名称:piwik,代码行数:7,代码来源:DimensionMetadataProviderTest.php

示例15: setUp

 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);
 }
开发者ID:ep123,项目名称:plugin-CustomDimensions,代码行数:7,代码来源:DimensionTest.php


注:本文中的Piwik\Tests\Framework\TestCase\IntegrationTestCase::setUp方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。