Drupal 7 also introduces a new testing framework called SimpleTest that can be used to test the business logic of your modules. A full discussion of the testing process is beyond the scope of this book, but we will do a quick walkthrough of the framework and look at some of the hooks that your module may want to implement to interact with the SimpleTest framework. For a complete discussion of building tests using the SimpleTest framework, see: http://drupal.org/simpletest.
To use SimpleTest, you need to do some configuration of your PHP installation.
The CURL extension for PHP must be enabled.
The DOM extension for PHP must be enabled. This should be done already in all installations of PHP 5.
A
memory_limit
of at least 256 MB should be configured.SimpleTest must be enabled within the module manager. This is called Testing within the module manger.
HTTP authentication settings for SimpleTest should be configured correctly for your server at
admin/config...