Skip to content

Commit 01e7e08

Browse files
committed
MAGETWO-98680: Cart Price Rule code is absent on "view Order/Invoice" Admin page if had been used for Free Shipping
1 parent 4dcc18a commit 01e7e08

File tree

2 files changed

+10
-1
lines changed
  • app/code/Magento/Sales/Block/Adminhtml
  • dev/tests/integration/testsuite/Magento/Sales/Block/Adminhtml

2 files changed

+10
-1
lines changed

app/code/Magento/Sales/Block/Adminhtml/Totals.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

88
use Magento\Sales\Model\Order;
99

10+
/**
11+
* Adminhtml sales totals block
12+
*
13+
* @package Magento\Sales\Block\Adminhtml
14+
*/
1015
class Totals extends \Magento\Sales\Block\Order\Totals
1116
{
1217
/**

dev/tests/integration/testsuite/Magento/Sales/Block/Adminhtml/TotalsTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ public function testShowShippingCoupon()
4848

4949
$shippingTotal = $this->_block->getTotal('shipping');
5050
$this->assertNotFalse($shippingTotal, 'Shipping method is absent on the total\'s block.');
51-
$this->assertContains('1234567890', $shippingTotal->getLabel(), 'Coupon code is absent in the shipping method label name.');
51+
$this->assertContains(
52+
'1234567890',
53+
$shippingTotal->getLabel(),
54+
'Coupon code is absent in the shipping method label name.'
55+
);
5256
}
5357
}

0 commit comments

Comments
 (0)