/** * @dataProvider boolProvider */ public function testCanRefund($canRefund) { $this->paymentMethodMock->expects($this->once())->method('canRefund')->willReturn($canRefund); $this->assertEquals($canRefund, $this->payment->canRefund()); }
/** * {@inheritdoc} */ public function canRefund() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'canRefund'); if (!$pluginInfo) { return parent::canRefund(); } else { return $this->___callPlugins('canRefund', func_get_args(), $pluginInfo); } }