Skip to content Skip to navigation

Module Testing Made Simple

Drupal has a module called SimpleTest for setting up automated tests. Despite its name it is not simple to use effectively. This sessions aims to remove some of the mystery around SimpleTest and Unit Testing in general.

I will start by introducing the concepts of automated testing frameworks and how to get started with SimpleTest.

I will then cover solutions to the three big problems people tend to have with SimpleTest in Drupal 7:

  •  Understanding the principles of SimpleTest
  • Understanding how to make unit testing work for you, not against you
  • Understanding the constraints of the Drupal environment. Drupal and PHP make unit  testing a little harder than it is in C++, C# or Java.

I will finish the session with some discussion about testing in Drupal 8, where structuring your unit testing well becomes even more important.

This session assumes basic knowledge of PHP and Drupal 7 modules.

Schedule info
Status: 
Accepted
Experience level: 
Beginner
Speaker(s): 
rablack
Session Time Slot(s): 
Saturday, April 19, 2014 - 15:00 to 15:45
Track: