indexes for IComment added to override the IConversation indexes.

svn path=/plone.app.discussion/trunk/; revision=27838
This commit is contained in:
Timo Stollenwerk
2009-07-06 16:56:09 +00:00
parent fa2f961ebe
commit a946fb54fa
3 changed files with 30 additions and 4 deletions
@@ -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