Skip to content

TESTING

Note

The tests included with the Stripe extension have not been updated for 6.x

PHPUnit

This extension comes with two PHP Unit tests:

  • Ipn - This unit test ensures that a recurring contribution is properly updated after the event is received from Stripe and that it is properly canceled when cancelled via Stripe.
  • Direct - This unit test ensures that a direct payment to Stripe is properly recorded in the database.

Tests can be run most easily via an installation made through CiviCRM Buildkit (https://github.com/civicrm/civicrm-buildkit) by changing into the extension directory and running:

phpunit6 tests/phpunit/CRM/Stripe/IpnTest.php
phpunit6 tests/phpunit/CRM/Stripe/DirectTest.php

Manual Tests

  1. Test webform submission with payment and user-select , single processor.

  2. Test online contribution page on Wordpress.

  3. Test online contribution page on Joomla.
  4. Test online event registration (single processor).
  5. Test online event registration (no confirmation page).
  6. Test online event registration (multiple participants).
  7. Test online event registration (multiple processors, Stripe default).
  8. Test online event registration (multiple processors, Stripe not default).
  9. Test online event registration (cart checkout).

Drupal Webform Tests

  1. Webform with single payment processor (Stripe) - Amount = 0.
  2. Webform with single payment processor (Stripe) - Amount > 0.
  3. Webform with multiple payment processor (Stripe selected) - Amount = 0.
  4. Webform with multiple payment processor (Stripe selected) - Amount > 0.
  5. Webform with multiple payment processor (Pay Later selected) - Amount = 0.
  6. Webform with multiple payment processor (Pay Later selected) - Amount > 0.
  7. Webform with multiple payment processor (Non-stripe processor selected) - Amount = 0.
  8. Webform with multiple payment processor (Non-stripe processor selected) - Amount > 0.