protected function setUp() { $this->_method = new Varien_Object(); $this->_info = new Mage_Payment_Model_Info(); $this->_instructions = new Mage_Payment_Block_Info_Instructions(); $this->_info->setMethodInstance($this->_method); $this->_instructions->setInfo($this->_info); }
protected function setUp() { $objectManagerHelper = new Magento_Test_Helper_ObjectManager($this); $this->_method = new Varien_Object(); $this->_info = $objectManagerHelper->getModel('Mage_Payment_Model_Info'); $this->_instructions = $objectManagerHelper->getBlock('Mage_Payment_Block_Info_Instructions'); $this->_info->setMethodInstance($this->_method); $this->_instructions->setInfo($this->_info); }