Skip to content

Commit

Permalink
Audience request fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorpe committed Nov 23, 2018
1 parent c99681b commit 9c3cef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/SAML2/AuthnRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ public function testEmptySubjectThrowsException()
$this->setExpectedException('Exception', 'Missing <saml:NameID> or <saml:EncryptedID> in <saml:Subject>');
$authnRequest = new AuthnRequest(DOMDocumentFactory::fromString($xml)->documentElement);
}

/**
* Test setting audiences.
*/
Expand All @@ -994,7 +994,7 @@ public function testAudiencesAreAddedCorrectly()
$request = new AuthnRequest();
$request->setIssuer('https://gateway.example.org/saml20/sp/metadata');
$request->setDestination('https://tiqr.example.org/idp/profile/saml2/Redirect/SSO');
$request->setAudiences(array('https://sp1.example.org', 'https://sp2.example.org');
$request->setAudiences(array('https://sp1.example.org', 'https://sp2.example.org'));

$expectedStructureDocument = <<<AUTHNREQUEST
<samlp:AuthnRequest
Expand Down

0 comments on commit 9c3cef6

Please sign in to comment.