本文整理汇总了PHP中FunctionalTest::setUpOnce方法的典型用法代码示例。如果您正苦于以下问题:PHP FunctionalTest::setUpOnce方法的具体用法?PHP FunctionalTest::setUpOnce怎么用?PHP FunctionalTest::setUpOnce使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FunctionalTest
的用法示例。
在下文中一共展示了FunctionalTest::setUpOnce方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUpOnce
public function setUpOnce()
{
if (class_exists('Phockito')) {
Phockito::include_hamcrest();
}
parent::setUpOnce();
}
示例2: setUpOnce
function setUpOnce()
{
// HACK Postgres doesn't refresh TSearch indexes when the schema changes after CREATE TABLE
if (is_a(DB::getConn(), 'PostgreSQLDatabase')) {
self::kill_temp_db();
}
parent::setUpOnce();
}
示例3: setUpOnce
function setUpOnce() {
// HACK Postgres doesn't refresh TSearch indexes when the schema changes after CREATE TABLE
// MySQL will need a different table type
self::kill_temp_db();
FulltextSearchable::enable();
self::create_temp_db();
$this->resetDBSchema(true);
parent::setUpOnce();
}
示例4: setUpOnce
public function setUpOnce()
{
if (!ShoppingCart_Controller::has_extension('ShoppingCartAjax')) {
ShoppingCart_Controller::add_extension('ShoppingCartAjax');
}
if (!VariationForm::has_extension('ShoppingCartAjax')) {
VariationForm::add_extension('ShoppingCartAjax');
}
if (!Controller::has_extension('AjaxControllerExtension')) {
Controller::add_extension('AjaxControllerExtension');
}
parent::setUpOnce();
}
示例5: setUpOnce
function setUpOnce()
{
parent::setUpOnce();
$this->origEnabled = DocumentationService::automatic_registration_enabled();
DocumentationService::set_automatic_registration(false);
$this->origModules = DocumentationService::get_registered_modules();
$this->origLinkBase = DocumentationViewer::get_link_base();
DocumentationViewer::set_link_base('dev/docs/');
foreach ($this->origModules as $module) {
DocumentationService::unregister($module->getModuleFolder());
}
// We set 3.0 as current, and test most assertions against 2.4 - to avoid 'current' rewriting issues
DocumentationService::register("DocumentationViewerTests", BASE_PATH . "/sapphiredocs/tests/docs/", '2.4');
DocumentationService::register("DocumentationViewerTests", BASE_PATH . "/sapphiredocs/tests/docs-2/", '2.3');
DocumentationService::register("DocumentationViewerTests", BASE_PATH . "/sapphiredocs/tests/docs-3/", '3.0');
}
示例6: setUpOnce
public function setUpOnce()
{
parent::setUpOnce();
// clear session
ShoppingCart::singleton()->clear();
}
示例7: setUpOnce
public function setUpOnce()
{
parent::setUpOnce();
$this->savedNewsweights = NewsPage::get_weights();
}
示例8: setUpOnce
public function setUpOnce()
{
parent::setUpOnce();
$this->savedNewsweights = NewsPage::get_weights();
NewsPage::set_weights(array('Normal', 'Teaser', 'Headline'));
}