public function testCanReviewPayment() { $this->assertEquals(false, $this->_model->canReviewPayment()); }
/** * Prepares payment info mock and adds it to the model * * @return \PHPUnit_Framework_MockObject_MockObject */ protected function _getPreparedPaymentInfo() { $paymentInfo = $this->getMockBuilder('Magento\\Sales\\Model\\Order\\Payment')->disableOriginalConstructor()->setMethods([])->getMock(); $this->_model->setData('info_instance', $paymentInfo); return $paymentInfo; }