Related Content
Mimicking Data Provider Functionality In Drupal SimpleTest
Although Drupal SimpleTest is an extremely useful module it doesn't currently support data providers, which is a shame as I use that feature quite a bit in other testing frameworks.
Testing Multi Step Forms In Drupal 7
I am currently using SimpleTest to test a complex multi-step form implementation in Drupal 7. It made sense to do it this way as there are a lot of factors involved that all need to be accounted for and automating what form elements appeared on what page was the most robust solution.
Adding The autocomplete Attribute To Forms And Password Fields In Drupal 6
Many modern browsers now come with auto-complete functionality so that users can fill in their details quickly without having to type in their username and password every time they want to log on. This can be turned off by adding the attribute "autocomplete" to the form and password elements and setting its value to 'off'.
How To Change No Search Results Text In Drupal 6
Every Drupal project I finish will usually have the same request at some point. This usually happens when the client tries to do a search that produces no results and sees the search hinting text about blue smurfs.
Adding Reset Password Support To Drupal 6 Password Recovery Email
Drupal is capable of sending out a few different emails to users depending on different actions. The emails can be customised quite nicely with usernames, passwords, email addresses and other things by using a set of tokens.
Drupal 6 Form Elements Example Module
During my work developing Drupal sites I am quite often asked if I can provide a example of form elements for designers. This is so that they can test their designs with all possible form elements that might appear in a Drupal install and make sure that the theme we create will be robust and future proof.
Comments
Submitted by Carles on Thu, 12/30/2010 - 13:00
PermalinkThat was super easy, and saved me a huge potential headache...
Now if Drupal would just switch unit tests to PHPUnit instead...
Submitted by Max on Mon, 07/25/2011 - 21:16
PermalinkYou said, "I eventually figured out that the error was being caused because when Drupal Simpletest starts up it uses the default instillation profile to create a dummy database that will be used for each test to run."
You mean for just DrupalWebTestCase; or for DrupalWebTestCase and DrupalUnitTestCase? I guess what i am asking is this -- does DrupalUnitTestCase create a dummy database, even though the tests cannot use it?
Submitted by Anonymous on Wed, 12/07/2011 - 23:05
PermalinkSubmitted by gorka on Fri, 05/01/2015 - 20:09
PermalinkAdd new comment