protected function setUp() { $context = $this->getMock('Magento\\Framework\\View\\Element\\Template\\Context', [], [], '', false); $this->_instructions = new \Magento\Payment\Block\Info\Instructions($context); $this->_info = $this->getMock('Magento\\Payment\\Model\\Info', [], [], '', false); $this->_instructions->setData('info', $this->_info); }