You are here

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\State

Code

public function testStateFailsWithIncorrectValue() {
  $state_issued = $this->stateHandler
    ->issue();
  $this
    ->assertFalse($this->stateHandler
    ->validate($state_issued . 'false'));
  $this
    ->assertNull($this->sessionStore
    ->get(SessionStateHandler::STATE_NAME));
}