/** * Get mailing address from config * * @return string */ protected function getMailingAddress() { return nl2br($this->escaper->escapeHtml($this->method->getMailingAddress())); }
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()); }