Skip to content

Commit a69b9a4

Browse files
authored
Update ProductPriceTest.php for Unit test
1 parent ed535b8 commit a69b9a4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

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

0 commit comments

Comments
 (0)