本文整理匯總了PHP中Piwik\Tests\Framework\Fixture::setUp方法的典型用法代碼示例。如果您正苦於以下問題:PHP Fixture::setUp方法的具體用法?PHP Fixture::setUp怎麽用?PHP Fixture::setUp使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Piwik\Tests\Framework\Fixture
的用法示例。
在下文中一共展示了Fixture::setUp方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setUp
public function setUp()
{
parent::setUp();
foreach (self::$dataToInsert as $table => $rows) {
self::insertRowData($table, $rows);
}
}
示例2: setUp
public function setUp()
{
parent::setUp();
$this->january = Date::factory('2015-01-01');
$this->february = Date::factory('2015-02-01');
$this->insertOutdatedArchives($this->january);
$this->insertOutdatedArchives($this->february);
}
示例3: setUp
public function setUp()
{
parent::setUp();
self::updateDatabase();
self::createWebsite("2012-01-01 00:00:00");
$fakeTasks = array('Piwik\\Plugins\\ExamplePlugin\\Tasks.myTask' => Date::factory("2012-01-02 02:33:45")->getTimestampUTC(), 'Piwik\\Plugins\\CoreUpdater\\Tasks.sendNotificationIfUpdateAvailable' => Date::factory("2012-03-04 13:45:56")->getTimestampUTC(), 'Piwik\\Plugins\\CorePluginsAdmin\\Tasks.sendNotificationIfUpdatesAvailable' => Date::factory("2012-02-12 15:12:10")->getTimestampUTC());
Option::set('TaskScheduler.timetable', serialize($fakeTasks));
}
示例4: setUp
/** Adds data to Piwik. Creates sites, tracks visits, imports log files, etc. */
public function setUp()
{
Log::warning('Piwik\\Tests\\Fixture is deprecated, use \\Piwik\\Tests\\Framework\\Fixture instead');
parent::setUp();
}