O'Reilly logo

Drupal 7 Development by Example Beginner's Guide by Kurt Madel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Test Your Code with SimpleTest

There never seems to be enough time in the day to write additional code for testing your code. I have to admit that I am not a test first developer by nature. However, I do understand the importance and value that tests provide. Tests can be written and run whenever we add new functionality to our code. This will quickly let us know if our changes break any of the previously existing functionality. Drupal 7 includes a testing framework called SimpleTest that makes writing tests for Drupal easier.

The following topics will be covered in this chapter:

  • An introduction to the SimpleTest testing framework for Drupal 7
  • An overview of how SimpleTest is used with Drupal core
  • Code Examples: Writing our own SimpleTest ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required