You are here

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

File

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

Class

UrlBuildersTest

Namespace

Auth0\Tests\API\Authentication

Code

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