diff options
Diffstat (limited to 'Tests/Auth/OpenID/Discover.php')
-rw-r--r-- | Tests/Auth/OpenID/Discover.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/Auth/OpenID/Discover.php b/Tests/Auth/OpenID/Discover.php index 4ed0063..f3e3eb7 100644 --- a/Tests/Auth/OpenID/Discover.php +++ b/Tests/Auth/OpenID/Discover.php @@ -617,6 +617,17 @@ class Tests_Auth_OpenID_Discover extends _DiscoveryBase { "http://www.livejournal.com/openid/server.bml"); $this->assertEquals($services[0]->canonicalID, Services_Yadis_XRI("=!1000")); } + + function test_useCanonicalID() + { + // When there is no delegate, the CanonicalID should be used + // with XRI. + + $endpoint = new Auth_OpenID_ServiceEndpoint(); + $endpoint->identity_url = "=example"; + $endpoint->canonicalID = Services_Yadis_XRI("=!1000"); + $this->assertEquals($endpoint->getServerID(), Services_Yadis_XRI("=!1000")); + } } ?>
\ No newline at end of file |