Hi List,

I have developed my own workflow. Many steps are present. The first one is to send a notification email to a person to inform her that she has received an activation request in magnolia. Then I send the ticket to the concern user (the one who receives the email). Nothing new comparing a standard workflow.

But the new feature is, this person can reply to the email and so the ticket that she has received in magnolia is proceeded. To do this, I put in the email some information concerning the workflowItem. I have a thread that reads the email and get the workflowItem informations to proceed it.

My problem is that I want to write unit tests for my email (contains workflowItem information). So I have to simulate a workflowItem but I don't know how to do this?

If you have any ideas,don't hesitate.

Thanks for your replies.

NB: Thanks Greg for your reply in the user list but as I'm a newbie in test it would be cool if you would have more precisions about mocks concerning workflows and all object around workflows.

CAPITAINE Harold


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to