Skip to content
Permalink
Browse files

Add assertion to prove session is not started on stateless login

  • Loading branch information...
biesbjerg committed Jul 7, 2016
1 parent c63de8d commit 0ea315b2e0c927e06ffeb1b1993c9cc8506ed08e
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php
@@ -1722,11 +1722,11 @@ public function testStatelessAuthNoRedirect() {
}
/**
* testStatelessLoginSetsUser method
* testStatelessLoginSetUserNoSessionStart method
*
* @return void
*/
public function testStatelessLoginSetsUser() {
public function testStatelessLoginSetUserNoSessionStart() {
$user = array(
'id' => 1,
'username' => 'mark'
@@ -1738,6 +1738,8 @@ public function testStatelessLoginSetsUser() {
$this->assertTrue($this->Auth->loggedIn());
$this->assertEquals($user, $this->Auth->user());
$this->assertNull($this->Auth->Session->started());
}
/**

0 comments on commit 0ea315b

Please sign in to comment.
You can’t perform that action at this time.