/** * Get payable to from config * * @return string */ protected function getPayableTo() { return $this->method->getPayableTo(); }
public function testGetPayableTo() { $this->_object->setStore(1); $this->_scopeConfig->expects($this->once())->method('getValue')->with('payment/checkmo/payable_to', 'store', 1)->willReturn('payable'); $this->assertEquals('payable', $this->_object->getPayableTo()); }