public function SessionStateHandlerTest::testStateValidatesCorrectly in Auth0 Single Sign On 8.2
Test that state validated properly.
Return value
void
File
- vendor/
auth0/ auth0-php/ tests/ API/ Helpers/ State/ SessionStateHandlerTest.php, line 73
Class
- SessionStateHandlerTest
- Class SessionStateHandlerTest
Namespace
Auth0\Tests\Api\Helpers\StateCode
public function testStateValidatesCorrectly() {
$state_issued = $this->stateHandler
->issue();
$this
->assertTrue($this->stateHandler
->validate($state_issued));
$this
->assertNull($this->sessionStore
->get(SessionStateHandler::STATE_NAME));
}