Closed (fixed)
Project:
Token
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
31 May 2009 at 15:52 UTC
Updated:
27 Mar 2010 at 18:20 UTC
I have an initial set of tests. My strategy in testing was:
1. Create a "Display tokenized message to user action" that has a few tokens in the body of the message.
2. Set those tokens to really unique values.
3. Assign that action to a trigger.
4. Fire the trigger, see if we get the right text in the message.
This much works. It tests some of the basic features of token, token_actions, and the actions/trigger module.
I'd like to get a lot more test coverage, which shouldn't be too hard.
Comments
Comment #1
dave reidThanks Greg for the initial tests! I've started adding more specific tests for the actual tokens themselves and unit testing token functions in both the D7 and D6 branches. As we've got this rolling, I'm marking as fixed. We can always add tests when we fix bugs or add features.