Check for a 'pending' state in the current comment workflow instead of checking for the 'comment_review' workflow. Refs #11184. Merge last three submits in CHANGES.txt.

svn path=/plone.app.discussion/trunk/; revision=40570
This commit is contained in:
Timo Stollenwerk
2010-10-08 10:37:10 +00:00
parent 6e9bb4a9cd
commit 324d2274bd
3 changed files with 10 additions and 12 deletions
@@ -239,7 +239,7 @@ class TestModeratorNotificationUnit(PloneTestCase):
self.portal.portal_types['Document'].allow_discussion = True
self.portal.portal_workflow.setChainForPortalTypes(
('Discussion Item',),
('simple_publication_workflow',))
('one_state_workflow',))
comment = createObject('plone.Comment')
comment.title = 'Comment 1'