$originalCart =
new Cart('original'
);
$deliveryTime =
$this->
generateDeliveryTimeDummy();
$shippingMethod =
new ShippingMethodEntity();
$shippingMethod->
setId('1'
);
$shippingMethod->
setName('Express'
);
$shippingMethod->
addTranslated('name', 'Express'
);
$shippingMethod->
setDeliveryTime($deliveryTime);
$shippingMethod->
setAvailabilityRuleId(Uuid::
randomHex());
$shippingMethod->
setTaxType(ShippingMethodEntity::TAX_TYPE_AUTO
);
$deliveryDate =
new DeliveryDate(new \
DateTime(),
new \
DateTime());
$delivery =
new Delivery( new DeliveryPositionCollection(),
$deliveryDate,
$shippingMethod,
new ShippingLocation(new CountryEntity(), null, null
),
new CalculatedPrice(10, 10,
new CalculatedTaxCollection(),
new TaxRuleCollection()) );
$originalCart->
setDeliveries(new DeliveryCollection([$delivery]));