From 3a6b29d042119eb55de222cb825f6f5a865fe974 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Wed, 16 Dec 2009 22:15:58 -0500 Subject: [PATCH] Updating security component test case to use startTest and endTest --- cake/tests/cases/libs/controller/components/security.test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/tests/cases/libs/controller/components/security.test.php b/cake/tests/cases/libs/controller/components/security.test.php index f9024902d..e4e17eb39 100644 --- a/cake/tests/cases/libs/controller/components/security.test.php +++ b/cake/tests/cases/libs/controller/components/security.test.php @@ -143,7 +143,7 @@ class SecurityComponentTest extends CakeTestCase { * @access public * @return void */ - function setUp() { + function startTest() { $this->Controller =& new SecurityTestController(); $this->Controller->Component->init($this->Controller); $this->Controller->Security =& $this->Controller->TestSecurity; @@ -158,7 +158,7 @@ class SecurityComponentTest extends CakeTestCase { * @access public * @return void */ - function tearDown() { + function endTest() { Configure::write('Security.salt', $this->oldSalt); $this->Controller->Session->delete('_Token'); unset($this->Controller->Security);