当前位置: 首页>>代码示例>>PHP>>正文


PHP Configure::delete方法代码示例

本文整理汇总了PHP中Configure::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP Configure::delete方法的具体用法?PHP Configure::delete怎么用?PHP Configure::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Configure的用法示例。


在下文中一共展示了Configure::delete方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     Configure::delete('TestMailerConfig');
     unset($this->Mailer);
     ClassRegistry::flush();
     parent::tearDown();
 }
开发者ID:hiromi2424,项目名称:mailer,代码行数:12,代码来源:mailer.test.php

示例2: setUp

 /**
  * SetUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     Configure::delete('Typography.locale');
     Configure::write('App.language', 'eng');
     $this->Typography = new TypographyHelper(new View(null));
 }
开发者ID:ByMyHandsOnly,项目名称:BMHO_Web,代码行数:12,代码来源:TypographyHelperTest.php

示例3: setUp

 public function setUp()
 {
     parent::setUp();
     Configure::delete('Localization');
     $this->Model = ClassRegistry::init('PaymentMethod');
     $this->Model->Behaviors->load('Tools.DecimalInput', ['fields' => ['rel_rate', 'set_rate'], 'output' => true]);
 }
开发者ID:ByMyHandsOnly,项目名称:BMHO_Web,代码行数:7,代码来源:DecimalInputBehaviorTest.php

示例4: setUp

 public function setUp()
 {
     parent::setUp();
     Configure::delete('Localization');
     $this->Model = ClassRegistry::init('PaymentMethod');
     $this->Model->Behaviors->load('Tools.NumberFormat', array('fields' => array('rel_rate', 'set_rate'), 'output' => true));
 }
开发者ID:Jony01,项目名称:LLD,代码行数:7,代码来源:NumberFormatBehaviorTest.php

示例5: setUp

 public function setUp()
 {
     parent::setUp();
     Configure::delete('Ajax');
     $this->Controller = new AjaxComponentTestController(new CakeRequest(), new CakeResponse());
     $this->Controller->constructClasses();
 }
开发者ID:Jony01,项目名称:LLD,代码行数:7,代码来源:AjaxComponentTest.php

示例6: setUp

 /**
  * SetUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     Configure::write('Config.language', 'deu');
     Configure::delete('Passwordable');
     Configure::write('Passwordable.auth', 'AuthTest');
     $this->User = ClassRegistry::init('Tools.ToolsUser');
     if (isset($this->User->validate['pwd'])) {
         unset($this->User->validate['pwd']);
     }
     if (isset($this->User->validate['pwd_repeat'])) {
         unset($this->User->validate['pwd_repeat']);
     }
     if (isset($this->User->validate['pwd_current'])) {
         unset($this->User->validate['pwd_current']);
     }
     if (isset($this->User->order)) {
         unset($this->User->order);
     }
     $this->User->create();
     $data = ['id' => '5', 'name' => 'admin', 'password' => Security::hash('somepwd', null, true), 'role_id' => '1'];
     $this->User->set($data);
     $result = $this->User->save();
     $this->assertTrue((bool) $result);
     Router::setRequestInfo(new CakeRequest(null, false));
 }
开发者ID:ByMyHandsOnly,项目名称:BMHO_Web,代码行数:31,代码来源:PasswordableBehaviorTest.php

示例7: endCase

 public function endCase()
 {
     if (Configure::read('TestConfig')) {
         Configure::delete('TestConfig');
     }
     parent::endCase();
 }
开发者ID:hiromi2424,项目名称:ninja,代码行数:7,代码来源:config_list.test.php

示例8: tearDown

 function tearDown()
 {
     ConnectionManager::drop('testapi');
     ConnectionManager::drop('testapiToken');
     Configure::delete('Copula.testapi.Auth');
     unset($this->controller, $this->Oauth);
     parent::tearDown();
 }
开发者ID:mohitkochhar,项目名称:Copula,代码行数:8,代码来源:OauthComponentTest.php

示例9: setUp

 /**
  * setUp
  *
  * @retun void
  * @access public
  */
 public function setUp()
 {
     parent::setUp();
     Configure::delete('PagSeguro');
     $this->Controller = new Controller(null);
     $this->Checkout = new CheckoutComponent($this->Controller->Components);
     $this->Checkout->startup($this->Controller);
 }
开发者ID:radig,项目名称:pagseguro,代码行数:14,代码来源:CheckoutComponent.Test.php

示例10: endTest

 public function endTest($method = null)
 {
     Configure::delete(TestDisableActionsComponent::$testConfigName);
     if ($this->_configBackup !== false) {
         Configure::write(TestDisableActionsComponent::$testConfigName, $this->_configBackup);
     }
     parent::endTest($method);
 }
开发者ID:hiromi2424,项目名称:ninja,代码行数:8,代码来源:disable_actions.test.php

示例11: isQmail

 /**
  * Returns whether the local MTA is qmail or not.
  * This refers to the Configure to skip the auto-detection.
  * 
  * @override
  * @return boolean
  */
 function isQmail()
 {
     $is_qmail = Configure::read('Qdmailer.is_qmail');
     if (!is_null($is_qmail)) {
         $this->is_qmail = $is_qmail;
     }
     Configure::delete('Qdmailer.is_qmail');
     return parent::isQmail();
 }
开发者ID:masayukiando,项目名称:googlemap-search_ActionScript3.0,代码行数:16,代码来源:qdmailer.php

示例12: setUp

 public function setUp()
 {
     parent::setUp();
     Configure::delete('Auth');
     $this->Controller = new AuthExtTestController(new CakeRequest(), new CakeResponse());
     $this->Controller->constructClasses();
     $this->Controller->startupProcess();
     $this->Controller->User->belongsTo = ['Role' => ['className' => 'Tools.Role']];
 }
开发者ID:ByMyHandsOnly,项目名称:BMHO_Web,代码行数:9,代码来源:AuthExtComponentTest.php

示例13: setUp

 public function setUp()
 {
     parent::setUp();
     Configure::delete('Logable');
     Configure::write('Config.language', 'eng');
     $this->LogableBook = ClassRegistry::init('LogableBook');
     $this->Log = ClassRegistry::init('LogableLog');
     $this->LogableUser = ClassRegistry::init('LogableUser');
     $this->LogableComment = ClassRegistry::init('LogableComment');
 }
开发者ID:Jony01,项目名称:LLD,代码行数:10,代码来源:LogableBehaviorTest.php

示例14: setUp

 /**
  * setUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     @($View = new View());
     $this->Facebook = new FacebookHelper($View);
     $this->Facebook->Html = new HtmlHelper($View);
     $this->Facebook->Html->request = new CakeRequest(null, false);
     $this->Facebook->Html->request->webroot = '';
     Configure::delete('Facebook.appId');
     Configure::write('Facebook.appId', '12345');
 }
开发者ID:slachiewicz,项目名称:_mojePanstwo-API-Server,代码行数:16,代码来源:FacebookHelperTest.php

示例15: testNotSeedable

 /**
  * Test the seedability check on init
  *
  * @return void
  * @covers ::initialize
  * @covers ::_checkSeedable
  */
 public function testNotSeedable()
 {
     Configure::delete('FakeSeeder.seedable');
     $this->_shell->expects($this->at(0))->method('_stop')->with($this->equalTo('Seeding is not activated in configuration in "FakeSeeder.seedable"!'));
     $this->_shell->initialize();
     $debug = Configure::read('debug');
     Configure::write('debug', 0);
     $this->_shell->expects($this->at(1))->method('_stop')->with($this->equalTo('Seeding is allowed only in debug mode!'));
     $this->_shell->initialize();
     Configure::write('debug', $debug);
 }
开发者ID:ravage84,项目名称:cakephp-fake-seeder,代码行数:18,代码来源:SeederShellTest.php


注:本文中的Configure::delete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。