6 require
__DIR__ .
'/../../Customer/_files/customer.php';
7 require
__DIR__ .
'/../../Customer/_files/customer_two_addresses.php';
14 \
Magento\Framework\
App\Config\MutableScopeConfigInterface::class
15 )->setValue(
'carriers/flatrate/active', 1, \
Magento\Store\Model\ScopeInterface::SCOPE_STORE);
17 ->setValue(
'payment/paypal_express/active', 1, \
Magento\Store\Model\ScopeInterface::SCOPE_STORE);
27 ->setAttributeSetId(4)
28 ->setName(
'Simple Product')
32 'use_config_manage_stock' => 1,
34 'is_qty_decimal' => 0,
37 ->setVisibility(\
Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
38 ->setStatus(\
Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
62 $quote->setCustomerIsGuest(
false)
65 ->setStoreId(
$objectManager->get(\
Magento\Store\Model\StoreManagerInterface::class)->getStore()->getId())
66 ->setReservedOrderId(
'test02')
70 $quote->getShippingAddress()->setShippingMethod(
'flatrate_flatrate');
71 $quote->getShippingAddress()->setCollectShippingRates(
true);
72 $quote->getPayment()->setMethod(\
Magento\Paypal\Model\Config::METHOD_WPS_EXPRESS);
$billingAddressDataObject
defined('TESTS_BP')||define('TESTS_BP' __DIR__
$shippingAddressDataObject
static getObjectManager()