def METHOD_NAME(self):
    # addAction should work even though PloneTestCase patches _cloneActions
    action_infos = self.actions.listActions()
    length = len(action_infos)
    self.actions.addAction(
        id="foo",
        name="foo_name",
        action="foo_action",
        condition="foo_condition",
        permission="foo_permission",
        category="foo_category",
        visible=1,
    )
    action_infos = self.actions.listActions()
    self.assertEqual(len(action_infos), length + 1)
    foo_action = self.actions.getActionObject("foo_category/foo")
    self.assertEqual(foo_action.id, "foo")
    self.assertEqual(foo_action.title, "foo_name")
    self.assertEqual(foo_action.permissions, ("foo_permission",))
    self.assertEqual(foo_action.category, "foo_category")