public function UrlBuildersTest::testThatBasicLogoutLinkIsBuiltCorrectly in Auth0 Single Sign On 8.2
File
- vendor/
auth0/ auth0-php/ tests/ API/ Authentication/ UrlBuildersTest.php, line 66
Class
Namespace
Auth0\Tests\API\AuthenticationCode
public function testThatBasicLogoutLinkIsBuiltCorrectly() {
$api = new Authentication('test-domain.auth0.com', '__test_client_id__');
$logout_link_parts = parse_url($api
->get_logout_link());
$this
->assertEquals('https', $logout_link_parts['scheme']);
$this
->assertEquals('test-domain.auth0.com', $logout_link_parts['host']);
$this
->assertEquals('/v2/logout', $logout_link_parts['path']);
// Telemetry should not be added to browser URLs.
// If a query is added in the future, change this to check that auth0Client is not present.
$this
->assertTrue(empty($logout_link_parts['query']));
}