Exemple #1
0
 public function testGetInstructions()
 {
     $method = $this->getMock('Magento\\Payment\\Model\\MethodInterface', ['getInstructions', 'getCode', 'getFormBlockType', 'getTitle'], [], '', false);
     $method->expects($this->once())->method('getInstructions')->willReturn('instructions');
     $this->_model->setData('method', $method);
     $this->assertEquals('instructions', $this->_model->getInstructions());
 }
 public function testGetInstructions()
 {
     $method = $this->getMockBuilder('Magento\\Payment\\Model\\MethodInterface')->getMockForAbstractClass();
     $method->expects($this->once())->method('getConfigData')->willReturn('instructions');
     $this->_model->setData('method', $method);
     $this->assertEquals('instructions', $this->_model->getInstructions());
 }