Skip to content

Commit

Permalink
test: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Ernst committed Oct 12, 2023
1 parent 6c4ee73 commit 6c86b3c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/Unit/Shipment/Repository/CreateConceptsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,18 @@
],
],
],
'address with address1 and address2 combined' => [
'input' => [
[
'carrier' => ['id' => Carrier::CARRIER_POSTNL_ID],
'recipient' => array_merge(DEFAULT_INPUT_RECIPIENT, [
'address1' => 'Tuinstraat',
'address2' => '35',
]),
],
],
],

'simple domestic shipment' => [
'input' => [
[
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"carrier": 1,
"general_settings": {
"save_recipient_address": 0
},
"options": {
"package_type": 1,
"delivery_type": 2
},
"physical_properties": {
"weight": 0
},
"recipient": {
"cc": "NL",
"city": "Hoofddorp",
"person": "Jaap Krekel",
"postal_code": "2132JE",
"street": "Tuinstraat 35",
"street_additional_info": "35"
}
}
]

0 comments on commit 6c86b3c

Please sign in to comment.