本文整理汇总了PHP中Piwik\Tests\Framework\TestCase\IntegrationTestCase类的典型用法代码示例。如果您正苦于以下问题:PHP IntegrationTestCase类的具体用法?PHP IntegrationTestCase怎么用?PHP IntegrationTestCase使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了IntegrationTestCase类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
public function setUp()
{
parent::setUp();
if (!Fixture::siteCreated(1)) {
Fixture::createWebsite('2014-01-01 00:00:00');
}
}
示例2: tearDown
public function tearDown()
{
parent::tearDown();
Log::unsetInstance();
@unlink(self::getLogFileLocation());
Error::$debugBacktraceForTests = ExceptionHandler::$debugBacktraceForTests = null;
}
示例3: 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'));
}
示例4: setUp
public function setUp()
{
if (!self::isRedisAvailable()) {
$this->markTestSkipped('Redis extension is not installed, skipping test');
}
parent::setUp();
}
示例5: setUp
public function setUp()
{
parent::setUp();
Plugin\Manager::getInstance()->activatePlugin('MobileAppMeasurable');
// setup the access layer
FakeAccess::$superUser = true;
}
示例6: 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);
}
示例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));
}
示例8: setUp
public function setUp()
{
parent::setUp();
$this->siteUrls = new SiteUrls();
$this->api = API::getInstance();
SiteUrls::clearSitesCache();
}
示例9: setUp
public function setUp()
{
parent::setUp();
$application = new Console();
$application->setAutoExit(false);
$this->applicationTester = new ApplicationTester($application);
}
示例10: setUp
public function setUp()
{
parent::setUp();
// setup the access layer
FakeAccess::$superUser = true;
Fixture::createWebsite('2015-01-01 00:00:00');
}
示例11: setUp
public function setUp()
{
parent::setUp();
$this->logDeleter = new LogDeleter(new RawLogDao(), new LogTablesProvider());
$this->logInserter = new LogHelper();
$this->insertTestData();
}
示例12: tearDown
public function tearDown()
{
Log::unsetInstance();
@unlink(self::getLogFileLocation());
Log::$debugBacktraceForTests = null;
parent::tearDown();
}
示例13: setUp
public function setUp()
{
parent::setUp();
/** @var PluginManager $manager */
$manager = StaticContainer::get('Piwik\\Plugin\\Manager');
$manager->loadPlugins(array('Events', 'Contents'));
}
示例14: 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);
}
示例15: setUp
public function setUp()
{
parent::setUp();
$this->idSite = Fixture::createWebsite('2012-01-01 00:00:00');
$this->formatter = new SegmentFormatter(new SegmentList());
Translate::loadAllTranslations();
}