Skip to content

Commit

Permalink
Cannot set Issuer to null on Assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
thijskh committed Nov 14, 2018
1 parent be82587 commit 5e66039
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/SAML2/AssertionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,12 +374,6 @@ public function testConvertIssuerToXML()
$this->assertEquals($issuer->NameQualifier, $xml_issuer->getAttribute('NameQualifier'));
$this->assertEquals($issuer->SPNameQualifier, $xml_issuer->getAttribute('SPNameQualifier'));
$this->assertEquals($issuer->SPProvidedID, $xml_issuer->getAttribute('SPProvidedID'));

// finally, make sure we can skip the Issuer by setting it to null
$assertion->setIssuer(null);
$xml = $assertion->toXML();

$this->assertEmpty(Utils::xpQuery($xml, './saml_assertion:Issuer'));
}

public function testAuthnContextDeclAndRefConstraint()
Expand Down

0 comments on commit 5e66039

Please sign in to comment.