diff --git a/tests/authentication/AuthenticationBaseTest.php b/tests/authentication/AuthenticationBaseTest.php index 24308ec..f04c6fb 100644 --- a/tests/authentication/AuthenticationBaseTest.php +++ b/tests/authentication/AuthenticationBaseTest.php @@ -76,7 +76,9 @@ public function testLoginSuccessNoRemember() 'success' => 1, ]); - $this->assertSame(4, $_SESSION['logged_in']); + // TODO: some BDD send back strings : should we forcefullyconvert in Authentication\AuthenticationBase::login() ? + //$this->assertSame(4, $_SESSION['logged_in']); + $this->assertContains($_SESSION['logged_in'], [4, '4']); $this->dontSeeInDatabase('auth_tokens', [ 'user_id' => $user->id,