You are here

public function SymfonyEventDispatcherTest::testPreResumeContext in Payment 8.2

@covers ::preResumeContext

File

tests/src/Unit/SymfonyEventDispatcherTest.php, line 143

Class

SymfonyEventDispatcherTest
@coversDefaultClass \Drupal\payment\SymfonyEventDispatcher

Namespace

Drupal\Tests\payment\Unit

Code

public function testPreResumeContext() {
  $payment = $this
    ->createMock(PaymentInterface::class);
  $this->symfonyEventDispatcher
    ->expects($this
    ->once())
    ->method('dispatch')
    ->with(PaymentEvents::PAYMENT_TYPE_PRE_RESUME_CONTEXT, $this
    ->isInstanceOf(PaymentTypePreResumeContext::class));
  $this->sut
    ->preResumeContext($payment);
}