mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Updating security component test case to use startTest and endTest
This commit is contained in:
parent
dffff314e1
commit
3a6b29d042
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue