Skip to content

Commit 48ad08a

Browse files
committed
Issue #217 Add test that parses multiple FieldStateOption
1 parent f1d29d3 commit 48ad08a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tests/DataFieldsTest.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@ public function testDataFieldParsing()
7272
FieldValue: 3
7373
FieldValue: 4
7474
FieldJustification: Left
75+
---
76+
FieldType: Choice
77+
FieldName: field7
78+
FieldFlags: 524288
79+
FieldValue: -- Value with dashes --
80+
FieldValueDefault: -- Value with dashes --
81+
FieldJustification: Left
82+
FieldStateOption: -- Another value with dashes --
83+
FieldStateOption: Value 2
84+
FieldStateOption: Value 3
7585
DATA;
7686

7787
protected $_parsedResult = [
@@ -122,5 +132,18 @@ public function testDataFieldParsing()
122132
'FieldValue' => [1, 2, 3, 4],
123133
'FieldJustification' => 'Left',
124134
],
135+
[
136+
'FieldType' => 'Choice',
137+
'FieldName' => 'field7',
138+
'FieldFlags' => 524288,
139+
'FieldValue' => '-- Value with dashes --',
140+
'FieldValueDefault' => '-- Value with dashes --',
141+
'FieldStateOption' => [
142+
'-- Another value with dashes --',
143+
'Value 2',
144+
'Value 3',
145+
],
146+
'FieldJustification' => 'Left',
147+
],
125148
];
126149
}

0 commit comments

Comments
 (0)