Commit e5b096d7 authored by iv's avatar iv

ERP5Workflow: fix method_id access

Too many method_id were changed to use getTriggerMethodId
It should not be used on activities...
parent cff03e27
......@@ -1065,7 +1065,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
self.commit()
self.assertEqual(1, len([m for m in
self.portal.portal_activities.getMessageList()
if m.getTriggerMethodIdList() == ('immediateReindexObject',)
if m.method_id == 'immediateReindexObject'
and m.object_path == default_organisation.getPhysicalPath()]))
self.tic()
......@@ -1079,7 +1079,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
self.commit()
self.assertEqual(1, len([m for m in
self.portal.portal_activities.getMessageList()
if m.getTriggerMethodIdList() == ('immediateReindexObject',)
if m.method_id == 'immediateReindexObject'
and m.object_path == default_organisation.getPhysicalPath()]))
self.tic()
......@@ -1095,7 +1095,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
self.commit()
self.assertEqual(1, len([m for m in
self.portal.portal_activities.getMessageList()
if m.getTriggerMethodIdList() == ('immediateReindexObject',)
if m.method_id == 'immediateReindexObject'
and m.object_path == default_organisation.getPhysicalPath()]))
self.tic()
......@@ -1126,7 +1126,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
self.commit()
self.assertEqual(1, len([m for m in
self.portal.portal_activities.getMessageList()
if m.getTriggerMethodIdList() == ('immediateReindexObject',)
if m.method_id == 'immediateReindexObject'
and m.object_path == default_organisation.getPhysicalPath()]))
self.tic()
......@@ -1140,7 +1140,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
self.commit()
self.assertEqual(1, len([m for m in
self.portal.portal_activities.getMessageList()
if m.getTriggerMethodIdList() == ('immediateReindexObject',)
if m.method_id == 'immediateReindexObject'
and m.object_path == default_organisation.getPhysicalPath()]))
self.tic()
......@@ -1156,7 +1156,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
self.commit()
self.assertEqual(1, len([m for m in
self.portal.portal_activities.getMessageList()
if m.getTriggerMethodIdList() == ('immediateReindexObject',)
if m.method_id == 'immediateReindexObject'
and m.object_path == default_organisation.getPhysicalPath()]))
self.tic()
......
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