public function IPNHandlerTest::testEmptyBody in Commerce PayPal 8
Tests when IPN body is empty.
File
- tests/
src/ Kernel/ IPNHandlerTest.php, line 45
Class
- IPNHandlerTest
- Tests the IPN handler.
Namespace
Drupal\Tests\commerce_paypal\KernelCode
public function testEmptyBody() {
$this
->expectException(BadRequestHttpException::class);
$this
->expectExceptionMessage('IPN URL accessed with no POST data submitted.');
$this->handler
->process(new Request());
}