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 ...@@ -272,7 +272,7 @@ class MetadataTest extends TestCase
// Test null or unset // Test null or unset
$nameIdPolicy = null; $nameIdPolicy = null;
$this->assertEquals( $this->assertEquals(
['Format' => \SAML2\Constants::NAMEID_TRANSIENT], ['Format' => \SAML2\Constants::NAMEID_TRANSIENT, 'AllowCreate' => true],
Metadata::parseNameIdPolicy($nameIdPolicy) Metadata::parseNameIdPolicy($nameIdPolicy)
); );
...@@ -283,7 +283,7 @@ class MetadataTest extends TestCase ...@@ -283,7 +283,7 @@ class MetadataTest extends TestCase
// Test string // Test string
$nameIdPolicy = 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress'; $nameIdPolicy = 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress';
$this->assertEquals( $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) Metadata::parseNameIdPolicy($nameIdPolicy)
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment