You are here

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

File

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

Class

UrlBuildersTest

Namespace

Auth0\Tests\API\Authentication

Code

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',
  ]));
}