@@ -8498,7 +8498,7 @@ public function testNestedLabelInput()
8498
8498
}
8499
8499
8500
8500
/**
8501
- * Tests to make sure `optionsLabel ` is rendered correctly by MultiCheckboxWidget and RadioWidget
8501
+ * Tests to make sure `labelOptions ` is rendered correctly by MultiCheckboxWidget and RadioWidget
8502
8502
*
8503
8503
* Tests false, class (as string and array) also makes sure 'selected' is added to the class if checked.
8504
8504
* Also checks to make sure any custom attributes are rendered
@@ -8509,7 +8509,7 @@ public function testControlLabelManipulation()
8509
8509
$ result = $ this ->Form ->input ('test ' , [
8510
8510
'type ' => 'radio ' ,
8511
8511
'options ' => ['A ' , 'B ' ],
8512
- 'optionsLabel ' => false
8512
+ 'labelOptions ' => false
8513
8513
]);
8514
8514
$ expected = [
8515
8515
['div ' => ['class ' => 'input radio ' ]],
@@ -8527,7 +8527,7 @@ public function testControlLabelManipulation()
8527
8527
$ result = $ this ->Form ->input ('test ' , [
8528
8528
'type ' => 'radio ' ,
8529
8529
'options ' => ['A ' , 'B ' ],
8530
- 'optionsLabel ' => ['class ' => 'custom-class ' ]
8530
+ 'labelOptions ' => ['class ' => 'custom-class ' ]
8531
8531
]);
8532
8532
$ expected = [
8533
8533
['div ' => ['class ' => 'input radio ' ]],
@@ -8552,7 +8552,7 @@ public function testControlLabelManipulation()
8552
8552
'type ' => 'radio ' ,
8553
8553
'options ' => ['A ' , 'B ' ],
8554
8554
'value ' => 1 ,
8555
- 'optionsLabel ' => ['class ' => 'custom-class ' ]
8555
+ 'labelOptions ' => ['class ' => 'custom-class ' ]
8556
8556
]);
8557
8557
$ expected = [
8558
8558
['div ' => ['class ' => 'input radio ' ]],
@@ -8577,7 +8577,7 @@ public function testControlLabelManipulation()
8577
8577
'type ' => 'radio ' ,
8578
8578
'options ' => ['A ' , 'B ' ],
8579
8579
'value ' => 1 ,
8580
- 'optionsLabel ' => ['class ' => ['custom-class ' , 'custom-class-array ' ]]
8580
+ 'labelOptions ' => ['class ' => ['custom-class ' , 'custom-class-array ' ]]
8581
8581
]);
8582
8582
$ expected = [
8583
8583
['div ' => ['class ' => 'input radio ' ]],
@@ -8633,7 +8633,7 @@ public function testControlLabelManipulation()
8633
8633
['text ' => 'First Checkbox ' , 'value ' => 1 ],
8634
8634
['text ' => 'Second Checkbox ' , 'value ' => 2 ]
8635
8635
],
8636
- 'optionsLabel ' => false
8636
+ 'labelOptions ' => false
8637
8637
]);
8638
8638
$ expected = [
8639
8639
['div ' => ['class ' => 'input select ' ]],
@@ -8660,7 +8660,7 @@ public function testControlLabelManipulation()
8660
8660
['text ' => 'First Checkbox ' , 'value ' => 1 ],
8661
8661
['text ' => 'Second Checkbox ' , 'value ' => 2 ]
8662
8662
],
8663
- 'optionsLabel ' => ['class ' => 'custom-class ' ],
8663
+ 'labelOptions ' => ['class ' => 'custom-class ' ],
8664
8664
'value ' => ['1 ' ]
8665
8665
]);
8666
8666
@@ -8712,7 +8712,7 @@ public function testControlLabelManipulation()
8712
8712
['text ' => 'First Checkbox ' , 'value ' => 1 ],
8713
8713
['text ' => 'Second Checkbox ' , 'value ' => 2 ]
8714
8714
],
8715
- 'optionsLabel ' => ['class ' => ['custom-class ' , 'another-class ' ], 'data-name ' => 'bob ' ],
8715
+ 'labelOptions ' => ['class ' => ['custom-class ' , 'another-class ' ], 'data-name ' => 'bob ' ],
8716
8716
'value ' => ['1 ' ]
8717
8717
8718
8718
]);
0 commit comments