@@ -236,7 +236,7 @@ public function testSingleChoice()
236
236
{
237
237
$ form = $ this ->factory ->create ('choice ' , 'na&me ' , array (
238
238
'property_path ' => 'name ' ,
239
- 'choices ' => array ('a ' => 'A ' , 'b ' => 'B ' ),
239
+ 'choices ' => array ('a ' => 'Choice A ' , 'b ' => 'Choice B ' ),
240
240
'data ' => 'a ' ,
241
241
'multiple ' => false ,
242
242
'expanded ' => false ,
@@ -246,8 +246,8 @@ public function testSingleChoice()
246
246
'/select
247
247
[@name="na&me"]
248
248
[
249
- ./option[@value="a"][@selected="selected"][.="A"]
250
- /following-sibling::option[@value="b"][not(@selected)][.="B"]
249
+ ./option[@value="a"][@selected="selected"][.="Choice A"]
250
+ /following-sibling::option[@value="b"][not(@selected)][.="Choice B"]
251
251
]
252
252
[count(./option)=2]
253
253
'
@@ -258,7 +258,7 @@ public function testSingleChoiceWithPreferred()
258
258
{
259
259
$ form = $ this ->factory ->create ('choice ' , 'na&me ' , array (
260
260
'property_path ' => 'name ' ,
261
- 'choices ' => array ('a ' => 'A ' , 'b ' => 'B ' ),
261
+ 'choices ' => array ('a ' => 'Choice A ' , 'b ' => 'Choice B ' ),
262
262
'preferred_choices ' => array ('b ' ),
263
263
'data ' => 'a ' ,
264
264
'multiple ' => false ,
@@ -269,9 +269,9 @@ public function testSingleChoiceWithPreferred()
269
269
'/select
270
270
[@name="na&me"]
271
271
[
272
- ./option[@value="b"][not(@selected)][.="B"]
272
+ ./option[@value="b"][not(@selected)][.="Choice B"]
273
273
/following-sibling::option[@disabled="disabled"][not(@selected)][.="-- sep --"]
274
- /following-sibling::option[@value="a"][@selected="selected"][.="A"]
274
+ /following-sibling::option[@value="a"][@selected="selected"][.="Choice A"]
275
275
]
276
276
[count(./option)=3]
277
277
'
@@ -282,7 +282,7 @@ public function testSingleChoiceNonRequired()
282
282
{
283
283
$ form = $ this ->factory ->create ('choice ' , 'na&me ' , array (
284
284
'property_path ' => 'name ' ,
285
- 'choices ' => array ('a ' => 'A ' , 'b ' => 'B ' ),
285
+ 'choices ' => array ('a ' => 'Choice A ' , 'b ' => 'Choice B ' ),
286
286
'required ' => false ,
287
287
'data ' => 'a ' ,
288
288
'multiple ' => false ,
@@ -294,8 +294,8 @@ public function testSingleChoiceNonRequired()
294
294
[@name="na&me"]
295
295
[
296
296
./option[@value=""][.=""]
297
- /following-sibling::option[@value="a"][@selected="selected"][.="A"]
298
- /following-sibling::option[@value="b"][not(@selected)][.="B"]
297
+ /following-sibling::option[@value="a"][@selected="selected"][.="Choice A"]
298
+ /following-sibling::option[@value="b"][not(@selected)][.="Choice B"]
299
299
]
300
300
[count(./option)=3]
301
301
'
@@ -307,8 +307,8 @@ public function testSingleChoiceGrouped()
307
307
$ form = $ this ->factory ->create ('choice ' , 'na&me ' , array (
308
308
'property_path ' => 'name ' ,
309
309
'choices ' => array (
310
- 'Group1 ' => array ('a ' => 'A ' , 'b ' => 'B ' ),
311
- 'Group2 ' => array ('c ' => 'C ' ),
310
+ 'Group1 ' => array ('a ' => 'Choice A ' , 'b ' => 'Choice B ' ),
311
+ 'Group2 ' => array ('c ' => 'Choice C ' ),
312
312
),
313
313
'data ' => 'a ' ,
314
314
'multiple ' => false ,
@@ -320,13 +320,13 @@ public function testSingleChoiceGrouped()
320
320
[@name="na&me"]
321
321
[./optgroup[@label="Group1"]
322
322
[
323
- ./option[@value="a"][@selected="selected"][.="A"]
324
- /following-sibling::option[@value="b"][not(@selected)][.="B"]
323
+ ./option[@value="a"][@selected="selected"][.="Choice A"]
324
+ /following-sibling::option[@value="b"][not(@selected)][.="Choice B"]
325
325
]
326
326
[count(./option)=2]
327
327
]
328
328
[./optgroup[@label="Group2"]
329
- [./option[@value="c"][not(@selected)][.="C"]]
329
+ [./option[@value="c"][not(@selected)][.="Choice C"]]
330
330
[count(./option)=1]
331
331
]
332
332
[count(./optgroup)=2]
@@ -338,7 +338,7 @@ public function testMultipleChoice()
338
338
{
339
339
$ form = $ this ->factory ->create ('choice ' , 'na&me ' , array (
340
340
'property_path ' => 'name ' ,
341
- 'choices ' => array ('a ' => 'A ' , 'b ' => 'B ' ),
341
+ 'choices ' => array ('a ' => 'Choice A ' , 'b ' => 'Choice B ' ),
342
342
'data ' => array ('a ' ),
343
343
'multiple ' => true ,
344
344
'expanded ' => false ,
@@ -349,8 +349,8 @@ public function testMultipleChoice()
349
349
[@name="na&me[]"]
350
350
[@multiple="multiple"]
351
351
[
352
- ./option[@value="a"][@selected="selected"][.="A"]
353
- /following-sibling::option[@value="b"][not(@selected)][.="B"]
352
+ ./option[@value="a"][@selected="selected"][.="Choice A"]
353
+ /following-sibling::option[@value="b"][not(@selected)][.="Choice B"]
354
354
]
355
355
[count(./option)=2]
356
356
'
@@ -361,7 +361,7 @@ public function testMultipleChoiceNonRequired()
361
361
{
362
362
$ form = $ this ->factory ->create ('choice ' , 'na&me ' , array (
363
363
'property_path ' => 'name ' ,
364
- 'choices ' => array ('a ' => 'A ' , 'b ' => 'B ' ),
364
+ 'choices ' => array ('a ' => 'Choice A ' , 'b ' => 'Choice B ' ),
365
365
'data ' => array ('a ' ),
366
366
'required ' => false ,
367
367
'multiple ' => true ,
@@ -373,8 +373,8 @@ public function testMultipleChoiceNonRequired()
373
373
[@name="na&me[]"]
374
374
[@multiple="multiple"]
375
375
[
376
- ./option[@value="a"][@selected="selected"][.="A"]
377
- /following-sibling::option[@value="b"][not(@selected)][.="B"]
376
+ ./option[@value="a"][@selected="selected"][.="Choice A"]
377
+ /following-sibling::option[@value="b"][not(@selected)][.="Choice B"]
378
378
]
379
379
[count(./option)=2]
380
380
'
@@ -385,7 +385,7 @@ public function testSingleChoiceExpanded()
385
385
{
386
386
$ form = $ this ->factory ->create ('choice ' , 'na&me ' , array (
387
387
'property_path ' => 'name ' ,
388
- 'choices ' => array ('a ' => 'A ' , 'b ' => 'B ' ),
388
+ 'choices ' => array ('a ' => 'Choice A ' , 'b ' => 'Choice B ' ),
389
389
'data ' => 'a ' ,
390
390
'multiple ' => false ,
391
391
'expanded ' => true ,
@@ -395,9 +395,9 @@ public function testSingleChoiceExpanded()
395
395
'/div
396
396
[
397
397
./input[@type="radio"][@name="na&me"][@id="na&me_a"][@checked]
398
- /following-sibling::label[@for="na&me_a"][.="[trans]A[/trans]"]
398
+ /following-sibling::label[@for="na&me_a"][.="[trans]Choice A[/trans]"]
399
399
/following-sibling::input[@type="radio"][@name="na&me"][@id="na&me_b"][not(@checked)]
400
- /following-sibling::label[@for="na&me_b"][.="[trans]B[/trans]"]
400
+ /following-sibling::label[@for="na&me_b"][.="[trans]Choice B[/trans]"]
401
401
]
402
402
[count(./input)=2]
403
403
'
@@ -408,7 +408,7 @@ public function testMultipleChoiceExpanded()
408
408
{
409
409
$ form = $ this ->factory ->create ('choice ' , 'na&me ' , array (
410
410
'property_path ' => 'name ' ,
411
- 'choices ' => array ('a ' => 'A ' , 'b ' => 'B ' , 'c ' => 'C ' ),
411
+ 'choices ' => array ('a ' => 'Choice A ' , 'b ' => 'Choice B ' , 'c ' => 'Choice C ' ),
412
412
'data ' => array ('a ' , 'c ' ),
413
413
'multiple ' => true ,
414
414
'expanded ' => true ,
@@ -418,11 +418,11 @@ public function testMultipleChoiceExpanded()
418
418
'/div
419
419
[
420
420
./input[@type="checkbox"][@name="na&me[a]"][@id="na&me_a"][@checked]
421
- /following-sibling::label[@for="na&me_a"][.="[trans]A[/trans]"]
421
+ /following-sibling::label[@for="na&me_a"][.="[trans]Choice A[/trans]"]
422
422
/following-sibling::input[@type="checkbox"][@name="na&me[b]"][@id="na&me_b"][not(@checked)]
423
- /following-sibling::label[@for="na&me_b"][.="[trans]B[/trans]"]
423
+ /following-sibling::label[@for="na&me_b"][.="[trans]Choice B[/trans]"]
424
424
/following-sibling::input[@type="checkbox"][@name="na&me[c]"][@id="na&me_c"][@checked]
425
- /following-sibling::label[@for="na&me_c"][.="[trans]C[/trans]"]
425
+ /following-sibling::label[@for="na&me_c"][.="[trans]Choice C[/trans]"]
426
426
]
427
427
[count(./input)=3]
428
428
'
0 commit comments