Skip to content

Commit 6af7c11

Browse files
authored
Fix sprintf format for partial price in Refund context (#484)
| Q | A | --------------- | ----- | Branch? | 2.0 | Bug fix? | yes | New feature? | no | Related tickets | none While using the behat context from this plugin for this PR : FLUX-SE/SyliusStripePlugin#20 I Discovered an odd bug that should make the CI fail normally. This is just a quick fix there is other things to fix to make this contexts usable externaly.
2 parents 8973aff + 69d4281 commit 6af7c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Behat/Context/Ui/RefundingContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function decideToRefundPartFromProductWithPayment(
113113
$this->orderRefundsPage->pickPartOfUnitWithProductToRefund(
114114
$productName,
115115
$unitNumber-1,
116-
sprintf("%f.2", $partialPrice / 100)
116+
sprintf("%.2f", $partialPrice / 100)
117117
);
118118

119119
$this->orderRefundsPage->choosePaymentMethod($paymentMethod);

0 commit comments

Comments
 (0)