Skip to content

Commit

Permalink
Fix data providers for unit tests - Config and Directory
Browse files Browse the repository at this point in the history
  • Loading branch information
vpodorozh committed Apr 9, 2024
1 parent 4d71a3b commit d3dedf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
"1:<config><system><section id=\"section1\"><group id=\"group1\"><label>Label</label><field " .
"id=\"field_id\"><config_path>co</config_path></field></group><group id=\"group2\"><label>" .
"Label_One</label></group></section></system></config>\n2:\n",
"Element 'config_path': 'co' is not a valid value of the atomic type 'typeConfigPath'.\nLine: 1\n" .
"Element 'config_path': [facet 'minLength'] The value has a length of '2'; " .
"this underruns the allowed minimum length of '5'.\nLine: 1\n" .
"The xml was: \n0:<?xml version=\"1.0\"?>\n1:<config><system><section id=\"section1\"><group " .
"id=\"group1\"><label>Label</label><field id=\"field_id\"><config_path>co</config_path></field>" .
"</group><group id=\"group2\"><label>Label_One</label></group></section></system></config>\n2:\n"
Expand All @@ -107,7 +108,8 @@
"1:<config><system><section id=\"section1\"><group id=\"group1\"><label>Label</label><field " .
"id=\"field_id\"><if_module_enabled>Som</if_module_enabled></field></group><group id=\"group2\">" .
"<label>Label_One</label></group></section></system></config>\n2:\n",
"Element 'if_module_enabled': 'Som' is not a valid value of the atomic type 'typeModule'.\n" .
"Element 'if_module_enabled': [facet 'minLength'] The value has a length of '3'; " .
"this underruns the allowed minimum length of '5'.\n" .
"Line: 1\nThe xml was: \n0:<?xml version=\"1.0\"?>\n1:<config><system><section id=\"section1\">" .
"<group id=\"group1\"><label>Label</label><field id=\"field_id\"><if_module_enabled>Som" .
"</if_module_enabled></field></group><group id=\"group2\"><label>Label_One</label></group>" .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function (array $args) {
public function getOutputFormatDataProvider(): array
{
$ar_DZ = "\u{062C}.\u{0645}.\u{200F}\u{00A0}%s";
if (version_compare(PHP_VERSION, '8.3', '>=')) {
if (version_compare(PHP_VERSION, '8.2', '>=')) {
$ar_DZ = "%s\u{00A0}\u{062C}.\u{0645}.\u{200F}";
}
return [
Expand Down

0 comments on commit d3dedf0

Please sign in to comment.