File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments