diff options
author | Dries Buytaert <dries@buytaert.net> | 2011-05-22 09:08:19 -0400 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2011-05-22 09:08:19 -0400 |
commit | 5dbe8aa92b9e746962b43f9a24b10d7f9616d232 (patch) | |
tree | 3a99baca5a9f27bb3914ef9ee082eb4d2d6d84fc /modules/openid/openid.test | |
parent | c88f2e0188e48f4c4adfb101d70733a0b27d4685 (diff) | |
parent | 267b9c435c5d7266f4ce674b84d95bfe1f5a0920 (diff) | |
download | brdo-5dbe8aa92b9e746962b43f9a24b10d7f9616d232.tar.gz brdo-5dbe8aa92b9e746962b43f9a24b10d7f9616d232.tar.bz2 |
Merge branch '7.x' of git.drupal.org:project/drupal into 7.x
Diffstat (limited to 'modules/openid/openid.test')
-rw-r--r-- | modules/openid/openid.test | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/openid/openid.test b/modules/openid/openid.test index 09632ba14..202a8355e 100644 --- a/modules/openid/openid.test +++ b/modules/openid/openid.test @@ -89,12 +89,12 @@ class OpenIDFunctionalTestCase extends OpenIDWebTestCase { // Identifier is the URL of an XRDS document containing an OP Identifier // Element. The Relying Party sends the special value // "http://specs.openid.net/auth/2.0/identifier_select" as Claimed - // Identifier. The OpenID Provider responds with the actual identifier - // including the fragment. - $identity = url('openid-test/yadis/xrds/dummy-user', array('absolute' => TRUE, 'fragment' => $this->randomName())); - // Tell openid_test.module to respond with this identifier. We test if - // openid_complete() processes it right. - variable_set('openid_test_response', array('openid.claimed_id' => $identity)); + // Identifier. The OpenID Provider responds with the actual identifier. + $identity = url('openid-test/yadis/xrds/dummy-user', array('absolute' => TRUE)); + // Tell openid_test.module to respond with this identifier. The URL scheme + // is stripped in order to test that the returned identifier is normalized in + // openid_complete(). + variable_set('openid_test_response', array('openid.claimed_id' => preg_replace('@^https?://@', '', $identity))); $this->addIdentity(url('openid-test/yadis/xrds/server', array('absolute' => TRUE)), 2, 'http://specs.openid.net/auth/2.0/identifier_select', $identity); variable_set('openid_test_response', array()); |