Example #1
0
 /**
  * Retrieve formatted store address from config
  *
  * @return string
  */
 public function getFormattedAddress()
 {
     return $this->information->getFormattedAddress($this);
 }
 /**
  * @covers \Magento\Store\Model\Information::getFormattedAddress
  * @covers \Magento\Store\Model\Information::getStoreInformationObject
  */
 public function testGetFormattedAddress()
 {
     $expected = implode("\n", $this->mockConfigData + ['country' => 'Rohan', 'region' => 'Edoras']);
     $result = $this->model->getFormattedAddress($this->store);
     $this->assertEquals($expected, $result);
 }