File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
app/code/Magento/Sales/view/adminhtml/templates/order/create/billing/method
dev/tests/integration/testsuite/Magento/Sales/Block/Adminhtml/Order/Create/Billing/Method Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 55
55
'Magento_Sales/order/create/form'
56
56
], function(mage) {
57
57
mage.apply();
58
- <?php if ($ _methodsCount != 1 ) : ?>
59
58
order.setPaymentMethod('<?= $ block ->escapeHtml ($ block ->getSelectedMethodCode ()); ?> ');
60
- <?php endif ; ?>
61
59
});
62
60
</script>
63
61
<?php else : ?>
Original file line number Diff line number Diff line change @@ -45,6 +45,11 @@ public function testContentUpdated()
45
45
$ block = $ this ->layout ->createBlock (Form::class, 'order_billing_method ' );
46
46
$ block ->setTemplate ('Magento_Sales::order/create/billing/method/form.phtml ' );
47
47
48
- $ this ->assertContains ('mage.apply() ' , $ block ->toHtml ());
48
+ $ html = $ block ->toHtml ();
49
+ $ this ->assertContains ('mage.apply() ' , $ html );
50
+ $ this ->assertContains (
51
+ "order.setPaymentMethod(' " . $ block ->escapeHtml ($ block ->getSelectedMethodCode ()) . "') " ,
52
+ $ html
53
+ );
49
54
}
50
55
}
You can’t perform that action at this time.
0 commit comments