Permalink
Browse files

Updating security component test case to use startTest and endTest

  • Loading branch information...
1 parent dffff31 commit 3a6b29d042119eb55de222cb825f6f5a865fe974 @markstory markstory committed Dec 17, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 @@ function setUp() {
* @access public
* @return void
*/
- function tearDown() {
+ function endTest() {
Configure::write('Security.salt', $this->oldSalt);
$this->Controller->Session->delete('_Token');
unset($this->Controller->Security);

0 comments on commit 3a6b29d

Please sign in to comment.