public function PaymentMethodBaseTest::testRefundPayment in Payment 8.2
@covers ::refundPayment @covers ::doRefundPayment
File
- tests/
src/ Unit/ Plugin/ Payment/ Method/ PaymentMethodBaseTest.php, line 336
Class
- PaymentMethodBaseTest
- @coversDefaultClass \Drupal\payment\Plugin\Payment\Method\PaymentMethodBase
Namespace
Drupal\Tests\payment\Unit\Plugin\Payment\MethodCode
public function testRefundPayment() {
$this
->expectException(\Exception::class);
$payment = $this
->getMockPayment();
$this->sut
->setPayment($payment);
$result = $this->sut
->refundPayment();
$this
->assertInstanceOf(OperationResultInterface::class, $result);
}