Testing
Drupal 10 PHPUnit Testing: Kernel and Functional Tests
Drupal 10 ships with three PHPUnit test types: Unit (no Drupal), Kernel (real services, no browser), and Functional (full browser via BrowserKit). Each type makes different trade-offs between speed and coverage depth. This guide explains when to use each and how to write effective tests for custom modules. Key Takeaways