當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。