Add SimpleTest tests to CustomError module
geodaniel - December 27, 2007 - 19:19
| Project: | CustomError |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
I've started putting some work into creating some SimpleTest tests for the CustomError module. Attached is a patch for the module which implements hook_simpletest() and an initial test which simply tests that the 404 message is returned when expected. The test file should be renamed to pagenotfound.test and placed into a tests directory in the customerror directory.
| Attachment | Size |
|---|---|
| pagenotfound.txt | 1.94 KB |
| customerror_simpletest.patch | 719 bytes |

#1
Cleaning up spacing in test file.
#2
Committed to HEAD and 5.x.
#3
Thanks Khalid
#4
Attaching a patch to fix up the page not found test (spacing and also adding a user login so that we're not relying on the anonymous user having access content privileges) and also adding a test for access denied.
#5
Committed to HEAD and 5.x.
Please do not reopen fixed issue for new features. Create a new one.
#6
Thanks, I will do that in the future.
#7
Automatically closed -- issue fixed for two weeks with no activity.