You are here

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

File

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

Class

UrlBuildersTest

Namespace

Auth0\Tests\API\Authentication

Code

public function testThatSamlLinkIsBuiltProperly() {
  $api = new Authentication('test-domain.auth0.com', 'test-client-id-1');
  $this
    ->assertEquals('https://test-domain.auth0.com/samlp/test-client-id-1?connection=', $api
    ->get_samlp_link());
  $this
    ->assertEquals('https://test-domain.auth0.com/samlp/test-client-id-2?connection=', $api
    ->get_samlp_link('test-client-id-2'));
  $this
    ->assertEquals('https://test-domain.auth0.com/samlp/test-client-id-3?connection=test-connection', $api
    ->get_samlp_link('test-client-id-3', 'test-connection'));
}