Skip to content

Commit af15ed0

Browse files
committed
#11380: Payment Method Issue in Admin
1 parent 07d43db commit af15ed0

File tree

1 file changed

+3
-1
lines changed
  • dev/tests/integration/testsuite/Magento/Sales/Block/Adminhtml/Order/Create/Billing/Method

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ 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("order.setPaymentMethod('" . $block->escapeHtml($block->getSelectedMethodCode()) . "')", $html);
4951
}
5052
}

0 commit comments

Comments
 (0)