You are here

public function UrlBuildersTest::testThatClientIdLogoutLinkIsBuiltCorrectly in Auth0 Single Sign On 8.2

File

vendor/auth0/auth0-php/tests/API/Authentication/UrlBuildersTest.php, line 91

Class

UrlBuildersTest

Namespace

Auth0\Tests\API\Authentication

Code

public function testThatClientIdLogoutLinkIsBuiltCorrectly() {
  $api = new Authentication('test-domain.auth0.com', '__test_client_id__');
  $logout_link_query = parse_url($api
    ->get_logout_link(null, '__test_client_id__'), PHP_URL_QUERY);
  $logout_link_query = explode('&', $logout_link_query);
  $this
    ->assertContains('client_id=' . '__test_client_id__', $logout_link_query);
}