48 $objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
50 $this->shippingAddressManagementMock = $this->createMock(
51 \
Magento\
Quote\Model\ShippingAddressManagementInterface::class
53 $this->quoteAddressMock = $this->createMock(\
Magento\
Quote\Model\
Quote\Address::class);
55 $this->maskedCartId =
'f216207248d65c789b17be8545e0aa73';
59 list($this->quoteIdMaskFactoryMock, $this->quoteIdMaskMock) = $guestCartTestHelper->mockQuoteIdMask(
65 \
Magento\
Quote\Model\GuestCart\GuestShippingAddressManagement::class,
67 'shippingAddressManagement' => $this->shippingAddressManagementMock,
68 'quoteIdMaskFactory' => $this->quoteIdMaskFactoryMock
76 $this->shippingAddressManagementMock->expects($this->once())->method(
'assign')->willReturn($addressId);
77 $this->assertEquals($addressId, $this->model->assign($this->maskedCartId, $this->quoteAddressMock));
82 $this->shippingAddressManagementMock->expects($this->once())->method(
'get')->willReturn(
83 $this->quoteAddressMock
85 $this->assertEquals($this->quoteAddressMock, $this->model->get($this->maskedCartId));
$shippingAddressManagementMock