mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 03:52:41 +00:00
Changing two deprecated Session::del() calls to Session::delete() in the tests.
This commit is contained in:
parent
fa6b1b1a20
commit
78e7421834
2 changed files with 2 additions and 2 deletions
|
@ -224,7 +224,7 @@ class EmailComponentTest extends CakeTestCase {
|
|||
function tearDown() {
|
||||
Configure::write('App.encoding', $this->_appEncoding);
|
||||
App::build();
|
||||
$this->Controller->Session->del('Message');
|
||||
$this->Controller->Session->delete('Message');
|
||||
restore_error_handler();
|
||||
ClassRegistry::flush();
|
||||
}
|
||||
|
|
|
@ -168,7 +168,7 @@ class SecurityComponentTest extends CakeTestCase {
|
|||
*/
|
||||
function tearDown() {
|
||||
Configure::write('Security.salt', $this->oldSalt);
|
||||
$this->Controller->Session->del('_Token');
|
||||
$this->Controller->Session->delete('_Token');
|
||||
unset($this->Controller->Security);
|
||||
unset($this->Controller->Component);
|
||||
unset($this->Controller);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue