summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Auth/OpenID/AX.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/Auth/OpenID/AX.php b/Tests/Auth/OpenID/AX.php
index 0e94dd9..e3c353e 100644
--- a/Tests/Auth/OpenID/AX.php
+++ b/Tests/Auth/OpenID/AX.php
@@ -458,6 +458,7 @@ class FetchResponseTest extends PHPUnit_TestCase {
$this->value_a = 'monkeys';
$this->type_a = 'http://phone.home/';
$this->alias_a = 'robocop';
+ $this->request_update_url = 'http://update.bogus/';
}
function test_construct()
@@ -494,6 +495,20 @@ class FetchResponseTest extends PHPUnit_TestCase {
$this->assertEquals($expected_args, $this->msg->getExtensionArgs($req));
}
+ function test_updateUrlInResponse()
+ {
+ $uri = 'http://not.found/';
+ $alias = 'ext0';
+
+ $expected_args = array(
+ 'mode' => 'fetch_response',
+ 'update_url' => $this->request_update_url,
+ );
+ $req = new Auth_OpenID_AX_FetchRequest($this->request_update_url);
+ $req->add(Auth_OpenID_AX_AttrInfo::make($uri));
+ $this->assertEquals($expected_args, $this->msg->getExtensionArgs($req));
+ }
+
function test_getExtensionArgs_some_request()
{
$expected_args = array(