public function SessionStateHandlerTest::testStateFailsWithIncorrectValue in Auth0 Single Sign On 8.2
Test that state validation fails with an incorrect value.
Return value
void
File
- vendor/
auth0/ auth0-php/ tests/ API/ Helpers/ State/ SessionStateHandlerTest.php, line 86
Class
- SessionStateHandlerTest
- Class SessionStateHandlerTest
Namespace
Auth0\Tests\Api\Helpers\StateCode
public function testStateFailsWithIncorrectValue() {
$state_issued = $this->stateHandler
->issue();
$this
->assertFalse($this->stateHandler
->validate($state_issued . 'false'));
$this
->assertNull($this->sessionStore
->get(SessionStateHandler::STATE_NAME));
}