public function SymfonyEventDispatcherTest::testPreRefundPayment in Payment 8.2
@covers ::preRefundPayment
File
- tests/
src/ Unit/ SymfonyEventDispatcherTest.php, line 130
Class
- SymfonyEventDispatcherTest
- @coversDefaultClass \Drupal\payment\SymfonyEventDispatcher
Namespace
Drupal\Tests\payment\UnitCode
public function testPreRefundPayment() {
$payment = $this
->createMock(PaymentInterface::class);
$this->symfonyEventDispatcher
->expects($this
->once())
->method('dispatch')
->with(PaymentEvents::PAYMENT_PRE_REFUND, $this
->isInstanceOf(PaymentPreRefund::class));
$this->sut
->preRefundPayment($payment);
}