From 0ea315b2e0c927e06ffeb1b1993c9cc8506ed08e Mon Sep 17 00:00:00 2001 From: Kim Biesbjerg Date: Thu, 7 Jul 2016 08:58:51 +0200 Subject: [PATCH] Add assertion to prove session is not started on stateless login --- .../Test/Case/Controller/Component/AuthComponentTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php b/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php index 80d6cda58..33292662f 100644 --- a/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php @@ -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()); } /**