Skip to content

Commit

Permalink
OP-370 - Fix behat
Browse files Browse the repository at this point in the history
  • Loading branch information
JanPalen committed Jul 25, 2024
1 parent 6edca38 commit 6d429f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions features/exporting_shipping_data_to_api_dpd.feature
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ Feature: Managing shipping gateway
And it has "package_length" field set to "22"
And it has "cod_payment_method_code" field set to "stripe_checkout"
And it has "collect_on_delivery_form" field set to "BANK_TRANSFER"
And the store has a product "Chicken" priced at "$2" in "Web-US" channel
And the store has a product "Chicken" priced at "$2.00" in "Web-US" channel
And customer "[email protected]" has placed 5 orders on the "Web-US" channel in each buying 5 "Chicken" products
And the customer set the shipping address "Mike Ross" addressed it to "350 5th Ave", "10118" "New York" in the "United States" to orders
And those orders were placed with "DPD Express" shipping method
And set product weight to "10"
And set product weight to "10.00"
And set units to the shipment

@ui
Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/Context/Setup/ShippingGatewayContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function theCustomerSetTheAddressAddressedItToInTheToOrders(AddressInterf
/**
* @Given set product weight to :weight
*/
public function setProductWeightTo($weight)
public function setProductWeightTo(float $weight)
{
/** @var ProductInterface $product */
$product = $this->sharedStorage->get('product');
Expand Down

0 comments on commit 6d429f0

Please sign in to comment.