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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user