mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-08 20:42:42 +00:00
Moving parent call to fix fatal errors caused by registry being empty.
This commit is contained in:
parent
237b66d193
commit
3a14f780b9
1 changed files with 2 additions and 2 deletions
|
@ -98,12 +98,12 @@ class CakeSessionTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
function teardown() {
|
||||
parent::teardown();
|
||||
if (TestCakeSession::started()) {
|
||||
CakeSession::destroy();
|
||||
TestCakeSession::destroy();
|
||||
}
|
||||
unset($_SESSION);
|
||||
@session_destroy();
|
||||
parent::teardown();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue