WORKSHOP - PHPUnit for Drupal: Getting Started with Automated Testing (1.5h)

Automated testing can make a big difference when building and maintaining Drupal projects. In this workshop, we’ll take a practical look at how to get started with PHPUnit, the testing framework used in Drupal.

We’ll cover the basics of Drupal’s testing tools, including what different types of tests are for (like funcional, funcional javascript and kernel tests), how to write simple test cases, and how to run them during development. Through a few real examples, you’ll see how tests can help catch bugs early, make refactoring safer, and improve confidence in your code.

This session is aimed at Drupal developers who are curious about testing or want to start adding automated tests to their workflow. You don’t need previous experience with testing frameworks—just some familiarity with PHP and Drupal development. By the end of the workshop, you should have a clearer idea of how testing fits into everyday Drupal development and how to start using it in your own projects.