I'm currently updating this course for Drupal 11. If you find any bugs or have any issues, please let me know.

Introduction to Automated Testing in Drupal email course

Do you want to learn how to write automated tests and do test-driven development in Drupal?

Register below for my free 10-day email course, where you'll learn to write a new Drupal module from scratch with automated tests.

Learn to test things like:

  • Whether pages exist.
  • Whether users can view specific pages based on their permissions.
  • Whether certain content is visible on a page given particular circumstances.
  • Refactoring code to test dedicated classes such as Services, Repositories, Builders and Actions.

Testimonials

The course was very informative. One of the biggest pain points with Drupal testing was that there was no clear and definitive guide on setting up the php unit XML file to get functional and kernel tests working right away. Your guide was fantastic and I will definitely be using it going forward in my module development for work.

Frank Landry Photo of Frank Landry

Well done. You've created a really excellent resource here that has the potential to bring Drupal development forward a huge leap. You’ve managed to simplify and share some often complex seeming issues.

Adam Nuttall - Drupal Engineer Photo of Adam Nuttall

Following your "Automated tests" emails and they are great! Such a pleasant reading. I love how you start from the very beginning and keeping things simple, step by step.

Looking forward to more content!

Oliver's approach to testing is a continual reminder of his commitment to delivering high-quality, bug-free, software.

Mike Karthauser - Senior Software Engineer Photo of Mike Karthauser

I've wanted to explore testing for a while, but as a PHP developer with 10 years of Drupal experience who'd written next to no tests, I really needed guidance. Oliver's expertise in testing and TDD motivated me to seek his help.

Before our call, I'd started writing tests for my modules but needed direction, understanding the code to a degree but needing help with approach. Oliver clarified both unit and integration testing, providing solutions for my challenges, and shared his code for inspiration and help. He also gave me ideas on how to utilise contrib code to help me further.

Consulting with an expert, I gained the clarity and confidence I needed in tackling testing with structured, maintainable practices. Oliver's adaptability and tailored services make him highly recommendable.

Thanks, Oliver - I feel empowered and know exactly what approach to take now!

About me

Picture of Oliver

I'm an Acquia-certified Drupal Triple Expert with 17 years of experience, an open-source software maintainer and Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.