You are here

public function Auth0Test::testThatExchangeReturnsFalseIfNoCodePresent in Auth0 Single Sign On 8.2

Test that the exchange call returns false before making any HTTP calls if no code is present.

Throws

ApiException

CoreException

File

vendor/auth0/auth0-php/tests/Auth0Test.php, line 62

Class

Auth0Test
Class Auth0Test

Namespace

Auth0\Tests

Code

public function testThatExchangeReturnsFalseIfNoCodePresent() {
  $auth0 = new Auth0(self::$baseConfig);
  $this
    ->assertFalse($auth0
    ->exchange());
}