summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Auth/OpenID/Consumer.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/Tests/Auth/OpenID/Consumer.php b/Tests/Auth/OpenID/Consumer.php
index 244c6e0..2af932f 100644
--- a/Tests/Auth/OpenID/Consumer.php
+++ b/Tests/Auth/OpenID/Consumer.php
@@ -1438,14 +1438,11 @@ class Tests_Auth_OpenID_AuthRequest extends PHPUnit_TestCase {
{
$this->authreq->addExtensionArg('bag', 'color', 'brown');
$this->authreq->addExtensionArg('bag', 'material', 'paper');
- $this->assertEquals($this->authreq->extra_args,
- array('openid.bag.color' => 'brown',
- 'openid.bag.material' => 'paper'));
- $url = $this->authreq->redirectURL('http://7.utest/', 'http://7.utest/r');
- $this->assertTrue(strpos($url, 'openid.bag.color=brown') !== false,
- 'extension arg not found in '.$url);
- $this->assertTrue(strpos($url, 'openid.bag.material=paper') !== false,
- 'extension arg not found in '.$url);
+
+ $m = $this->authreq->getMessage('realm', 'return_to');
+
+ $this->assertTrue($m->hasKey('bag', 'color'));
+ $this->assertTrue($m->hasKey('bag', 'material'));
}
}