public function UrlBuildersTest::testThatReturnToLogoutLinkIsBuiltCorrectly in Auth0 Single Sign On 8.2
File
- vendor/
auth0/ auth0-php/ tests/ API/ Authentication/ UrlBuildersTest.php, line 81
Class
Namespace
Auth0\Tests\API\AuthenticationCode
public function testThatReturnToLogoutLinkIsBuiltCorrectly() {
$api = new Authentication('test-domain.auth0.com', '__test_client_id__');
$logout_link_query = parse_url($api
->get_logout_link('https://example.com/return-to'), PHP_URL_QUERY);
$logout_link_query = explode('&', $logout_link_query);
$this
->assertContains('returnTo=https%3A%2F%2Fexample.com%2Freturn-to', $logout_link_query);
}