diff options
Diffstat (limited to 'Tests')
10 files changed, 13 insertions, 13 deletions
diff --git a/Tests/Auth/OpenID/Consumer.php b/Tests/Auth/OpenID/Consumer.php index b6a64f4..a17370a 100644 --- a/Tests/Auth/OpenID/Consumer.php +++ b/Tests/Auth/OpenID/Consumer.php @@ -1770,7 +1770,7 @@ class IDPDrivenTest extends PHPUnit_TestCase { $this->consumer = new Auth_OpenID_GenericConsumer($this->store); $this->endpoint = new Auth_OpenID_ServiceEndpoint(); $this->endpoint->server_url = "http://idp.unittest/"; - $this->endpoint->type_uris = array('http://specs.openid.net/auth/2.0/server'); + $this->endpoint->type_uris = array(Auth_OpenID_TYPE_2_0_IDP); } function test_idpDrivenBegin() @@ -1866,7 +1866,7 @@ class TestDiscoveryVerification extends PHPUnit_TestCase { function test_theGoodStuff() { $endpoint = new Auth_OpenID_ServiceEndpoint(); - $endpoint->type_uris = array(Auth_OpenID_OPENID2_NS); + $endpoint->type_uris = array(Auth_OpenID_TYPE_2_0); $endpoint->claimed_id = $this->identifier; $endpoint->server_url = $this->server_url; $endpoint->local_id = $this->identifier; @@ -1880,7 +1880,7 @@ class TestDiscoveryVerification extends PHPUnit_TestCase { { // a set of things without the stuff $endpoint = new Auth_OpenID_ServiceEndpoint(); - $endpoint->type_uris = array(Auth_OpenID_OPENID2_NS); + $endpoint->type_uris = array(Auth_OpenID_TYPE_2_0); $endpoint->claimed_id = $this->identifier; $endpoint->server_url = "http://the-MOON.unittest/"; $endpoint->local_id = $this->identifier; @@ -1896,7 +1896,7 @@ class TestDiscoveryVerification extends PHPUnit_TestCase { { // a set of things with the server stuff but other delegate $endpoint = new Auth_OpenID_ServiceEndpoint(); - $endpoint->type_uris = array(Auth_OpenID_OPENID2_NS); + $endpoint->type_uris = array(Auth_OpenID_TYPE_2_0); $endpoint->claimed_id = $this->identifier; $endpoint->server_url = $this->server_url; $endpoint->local_id = "http://unittest/juan-carlos"; diff --git a/Tests/Auth/OpenID/Discover_OpenID.php b/Tests/Auth/OpenID/Discover_OpenID.php index 4fa0743..a09ca97 100644 --- a/Tests/Auth/OpenID/Discover_OpenID.php +++ b/Tests/Auth/OpenID/Discover_OpenID.php @@ -178,7 +178,7 @@ class _DiscoveryBase extends PHPUnit_TestCase { $this->assertFalse($s->compatibilityMode()); $this->assertTrue($s->isOPIdentifier()); $this->assertEquals($s->preferredNamespace(), - Auth_OpenID_TYPE_2_0); + Auth_OpenID_OPENID2_NS); } else { $this->assertEquals($claimed_id, $s->claimed_id); $this->assertEquals($local_id, $s->getLocalID()); diff --git a/Tests/Auth/OpenID/Negotiation.php b/Tests/Auth/OpenID/Negotiation.php index c982f3f..a7f4303 100644 --- a/Tests/Auth/OpenID/Negotiation.php +++ b/Tests/Auth/OpenID/Negotiation.php @@ -42,7 +42,7 @@ class TestOpenID2SessionNegotiation extends PHPUnit_TestCase { $dumb = null; $this->consumer = new ErrorRaisingConsumer($dumb); $this->endpoint = new Auth_OpenID_ServiceEndpoint(); - $this->endpoint->type_uris = array(Auth_OpenID_OPENID2_NS); + $this->endpoint->type_uris = array(Auth_OpenID_TYPE_2_0); $this->endpoint->server_url = 'bogus'; } diff --git a/Tests/Auth/OpenID/data/test_discover_openid2_xrds.xml b/Tests/Auth/OpenID/data/test_discover_openid2_xrds.xml index 25ed581..8091ab9 100644 --- a/Tests/Auth/OpenID/data/test_discover_openid2_xrds.xml +++ b/Tests/Auth/OpenID/data/test_discover_openid2_xrds.xml @@ -4,7 +4,7 @@ > <XRD> <Service priority="10"> - <Type>http://openid.net/signon/2.0</Type> + <Type>http://specs.openid.net/auth/2.0/signon</Type> <URI>http://www.myopenid.com/server</URI> <LocalID>http://smoker.myopenid.com/</LocalID> </Service> diff --git a/Tests/Auth/OpenID/data/test_discover_openid2_xrds_no_local_id.xml b/Tests/Auth/OpenID/data/test_discover_openid2_xrds_no_local_id.xml index acd08ef..e6a0eb9 100644 --- a/Tests/Auth/OpenID/data/test_discover_openid2_xrds_no_local_id.xml +++ b/Tests/Auth/OpenID/data/test_discover_openid2_xrds_no_local_id.xml @@ -4,7 +4,7 @@ > <XRD> <Service priority="10"> - <Type>http://openid.net/signon/2.0</Type> + <Type>http://specs.openid.net/auth/2.0/signon</Type> <URI>http://www.myopenid.com/server</URI> </Service> </XRD> diff --git a/Tests/Auth/OpenID/data/test_discover_openid_1_and_2_xrds.xml b/Tests/Auth/OpenID/data/test_discover_openid_1_and_2_xrds.xml index e8a1f5b..6d85d57 100644 --- a/Tests/Auth/OpenID/data/test_discover_openid_1_and_2_xrds.xml +++ b/Tests/Auth/OpenID/data/test_discover_openid_1_and_2_xrds.xml @@ -6,7 +6,7 @@ <XRD> <Service priority="10"> - <Type>http://openid.net/signon/2.0</Type> + <Type>http://specs.openid.net/auth/2.0/signon</Type> <Type>http://openid.net/signon/1.1</Type> <URI>http://www.myopenid.com/server</URI> <LocalID>http://smoker.myopenid.com/</LocalID> diff --git a/Tests/Auth/OpenID/data/test_discover_openid_1_and_2_xrds_bad_delegate.xml b/Tests/Auth/OpenID/data/test_discover_openid_1_and_2_xrds_bad_delegate.xml index 019cd65..db7282e 100644 --- a/Tests/Auth/OpenID/data/test_discover_openid_1_and_2_xrds_bad_delegate.xml +++ b/Tests/Auth/OpenID/data/test_discover_openid_1_and_2_xrds_bad_delegate.xml @@ -6,7 +6,7 @@ <XRD> <Service priority="10"> - <Type>http://openid.net/signon/2.0</Type> + <Type>http://specs.openid.net/auth/2.0/signon</Type> <Type>http://openid.net/signon/1.0</Type> <Type>http://openid.net/signon/1.1</Type> <URI>http://www.myopenid.com/server</URI> diff --git a/Tests/Auth/OpenID/data/test_discover_yadis_2_bad_local_id.xml b/Tests/Auth/OpenID/data/test_discover_yadis_2_bad_local_id.xml index b72727c..68c2ce1 100644 --- a/Tests/Auth/OpenID/data/test_discover_yadis_2_bad_local_id.xml +++ b/Tests/Auth/OpenID/data/test_discover_yadis_2_bad_local_id.xml @@ -6,7 +6,7 @@ <XRD> <Service priority="10"> - <Type>http://openid.net/signon/2.0</Type> + <Type>http://specs.openid.net/auth/2.0/signon</Type> <URI>http://www.myopenid.com/server</URI> <LocalID>http://smoker.myopenid.com/</LocalID> <LocalID>http://localid.mismatch.invalid/</LocalID> diff --git a/Tests/Auth/OpenID/data/test_discover_yadis_2entries_idp.xml b/Tests/Auth/OpenID/data/test_discover_yadis_2entries_idp.xml index daef25b..9a07b3d 100644 --- a/Tests/Auth/OpenID/data/test_discover_yadis_2entries_idp.xml +++ b/Tests/Auth/OpenID/data/test_discover_yadis_2entries_idp.xml @@ -7,7 +7,7 @@ <CanonicalID>=!1000</CanonicalID> <Service priority="10"> - <Type>http://openid.net/signon/2.0</Type> + <Type>http://specs.openid.net/auth/2.0/signon</Type> <URI>http://www.myopenid.com/server</URI> <openid:LocalID>http://smoker.myopenid.com/</openid:LocalID> </Service> diff --git a/Tests/Auth/OpenID/data/test_discover_yadis_idp_last.xml b/Tests/Auth/OpenID/data/test_discover_yadis_idp_last.xml index aa89589..8af94c6 100644 --- a/Tests/Auth/OpenID/data/test_discover_yadis_idp_last.xml +++ b/Tests/Auth/OpenID/data/test_discover_yadis_idp_last.xml @@ -5,7 +5,7 @@ > <XRD> <Service priority="10"> - <Type>http://openid.net/signon/2.0</Type> + <Type>http://specs.openid.net/auth/2.0/signon</Type> <URI>http://www.myopenid.com/server2_0</URI> </Service> |