public function UrlBuildersTest::testThatWsFedLinkIsBuiltProperly in Auth0 Single Sign On 8.2
File
- vendor/
auth0/ auth0-php/ tests/ API/ Authentication/ UrlBuildersTest.php, line 146
Class
Namespace
Auth0\Tests\API\AuthenticationCode
public function testThatWsFedLinkIsBuiltProperly() {
$api = new Authentication('test-domain.auth0.com', 'test-client-id-1');
$this
->assertEquals('https://test-domain.auth0.com/wsfed/test-client-id-1?', $api
->get_wsfed_link());
$this
->assertEquals('https://test-domain.auth0.com/wsfed/test-client-id-2?', $api
->get_wsfed_link('test-client-id-2'));
$this
->assertEquals('https://test-domain.auth0.com/wsfed/test-client-id-3?wtrealm=test_wtrealm&whr=test_whr&wctx=test_wctx', $api
->get_wsfed_link('test-client-id-3', [
'wtrealm' => 'test_wtrealm',
'whr' => 'test_whr',
'wctx' => 'test_wctx',
]));
}