mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Add assertion to prove session is not started on stateless login
This commit is contained in:
parent
c63de8d9f5
commit
0ea315b2e0
1 changed files with 4 additions and 2 deletions
|
@ -1722,11 +1722,11 @@ class AuthComponentTest extends CakeTestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* testStatelessLoginSetsUser method
|
||||
* testStatelessLoginSetUserNoSessionStart method
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testStatelessLoginSetsUser() {
|
||||
public function testStatelessLoginSetUserNoSessionStart() {
|
||||
$user = array(
|
||||
'id' => 1,
|
||||
'username' => 'mark'
|
||||
|
@ -1738,6 +1738,8 @@ class AuthComponentTest extends CakeTestCase {
|
|||
|
||||
$this->assertTrue($this->Auth->loggedIn());
|
||||
$this->assertEquals($user, $this->Auth->user());
|
||||
|
||||
$this->assertNull($this->Auth->Session->started());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue