7 require
'quote_with_address.php';
12 \
Magento\Quote\Model\Quote\Address\Rate::class
14 $rate->setCode(
'freeshipping_freeshipping');
17 $quote->getShippingAddress()->setShippingMethod(
'freeshipping_freeshipping');
18 $quote->getShippingAddress()->addShippingRate(
$rate);
19 $quote->getPayment()->setMethod(
'checkmo');
23 $quote->getPayment()->setMethod(
'checkmo');
27 ->create(\
Magento\Quote\Model\QuoteIdMaskFactory::class)
static getObjectManager()