當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SapphireTest::tearDownOnce方法代碼示例

本文整理匯總了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);
 }
開發者ID:Digitweaks,項目名稱:silverstripe-fluent,代碼行數:9,代碼來源:FluentTest.php

示例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();
 }
開發者ID:helpfulrobot,項目名稱:silverstripe-messagequeue,代碼行數:14,代碼來源:MessageQueueTest.php

示例3: tearDownOnce

 public function tearDownOnce()
 {
     DataObject::remove_extension('SiteTree', 'SolrIndexable');
     parent::tearDownOnce();
 }
開發者ID:helpfulrobot,項目名稱:silverstripe-solr,代碼行數:5,代碼來源:SolrIndexingTest.php

示例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");
 }
開發者ID:nyeholt,項目名稱:silverstripe-dynamictemplate,代碼行數:10,代碼來源:DynamicTemplateTest.php

示例6: tearDownOnce

 public function tearDownOnce()
 {
     Injector::unnest();
     parent::tearDownOnce();
 }
開發者ID:helpfulrobot,項目名稱:ntb-silverstripe-website-parsing,代碼行數:5,代碼來源:WebsiteParserTest.php

示例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();
 }
開發者ID:helpfulrobot,項目名稱:andrewlowther-mediamanager,代碼行數:11,代碼來源:CloudinarySimpleImageTest.php

示例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();
 }
開發者ID:helpfulrobot,項目名稱:willmorgan-silverstripe-cropperfield,代碼行數:5,代碼來源:TestCase.php

示例10: tearDownOnce

 public function tearDownOnce()
 {
     parent::tearDownOnce();
     Fluent::set_persist_locale(null);
 }
開發者ID:CodeFade,項目名稱:silverstripe-fluent,代碼行數:5,代碼來源:FluentTest.php


注:本文中的SapphireTest::tearDownOnce方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。