public function testGetBuildNotationCode() { $this->_model->setMethod('payflow_direct'); $this->_model->setStoreId(123); $this->_scopeConfig->expects($this->once())->method('getValue')->with('paypal/bncode', ScopeInterface::SCOPE_STORE, 123)->will($this->returnValue('some BN code')); $this->assertEquals('some BN code', $this->_model->getBuildNotationCode()); }
/** * BN code getter * * @return string */ public function getBuildNotationCode() { return $this->_config->getBuildNotationCode(); }