From f22aedff2b8ebc546e248ce7b5cb1a3307be0ae9 Mon Sep 17 00:00:00 2001 From: Guy Halse <guy@tenet.ac.za> Date: Tue, 19 Mar 2019 14:23:04 +0200 Subject: [PATCH] Add a multi-lingual element to the test case --- tests/lib/SimpleSAML/Metadata/SAMLParserTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/lib/SimpleSAML/Metadata/SAMLParserTest.php b/tests/lib/SimpleSAML/Metadata/SAMLParserTest.php index 4bdad1512..9490336ec 100644 --- a/tests/lib/SimpleSAML/Metadata/SAMLParserTest.php +++ b/tests/lib/SimpleSAML/Metadata/SAMLParserTest.php @@ -247,7 +247,7 @@ XML 'example.net', ], 'UIInfo' => [ - 'DisplayName' => ['en' => 'DisplayName',], + 'DisplayName' => ['en' => 'DisplayName', 'af' => 'VertoonNaam'], 'Description' => ['en' => 'Description',], 'InformationURL' => ['en' => 'https://localhost/information',], 'PrivacyStatementURL' => ['en' => 'https://localhost/privacypolicy',], @@ -269,7 +269,7 @@ XML 'DomainHint' => ['example.net', 'example.org',], 'GeolocationHint' => ['geo:-29.00000,24.00000;u=830000',], ], - 'name' => ['en' => 'DisplayName',], + 'name' => ['en' => 'DisplayName', 'af' => 'VertoonNaam'], ]; $document = \SAML2\DOMDocumentFactory::fromString( @@ -282,6 +282,7 @@ XML <shibmd:Scope regexp="false">example.net</shibmd:Scope> <mdui:UIInfo> <mdui:DisplayName xml:lang="en">DisplayName</mdui:DisplayName> + <mdui:DisplayName xml:lang="af">VertoonNaam</mdui:DisplayName> <mdui:Description xml:lang="en">Description</mdui:Description> <mdui:PrivacyStatementURL xml:lang="en">https://localhost/privacypolicy</mdui:PrivacyStatementURL> <mdui:InformationURL xml:lang="en">https://localhost/information</mdui:InformationURL> -- GitLab