Commit c4329ac3 authored by Rafael Monnerat's avatar Rafael Monnerat

Added test for Mark Posted


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24423 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0f486cee
......@@ -702,6 +702,23 @@ class TestCRMMailSend(ERP5TypeTestCase):
# this means no message have been set
self.assertEquals((), self.portal.MailHost._last_message)
def test_MailMarkPosted(self):
# mark_started_action transition on event workflow will not send an email
# even if the portal type is a Mail Message
for ptype in self.portal.getPortalEventTypeList():
event = self.portal.event_module.newContent(portal_type=ptype)
event.setSource('person_module/me')
event.setDestination('person_module/recipient')
event.setTextContent('Hello !')
self.portal.portal_workflow.doActionFor(event, 'receive_action')
self.portal.portal_workflow.doActionFor(event, 'mark_started_action')
get_transaction().commit()
self.tic()
# this means no message have been set
self.assertEquals((), self.portal.MailHost._last_message)
def test_MailMessageHTML(self):
# test sending a mail message edited as HTML (the default with FCKEditor),
# then the mail should have HTML.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment