Skip to content
Snippets Groups Projects
Unverified Commit 0d006cc8 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

bugfix: Fix NameIDPolicy tests

parent 588f544a
No related branches found
No related tags found
No related merge requests found
......@@ -272,7 +272,7 @@ class MetadataTest extends TestCase
// Test null or unset
$nameIdPolicy = null;
$this->assertEquals(
['Format' => \SAML2\Constants::NAMEID_TRANSIENT],
['Format' => \SAML2\Constants::NAMEID_TRANSIENT, 'AllowCreate' => true],
Metadata::parseNameIdPolicy($nameIdPolicy)
);
......@@ -283,7 +283,7 @@ class MetadataTest extends TestCase
// Test string
$nameIdPolicy = 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress';
$this->assertEquals(
['Format' => 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress'],
['Format' => 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress', 'AllowCreate' => true],
Metadata::parseNameIdPolicy($nameIdPolicy)
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment