當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。