Skip to content

Commit

Permalink
Updating security component test case to use startTest and endTest
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 17, 2009
1 parent dffff31 commit 3a6b29d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/tests/cases/libs/controller/components/security.test.php
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 3a6b29d

Please sign in to comment.