mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +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
|
* @access public
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function setUp() {
|
function startTest() {
|
||||||
$this->Controller =& new SecurityTestController();
|
$this->Controller =& new SecurityTestController();
|
||||||
$this->Controller->Component->init($this->Controller);
|
$this->Controller->Component->init($this->Controller);
|
||||||
$this->Controller->Security =& $this->Controller->TestSecurity;
|
$this->Controller->Security =& $this->Controller->TestSecurity;
|
||||||
|
@ -158,7 +158,7 @@ class SecurityComponentTest extends CakeTestCase {
|
||||||
* @access public
|
* @access public
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function tearDown() {
|
function endTest() {
|
||||||
Configure::write('Security.salt', $this->oldSalt);
|
Configure::write('Security.salt', $this->oldSalt);
|
||||||
$this->Controller->Session->delete('_Token');
|
$this->Controller->Session->delete('_Token');
|
||||||
unset($this->Controller->Security);
|
unset($this->Controller->Security);
|
||||||
|
|
Loading…
Add table
Reference in a new issue