mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
test for ticket #467
This commit is contained in:
parent
4012925a26
commit
7337c12f4f
1 changed files with 3 additions and 1 deletions
|
@ -625,7 +625,7 @@ class AuthTest extends CakeTestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* test that being redirected to the login page, with no post data does
|
||||
* test that being redirected to the login page, with no post data does
|
||||
* not set the session value. Saving the session value in this circumstance
|
||||
* can cause the user to be redirected to an already public page.
|
||||
*
|
||||
|
@ -1429,6 +1429,8 @@ class AuthTest extends CakeTestCase {
|
|||
'id' => 1, 'username' => 'gwoo', 'created' => '2007-03-17 01:16:23', 'updated' => date('Y-m-d H:i:s')
|
||||
));
|
||||
$this->assertEqual($user, $expected);
|
||||
$sessionKey = $this->Controller->Auth->sessionKey;
|
||||
$this->assertEqual('Auth.TestPluginAuthUser', $sessionKey);
|
||||
|
||||
// Reverting changes
|
||||
Cache::delete('object_map', '_cake_core_');
|
||||
|
|
Loading…
Add table
Reference in a new issue