Skip to content

Commit 88999b5

Browse files
committed
AC-7549:: 2.4.6 alpha 2 Composer Build Failures - GraphQL - 01
1 parent ba2c3bb commit 88999b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ public function testConfigurableProductWithVariantsHavingSpecialAndTierPrices()
772772
"value" => round((float) $configurableProductVariants[$key]->getSpecialPrice(), 2)
773773
],
774774
"discount" => [
775-
"amount_off" => ($regularPrice[$key] - $finalPrice[$key]),
775+
"amount_off" => round($regularPrice[$key] - $finalPrice[$key], 2),
776776
"percent_off" => round(($regularPrice[$key] - $finalPrice[$key])*100/$regularPrice[$key], 2)
777777
]
778778
],
@@ -784,7 +784,7 @@ public function testConfigurableProductWithVariantsHavingSpecialAndTierPrices()
784784
"value" => round((float) $configurableProductVariants[$key]->getSpecialPrice(), 2)
785785
],
786786
"discount" => [
787-
"amount_off" => $regularPrice[$key] - $finalPrice[$key],
787+
"amount_off" => round($regularPrice[$key] - $finalPrice[$key], 2),
788788
"percent_off" => round(($regularPrice[$key] - $finalPrice[$key])*100/$regularPrice[$key], 2)
789789
]
790790
]

0 commit comments

Comments
 (0)