本文整理匯總了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);
}