woocommerce-paypal-payments/tests/integration
2025-06-30 16:45:36 +04:00
..
data Rename e2e to integration 2025-03-12 18:14:01 +01:00
PHPUnit Refactor the service name, variable names to use the new class 2025-06-30 16:45:36 +04:00
phpunit.xml.dist Rename e2e to integration 2025-03-12 18:14:01 +01:00
README.md Add group to skip tests in ci 2025-03-17 17:27:24 +01:00

Integration Tests

PHPUnit tests that runs against a working WP site. Useful to test modules (ex. classes) together without having the use test doubles but the real infrastructure.

How to run tests

  • Copy and rename .env.integration.example to .env.integration from the root of the plugin, set configurations if needed.
  • Run configuration: ddev php tests/integration/PHPUnit/setup.php
  • Run tests: ddev exec phpunit -c tests/integration/phpunit.xml.dist
  • Run a single test: ddev exec phpunit --filter testSomeTestName -c tests/integration/phpunit.xml.dist