Skip to content

Commit b9fa03f

Browse files
authored
Update ProductPriceTest.php for Static Test
1 parent acc3f0a commit b9fa03f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/ProductPriceTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,9 +1229,11 @@ private function assertPrices($expectedPrices, $actualPrices, $currency = 'USD')
12291229
self::EPSILON
12301230
);
12311231
$this->assertEqualsWithDelta(
1232-
$expected['discount']['percent_off'],
1232+
$expected['discount']['percent_off'],
12331233
round(
1234-
($actual['regular_price']['value'] - round($actual['final_price']['value'], 2)) * 100 / $actual['regular_price']['value'],
1234+
(
1235+
$actual['regular_price']['value'] - round($actual['final_price']['value'], 2)
1236+
) * 100 / $actual['regular_price']['value'],
12351237
2
12361238
),
12371239
self::EPSILON

0 commit comments

Comments
 (0)