summaryrefslogtreecommitdiffstats
path: root/Tests/Auth/OpenID
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Auth/OpenID')
-rw-r--r--Tests/Auth/OpenID/AuthRequest.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/Tests/Auth/OpenID/AuthRequest.php b/Tests/Auth/OpenID/AuthRequest.php
index d65bd03..629418f 100644
--- a/Tests/Auth/OpenID/AuthRequest.php
+++ b/Tests/Auth/OpenID/AuthRequest.php
@@ -157,6 +157,21 @@ class TestAuthRequestOpenID2 extends TestAuthRequestMixin {
// TESTS
+ function test_markup_checkidImmediate()
+ {
+ $result = $this->authreq->formMarkup($this->realm,
+ null, true);
+ $this->assertTrue(is_a($result, 'Auth_OpenID_FailureResponse'));
+ }
+
+ function test_markup_returnToArgs()
+ {
+ $this->authreq->return_to_args = array('extra' => 'args');
+ $result = $this->authreq->formMarkup($this->realm,
+ null, false);
+ $this->assertTrue(is_a($result, 'Auth_OpenID_FailureResponse'));
+ }
+
function test_setAnonymousWorksForOpenID2()
{
// OpenID AuthRequests should be able to set 'anonymous' to true.
@@ -228,6 +243,13 @@ class TestAuthRequestOpenID1 extends TestAuthRequestMixin {
// TESTS
+ function test_markup_missingReturnTo()
+ {
+ $result = $this->authreq->formMarkup($this->realm,
+ null, false);
+ $this->assertTrue(is_a($result, 'Auth_OpenID_FailureResponse'));
+ }
+
function test_setAnonymousFailsForOpenID1()
{
// OpenID 1 requests MUST NOT be able to set anonymous to True