You are here

public function IPNHandlerTest::testInvalidIpn in Commerce PayPal 8

Tests when IPN request marked invalid..

File

tests/src/Kernel/IPNHandlerTest.php, line 54

Class

IPNHandlerTest
Tests the IPN handler.

Namespace

Drupal\Tests\commerce_paypal\Kernel

Code

public function testInvalidIpn() {
  $this
    ->expectException(BadRequestHttpException::class);
  $this
    ->expectExceptionMessage('Invalid IPN received and ignored.');
  $this->handler
    ->process($this
    ->createSampleIpnRequest());
}