/**
  * Get mailing address from config
  *
  * @return string
  */
 protected function getMailingAddress()
 {
     return nl2br($this->escaper->escapeHtml($this->method->getMailingAddress()));
 }
Пример #2
0
 public function testGetMailingAddress()
 {
     $this->_object->setStore(1);
     $this->_scopeConfig->expects($this->once())->method('getValue')->with('payment/checkmo/mailing_address', 'store', 1)->willReturn('*****@*****.**');
     $this->assertEquals('*****@*****.**', $this->_object->getMailingAddress());
 }