File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
dev/tests/functional/tests/app/Magento/Bundle/Test/Block/Adminhtml/Product/Composite Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 1414 */
1515class Configure extends \Magento \Catalog \Test \Block \Adminhtml \Product \Composite \Configure
1616{
17- /**
18- * Option selector
19- *
20- * @var string
21- */
22- protected $ option = '//fieldset[contains(@class,"composite-bundle")]//label[.="%option_name%"]//following-sibling::*//%selector% ' ;
23-
2417 /**
2518 * Fill options for the product
2619 *
@@ -43,6 +36,8 @@ protected function prepareData(array $fields)
4336 {
4437 $ productOptions = [];
4538 $ checkoutData = $ fields ['checkout_data ' ]['options ' ];
39+ $ optionLocator = '//fieldset[contains(@class,"composite-bundle")]//label[.="%option_name%"] '
40+ . '//following-sibling::*//%selector% ' ;
4641
4742 if (!empty ($ checkoutData ['bundle_options ' ])) {
4843 foreach ($ checkoutData ['bundle_options ' ] as $ key => $ option ) {
@@ -52,7 +47,7 @@ protected function prepareData(array $fields)
5247 $ optionMapping [$ type ]['selector ' ] = str_replace (
5348 '%selector% ' ,
5449 str_replace ('%product_name% ' , $ option ['value ' ]['name ' ], $ optionMapping [$ type ]['selector ' ]),
55- str_replace ('%option_name% ' , $ option ['title ' ], $ this -> option )
50+ str_replace ('%option_name% ' , $ option ['title ' ], $ optionLocator )
5651 );
5752
5853 $ optionMapping [$ type ]['value ' ] = ($ type == 'checkbox ' || $ type == 'radiobutton ' )
You can’t perform that action at this time.
0 commit comments