Skip to content

Commit

Permalink
Drop backup/restore Configure values
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Aug 27, 2013
1 parent 7c33878 commit 2b20ddc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Cake/Test/Case/Cache/Engine/MemcachedEngineTest.php
Expand Up @@ -14,7 +14,7 @@
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
* @package Cake.Test.Case.Cache.Engine
* @since CakePHP(tm) v 1.2.0.5434
* @since CakePHP(tm) v 2.5.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/

Expand Down Expand Up @@ -64,8 +64,6 @@ public function setUp() {
parent::setUp();
$this->skipIf(!class_exists('Memcached'), 'Memcached is not installed or configured properly.');

$this->_cacheDisable = Configure::read('Cache.disable');
Configure::write('Cache.disable', false);
Cache::config('memcached', array(
'engine' => 'Memcached',
'prefix' => 'cake_',
Expand All @@ -80,7 +78,6 @@ public function setUp() {
*/
public function tearDown() {
parent::tearDown();
Configure::write('Cache.disable', $this->_cacheDisable);
Cache::drop('memcached');
Cache::drop('memcached_groups');
Cache::drop('memcached_helper');
Expand Down

0 comments on commit 2b20ddc

Please sign in to comment.