Closed (fixed)
Project:
SimpleTest
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
11 Mar 2008 at 05:05 UTC
Updated:
29 Mar 2008 at 21:52 UTC
I have create a test for the contact module that checks just about everything.
The only question that I have is to the validity of the valid_email_address function in common.inc
It returns the following e-mail addresses as valid:
Both of which I don't think are valid, but maybe I am mistaken.
A possible solution could be to change the regular expression, maybe something like: ^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$.
Found at: http://www.regular-expressions.info/email.html.
| Comment | File | Size | Author |
|---|---|---|---|
| contact_module.test_.txt | 10.34 KB | boombatower |
Comments
Comment #1
boombatower commentedCommitted.
I will leave the two e-mail address in there in hopes that the e-mail validation is fix: http://drupal.org/node/214114.
If not than this test can easily be patched.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.