getActionsFor is deprecated. Use listActionInfos

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32382 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 25054a0f
...@@ -1203,9 +1203,11 @@ class TestWorkflow(SecurityTestCase): ...@@ -1203,9 +1203,11 @@ class TestWorkflow(SecurityTestCase):
self.assertUserCanModifyDocument(username, sale_invoice) self.assertUserCanModifyDocument(username, sale_invoice)
self.assertUserCanViewDocument(username, sale_invoice) self.assertUserCanViewDocument(username, sale_invoice)
self.assertSameSet(('confirm_action', 'plan_action',), portal_workflow = self.portal.portal_workflow
[action['id'] for action in self.portal.portal_workflow.getActionsFor(sale_invoice) action_ids = [action['id'] for action in
if action['category'] == 'workflow']) portal_workflow.listActionInfos(object=sale_invoice)
if action['category'] == 'workflow']
self.assertSameSet(('confirm_action', 'plan_action',), action_ids)
import unittest import unittest
def test_suite(): def test_suite():
......
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