Skip to content

Commit

Permalink
make sure integration test does not crash
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-bokdam committed Aug 14, 2023
1 parent 8245714 commit e8c8e6e
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions Test/Integration/RequestBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,9 @@ public function testBuildRequestForPickupSave() : void
/** @var QuoteAddress $billingAddress */
$billingAddress = $objectManager->create(QuoteAddress::class, ['data' => $billingAddressData]);

$pickupPointData = [
LocationInterface::NAME => 'Mobile Express',
LocationInterface::COUNTRY => 'BE',
LocationInterface::RETAIL_NETWORK_ID => 'PNPBE-01',
LocationInterface::LOCATION_CODE => '218791',
LocationInterface::FROM => '15:00:00',
LocationInterface::CITY => 'Leuven',
LocationInterface::HOUSE_NR => '93',
LocationInterface::STREET => 'Diestsesteenweg',
LocationInterface::ZIPCODE => '3010'
];

/** @var LocationInterface $postnlPickupLocation */
$postnlPickupLocation = $objectManager->create(LocationInterface::class, ['data' => $pickupPointData]);

/** @var RequestBuilder $requestBuilder */
$requestBuilder = $objectManager->get(RequestBuilder::class);
$request = $requestBuilder->buildForLocations($billingAddress, $postnlPickupLocation);
$request = $requestBuilder->buildForLocations($billingAddress);

var_dump($request->toArray());
}
Expand Down

0 comments on commit e8c8e6e

Please sign in to comment.