Skip to content

Commit 38aa258

Browse files
author
Oleksii Korshenko
committed
MAGETWO-82653: GitHub 11380 #11683
- Merge Pull Request #11683 from serhii-balko/magento2:github-11380 - Merged commits: 1. 07d43db 2. af15ed0 3. 155eb77
2 parents 9ed7081 + 155eb77 commit 38aa258

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

2 files changed

+6
-3
lines changed

app/code/Magento/Sales/view/adminhtml/templates/order/create/billing/method/form.phtml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@
5555
'Magento_Sales/order/create/form'
5656
], function(mage) {
5757
mage.apply();
58-
<?php if ($_methodsCount != 1) : ?>
5958
order.setPaymentMethod('<?= $block->escapeHtml($block->getSelectedMethodCode()); ?>');
60-
<?php endif; ?>
6159
});
6260
</script>
6361
<?php else : ?>

dev/tests/integration/testsuite/Magento/Sales/Block/Adminhtml/Order/Create/Billing/Method/FormTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ public function testContentUpdated()
4545
$block = $this->layout->createBlock(Form::class, 'order_billing_method');
4646
$block->setTemplate('Magento_Sales::order/create/billing/method/form.phtml');
4747

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+
);
4954
}
5055
}

0 commit comments

Comments
 (0)