Skip to content

Commit

Permalink
Remove test class teardown/setup and session clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
bcrowe committed Jun 10, 2014
1 parent a333564 commit 9678f44
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions tests/TestCase/Controller/Component/FlashComponentTest.php
Expand Up @@ -29,46 +29,13 @@
*/
class FlashComponentTest extends TestCase {

protected static $_sessionBackup;

/**
* fixtures
*
* @var string
*/
public $fixtures = array('core.session');

/**
* test case startup
*
* @return void
*/
public static function setupBeforeClass() {
static::$_sessionBackup = Configure::read('Session');
Configure::write('Session', array(
'defaults' => 'php',
'timeout' => 100,
'cookie' => 'test'
));
}

/**
* cleanup after test case.
*
* @return void
*/
public static function teardownAfterClass() {
Configure::write('Session', static::$_sessionBackup);
}

/**
* setUp method
*
* @return void
*/
public function setUp() {
parent::setUp();
$_SESSION = [];
Configure::write('App.namespace', 'TestApp');
$controller = new Controller(new Request(['session' => new Session()]));
$this->ComponentRegistry = new ComponentRegistry($controller);
Expand Down

0 comments on commit 9678f44

Please sign in to comment.