/** * Returns shipping address * * @return AddressAdapterInterface|null */ public function getShippingAddress() { if ($this->quote->getShippingAddress()) { return $this->addressAdapterFactory->create(['address' => $this->quote->getShippingAddress()]); } return null; }
public function testGetEmail() { $expected = '*****@*****.**'; $this->quoteAddressMock->expects($this->once())->method('getEmail')->willReturn($expected); $this->assertEquals($expected, $this->model->getEmail()); }