当前位置: 首页>>代码示例>>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;未经允许,请勿转载。