Jump to the navigation menu

Introduction to Automated Testing and Test-Driven Development with Drupal

Are you a Drupal Developer who wants to learn about automated testing and test-driven development, or do you manage a development team that you'd like to train?

I've delivered large Drupal projects using automated tests and test-driven development for custom functionality, and maintain Drupal modules with thousands of installations whilst using their tests to ensure working code and prevent regressions.

I offer an interactive full-day workshop (previously presented at DrupalCamp London, and remotely for DrupalCamp NYC) that provides an introduction to automated testing in Drupal and how to utilise test-driven development - which I've updated specifically for Drupal 10.

Contents

  • What is automated testing, and why write tests?
  • What types of tests are available in Drupal?
  • Outside-in vs. inside-out testing.
  • Configuring Drupal and PHPUnit to run tests locally.
  • Exercise: writing tests for existing Drupal core functionality.
  • Exercise: adding tests to an existing custom module.
  • What is test-driven development?
  • Exercise: writing a new Drupal module from scratch with test-driven development.
  • Q&A

Dates and prices

The workshop is currently only available remotely, and the next available date is February 23rd, 2024.

Seats are available at an early bird price of £299, with a 10% discount for bulk orders of 5 or more seats.

Book your seat


Testimonials

This course is really great and I've recommended it to my coworkers here at Palantir.net.

Daniel Davis-Boxleitner - Senior Engineer at Palantir.net Photo of Daniel Davis-Boxleitner

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!

Oliver really knows his stuff. Whether you are just starting out or looking to take your knowledge to the next level, his patient and clear way of explaining will help get you there.

Scott Euser - Head of Web Development Photo of Scott Euser