/** @var Delivery $delivery */
$delivery =
$deliveryCollection->
first();
static::
assertSame($shippingMethod,
$delivery->
getShippingMethod());
static::
assertSame($deliveryLocation,
$delivery->
getLocation());
static::
assertEquals( new CalculatedPrice(0, 0,
new CalculatedTaxCollection(),
new TaxRuleCollection()),
$delivery->
getShippingCosts(),
);
static::
assertEquals($expectedDeliveryDate,
$delivery->
getDeliveryDate());
} /**
* @return iterable<array{0: LineItemCollection, 1: DeliveryDate}>
*/
public static function provideLineItemDataForSingleDelivery(): iterable
{ yield 'Shipping method delivery data is used if position has no own delivery time' =>
[ new LineItemCollection([ (new LineItem('line-item-id', LineItem::CUSTOM_LINE_ITEM_TYPE, null, 1
)) ->
assign([