diff --git a/tests/Behat/Page/Admin/OrderRefundsPage.php b/tests/Behat/Page/Admin/OrderRefundsPage.php index c383db96..146dc8ef 100644 --- a/tests/Behat/Page/Admin/OrderRefundsPage.php +++ b/tests/Behat/Page/Admin/OrderRefundsPage.php @@ -44,7 +44,7 @@ public function pickUnitWithProductToRefund(string $productName, int $unitNumber /** @var double $total */ $total -= $refunded; - $units[$unitNumber]->find('css','td:nth-child(3) input')->setValue($total); + $units[$unitNumber]->find('css','td:nth-child(3) input')->setValue((string) $total); } public function pickPartOfUnitWithProductToRefund(string $productName, int $unitNumber, string $amount): void @@ -71,7 +71,7 @@ public function pickOrderShipment(?string $shippingMethodName = null): void $total = (double) substr($total, 1) - (double) substr($refunded, 1); } - $orderShipment->find('css','td:nth-child(3) input')->setValue($total); + $orderShipment->find('css','td:nth-child(3) input')->setValue((string) $total); } public function pickPartOfOrderShipmentToRefund(string $amount): void