本文整理汇总了PHP中SapphireTest::tearDownOnce方法的典型用法代码示例。如果您正苦于以下问题:PHP SapphireTest::tearDownOnce方法的具体用法?PHP SapphireTest::tearDownOnce怎么用?PHP SapphireTest::tearDownOnce使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SapphireTest
的用法示例。
在下文中一共展示了SapphireTest::tearDownOnce方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDownOnce
public function tearDownOnce()
{
parent::tearDownOnce();
Fluent::set_persist_locale(null);
self::kill_temp_db();
self::create_temp_db();
$this->resetDBSchema(true);
Config::inst()->update('Cookie', 'report_errors', false);
}
示例2: tearDownOnce
/**
* After executing the message queue tests, restore the original queue interfaces.
* @return void
*/
function tearDownOnce()
{
// Remove any queue definitions that are set up by tests. Currently only 'default' is used.
MessageQueue::remove_interface("default");
// Restore each interface.
foreach (self::$saved_interfaces as $name => $def) {
MessageQueue::add_interface($name, $def);
}
parent::tearDownOnce();
}
示例3: tearDownOnce
public function tearDownOnce()
{
DataObject::remove_extension('SiteTree', 'SolrIndexable');
parent::tearDownOnce();
}
示例4: tearDownOnce
public function tearDownOnce()
{
parent::tearDownOnce();
// Reset the API name in case there are user tests relying on it
HMACRestfulAuthenticator::setApiName($this->oldApiName);
}
开发者ID:helpfulrobot,项目名称:sheerwater-ss-hmac-restful-authenticator,代码行数:6,代码来源:HMACRestfulAuthenticatorTest.php
示例5: tearDownOnce
/**
* Remove the temp copies of the templates we created.
* @return void
*/
function tearDownOnce()
{
parent::tearDownOnce();
$this->delete_directory(Director::baseFolder() . "/assets/dynamic_templates/tmp__TemplateNoManifest");
$this->delete_directory(Director::baseFolder() . "/assets/dynamic_templates/tmp__TemplateWithManifest");
}
示例6: tearDownOnce
public function tearDownOnce()
{
Injector::unnest();
parent::tearDownOnce();
}
示例7: tearDownOnce
/**
* Tear down the test when we're done
*
* @return void
* @author Andrew Lowther <andrew.lowther@mademedia.co.uk>
*/
public function tearDownOnce()
{
Config::inst()->update('Director', 'environment_type', $this->orig_env_type);
parent::tearDownOnce();
}
示例8: tearDownOnce
/**
* FulltextSearchable::enable() leaves behind remains that don't get cleaned up
* properly at the end of the test. This becomes apparent when a later test tries to
* ALTER TABLE File and add fulltext indexes with the InnoDB table type.
*/
public function tearDownOnce()
{
parent::tearDownOnce();
Config::inst()->update('File', 'create_table_options', array('MySQLDatabase' => 'ENGINE=InnoDB'));
File::remove_extension('FulltextSearchable');
}
开发者ID:helpfulrobot,项目名称:comperio-silverstripe-cms,代码行数:11,代码来源:ContentControllerSearchExtensionTest.php
示例9: tearDownOnce
public function tearDownOnce()
{
parent::tearDownOnce();
Config::unnest();
}
示例10: tearDownOnce
public function tearDownOnce()
{
parent::tearDownOnce();
Fluent::set_persist_locale(null);
}