Testing is important. Why? It allows developers to add new features and edit and refactor existing code without the worry of adding regressions, reduces the reliance on manual testing to discover bugs, and by taking a test driven approach, your implementation code is leaner as you only write what is needed for your tests to pass.

Drupal 7 includes the SimpleTest module for unit and functional testing, whilst Drupal 8 also includes and supports PHPUnit - the defacto PHP testing framework, used by other PHP projects including Symfony and Laravel - making it easier for people to test their code. And with testing being one of the Drupal core gates with tests needing to be included with every new feature or bug fix, and core’s 100% pass rate policy, testing has become an essential skill when contributing to core, or when working on your own projects.

In this talk, we’ll cover the methodology and terminology involved with automated testing, and then take a test driven approach to creating a new Drupal module.

Also presented at...

  • DrupalCamp London 2017 in London, UK
  • DrupalCamp Dublin 2017 in Dublin, Ireland
  • Drupal Bristol in Bristol, UK
  • Drupal Somerset in Glastonbury, UK
  • Drupal Developer Days 2018 in Lisbon, Portugal
  • DrupalCamp London 2019 in London, UK

Classifiers

Track Audience(s) Experience Level Tags
Back End Development
Developers (Back-end php focused)
DevOps Engineers, Tech Leads, Lead Developers
Intermediate

Scheduling Information

,

About the Presenter

Oliver Davies

Senior Engineer
Inviqa

Oliver Davies (@opdavies) has been building websites since 2007, and speaking at meetups and conferences since 2012. He is a Full Stack Developer and an Acquia certified Drupal Grand Master, who also has experience developing with Symfony, Laravel, Sculpin and Vue.js, as well as with DevOps and systems administration.

He is a Senior Software Engineer and Technical Team Lead at Inviqa, a Drupal core contributor and mentor, and an open source and contribution advocate.

He regularly blogs and gives talks on various topics, maintains and contributes to various open source projects, and co-organises the PHP South Wales user group.

Connect & Follow