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()
772
772
"value " => round ((float ) $ configurableProductVariants [$ key ]->getSpecialPrice (), 2 )
773
773
],
774
774
"discount " => [
775
- "amount_off " => ($ regularPrice [$ key ] - $ finalPrice [$ key ]),
775
+ "amount_off " => round ($ regularPrice [$ key ] - $ finalPrice [$ key ], 2 ),
776
776
"percent_off " => round (($ regularPrice [$ key ] - $ finalPrice [$ key ])*100 /$ regularPrice [$ key ], 2 )
777
777
]
778
778
],
@@ -784,7 +784,7 @@ public function testConfigurableProductWithVariantsHavingSpecialAndTierPrices()
784
784
"value " => round ((float ) $ configurableProductVariants [$ key ]->getSpecialPrice (), 2 )
785
785
],
786
786
"discount " => [
787
- "amount_off " => $ regularPrice [$ key ] - $ finalPrice [$ key ],
787
+ "amount_off " => round ( $ regularPrice [$ key ] - $ finalPrice [$ key ], 2 ) ,
788
788
"percent_off " => round (($ regularPrice [$ key ] - $ finalPrice [$ key ])*100 /$ regularPrice [$ key ], 2 )
789
789
]
790
790
]
You can’t perform that action at this time.
0 commit comments