Skip to content

Commit

Permalink
Add assertion to prove session is not started on stateless login
Browse files Browse the repository at this point in the history
  • Loading branch information
biesbjerg committed Jul 7, 2016
1 parent c63de8d commit 0ea315b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php
Expand Up @@ -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'
Expand All @@ -1738,6 +1738,8 @@ public function testStatelessLoginSetsUser() {

$this->assertTrue($this->Auth->loggedIn());
$this->assertEquals($user, $this->Auth->user());

$this->assertNull($this->Auth->Session->started());
}

/**
Expand Down

0 comments on commit 0ea315b

Please sign in to comment.