else{ static::assertEquals($rootProductId, $lineItem->getId()); } ++$idx; } // set token to be equal for further comparison
$cart->setToken($convertedCart->getToken());
// remove delivery information from line items
foreach($cart->getDeliveries()as$delivery){ // remove address from ShippingLocation
$property = ReflectionHelper::getProperty(ShippingLocation::class, 'address'); $property->setValue($delivery->getLocation(), null);