Skip to content

Commit b49d08f

Browse files
author
Cristian Partica
committed
MAGETWO-31324: Tax labels aren't displayed for Bundle options of "multiple select" & "drop-down" types
- static fix
1 parent 8f15d60 commit b49d08f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

app/code/Magento/Tax/Test/Unit/Model/ObserverTest.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ class ObserverTest extends \PHPUnit_Framework_TestCase
2121
* @param bool $displayPriceExcludingTax
2222
* @dataProvider dataProviderUpdateProductOptions
2323
*/
24-
public function testUpdateProductOptions($expected, $displayBothPrices, $priceIncludesTax, $displayPriceExcludingTax)
25-
{
24+
public function testUpdateProductOptions(
25+
$expected,
26+
$displayBothPrices,
27+
$priceIncludesTax,
28+
$displayPriceExcludingTax
29+
) {
2630

2731
$frameworkObject= new \Magento\Framework\Object();
2832
$frameworkObject->setAdditionalOptions([]);
@@ -86,7 +90,8 @@ public function dataProviderUpdateProductOptions()
8690
[
8791
'expected' => [
8892
'calculationAlgorithm' => 'TOTAL_BASE_CALCULATION',
89-
'optionTemplate' => '<%= label %><% if (finalPrice.value) { %> <%= finalPrice.formatted %> (Excl. tax: <%= basePrice.formatted %>)<% } %>',
93+
'optionTemplate' => '<%= label %><% if (finalPrice.value) '.
94+
'{ %> <%= finalPrice.formatted %> (Excl. tax: <%= basePrice.formatted %>)<% } %>',
9095
],
9196
'displayBothPrices' => true,
9297
'priceIncludesTax' => false,

0 commit comments

Comments
 (0)