diff --git a/plone/app/discussion/tests/test_tool.py b/plone/app/discussion/tests/test_tool.py index c95ba8e..3cfc968 100644 --- a/plone/app/discussion/tests/test_tool.py +++ b/plone/app/discussion/tests/test_tool.py @@ -1,6 +1,6 @@ import unittest -from zope.component import getUtility, createObject +from zope.component import queryUtility, createObject from Products.PloneTestCase.ptc import PloneTestCase from plone.app.discussion.tests.layer import DiscussionLayer @@ -31,7 +31,7 @@ class ToolTest(PloneTestCase): conversation.addComment(comment) # Check that the comment got indexed in the tool: - tool = getUtility(ICommentingTool) + tool = queryUtility(ICommentingTool) comment = list(tool.searchResults()) self.assert_(len(comment) == 1, "There is only one comment, but we got" " %s results in the search" % len(comment)) diff --git a/plone/app/discussion/tool.py b/plone/app/discussion/tool.py index b4d2478..c12a8e9 100644 --- a/plone/app/discussion/tool.py +++ b/plone/app/discussion/tool.py @@ -1,5 +1,5 @@ """The portal_discussion tool, usually accessed via -getUtility(ICommentingTool). The default implementation delegates to the +queryUtility(ICommentingTool). The default implementation delegates to the standard portal_catalog for indexing comments. BBB support for the old portal_discussion is provided in the bbb package.