Skip to content

Commit

Permalink
chore: add missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
PoulainMaxime committed Sep 4, 2024
1 parent c7ecb7d commit 1c1c1c8
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public function testGetData(): void
1,
OutOfRangeBehavior::USE_HIGHEST_RANGE,
[1, 3],
[1, 2],
'/img/c/45.jkg',
),
new CarrierRangesCollection([
Expand Down Expand Up @@ -138,15 +139,13 @@ public function testGetData(): void
'shipping_method' => 1,
'id_tax_rule_group' => 1,
'range_behavior' => OutOfRangeBehavior::USE_HIGHEST_RANGE,
'ranges_costs_control' => [
'zones' => [1, 2],
'ranges' => [
'data' => json_encode([
['from' => 0, 'to' => 10],
['from' => 10, 'to' => 20],
['from' => 20, 'to' => 25],
]),
],
'zones' => [1, 2],
'ranges' => [
'data' => json_encode([
['from' => 0, 'to' => 10],
['from' => 10, 'to' => 20],
['from' => 20, 'to' => 25],
]),
],
'ranges_costs' => [
['zoneId' => 1, 'zoneName' => 'Zone A', 'ranges' => [
Expand Down

0 comments on commit 1c1c1c8

Please sign in to comment.