21 private $objectManager;
32 public function testEstimateByExtendedAddress()
36 $quote->load(
'test01',
'reserved_order_id');
39 $this->fail(
'quote fixture failed');
44 ->create(\
Magento\Quote\Model\QuoteIdMaskFactory::class)
51 'resourcePath' =>
'/V1/guest-carts/' .
$cartId .
'/estimate-shipping-methods',
56 'serviceVersion' =>
'V1',
57 'operation' => self::SERVICE_NAME .
'EstimateByExtendedAddress',
60 if (TESTS_WEB_API_ADAPTER == self::ADAPTER_SOAP) {
99 $this->assertEmpty(
$quote->getCustomerId());
102 $this->assertNotEmpty(
$result);
103 $this->assertEquals(1, count(
$result));
105 $this->assertEquals(
"flatrate",
$rate[
'carrier_code']);
106 $this->assertEquals(0,
$rate[
'amount']);
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)
const SAVE_IN_ADDRESS_BOOK
static getObjectManager()
const CUSTOMER_ADDRESS_ID