indexes for IComment added to override the IConversation indexes.
svn path=/plone.app.discussion/trunk/; revision=27838
This commit is contained in:
@@ -64,6 +64,7 @@ class ConversationCatalogTest(PloneTestCase):
|
||||
path = {'query' : '/'.join(self.portal.doc1.getPhysicalPath()) },
|
||||
portal_type = "Document"
|
||||
)
|
||||
self.brains = brains
|
||||
self.conversation = conversation
|
||||
self.conversation_brain = brains[0]
|
||||
self.comment1 = comment1
|
||||
@@ -171,6 +172,16 @@ class ConversationCatalogTest(PloneTestCase):
|
||||
conversation_brain = brains[0]
|
||||
self.assertEquals(conversation_brain.commentators, ())
|
||||
|
||||
def test_conversation_indexes_not_in_comments(self):
|
||||
brains = self.catalog.searchResults(
|
||||
path = {'query' : '/'.join(self.portal.doc1.getPhysicalPath()) },
|
||||
portal_type = "Discussion Item"
|
||||
)
|
||||
comment1_brain = brains[0]
|
||||
self.assertEquals(comment1_brain.commentators, None)
|
||||
self.assertEquals(comment1_brain.last_comment_date, None)
|
||||
self.assertEquals(comment1_brain.total_comments, None)
|
||||
|
||||
class CommentCatalogTest(PloneTestCase):
|
||||
|
||||
layer = DiscussionLayer
|
||||
|
||||
Reference in New Issue
Block a user