mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
ab3f35257b
* Remove CommentList and replace with a polymorphic has_one relationship * Tweaks for unit tests. Add tests for encode/decodeClassName.
193 lines
4.9 KiB
YAML
193 lines
4.9 KiB
YAML
SilverStripe\Security\Member:
|
|
commentadmin:
|
|
FirstName: admin
|
|
commentadmin2:
|
|
FirstName: admin2
|
|
visitor:
|
|
FirstName: visitor
|
|
|
|
SilverStripe\Security\Group:
|
|
commentadmins:
|
|
Title: Admin
|
|
Members: =>SilverStripe\Security\Member.commentadmin, =>SilverStripe\Security\Member.commentadmin2
|
|
|
|
SilverStripe\Security\Permission:
|
|
admin:
|
|
Code: CMS_ACCESS_CommentAdmin
|
|
Group: =>SilverStripe\Security\Group.commentadmins
|
|
|
|
SilverStripe\Comments\Tests\Stubs\CommentableItem:
|
|
first:
|
|
Title: First
|
|
ProvideComments: 1
|
|
CommentsRequireLogin: 0
|
|
second:
|
|
Title: Second
|
|
ProvideComments: 1
|
|
CommentsRequireLogin: 1
|
|
third:
|
|
Title: Third
|
|
ProvideComments: 1
|
|
nocomments:
|
|
Title: No comments
|
|
ProvideComments: 0
|
|
spammed:
|
|
ProvideComments: 1
|
|
Title: spammed
|
|
ModerationRequired: 'None'
|
|
moderated:
|
|
ProvideComments: 1
|
|
Title: Moderate everything
|
|
ModerationRequired: Required
|
|
CommentsRequireLogin: 0
|
|
|
|
SilverStripe\Comments\Model\Comment:
|
|
firstComA:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.first
|
|
Name: FA
|
|
Comment: textFA
|
|
Moderated: 1
|
|
IsSpam:
|
|
Depth: 1
|
|
firstComAChild1:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.first
|
|
ParentComment: =>SilverStripe\Comments\Model\Comment.firstComA
|
|
Name: John Smith
|
|
Comment: Reply to firstComA 1
|
|
Moderated: 1
|
|
IsSpam: 0
|
|
Depth: 2
|
|
firstComAChild2:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.first
|
|
ParentComment: =>SilverStripe\Comments\Model\Comment.firstComA
|
|
Name: John Smith
|
|
Comment: Reply to firstComA 2
|
|
Moderated: 1
|
|
IsSpam: 0
|
|
Depth: 2
|
|
firstComAChild3:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.first
|
|
ParentComment: =>SilverStripe\Comments\Model\Comment.firstComA
|
|
Name: John Smith
|
|
Comment: Reply to firstComA 3
|
|
Moderated: 1
|
|
IsSpam: 0
|
|
Depth: 2
|
|
secondComA:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.second
|
|
Name: SA
|
|
Comment: textSA
|
|
Moderated: 1
|
|
IsSpam: 0
|
|
secondComB:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.second
|
|
Name: SB
|
|
Comment: textSB
|
|
Moderated: 0
|
|
IsSpam: 0
|
|
secondComC:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.second
|
|
Name: SB
|
|
Comment: textSB
|
|
Moderated: 1
|
|
IsSpam: 1
|
|
thirdComA:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.third
|
|
Name: TA
|
|
Comment: textTA
|
|
Moderated: 1
|
|
IsSpam: 0
|
|
thirdComB:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.third
|
|
Name: TB
|
|
Comment: textTB
|
|
Moderated: 1
|
|
IsSpam: 0
|
|
thirdComC:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.third
|
|
Name: TC
|
|
Comment: textTC
|
|
Moderated: 1
|
|
IsSpam: 0
|
|
thirdComD:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.third
|
|
Name: TC
|
|
Comment: textTC
|
|
Moderated: 1
|
|
thirdComE:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.third
|
|
Name: TC
|
|
Comment: textTC
|
|
Moderated: 1
|
|
thirdComF:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.third
|
|
Name: TC
|
|
Comment: textTC
|
|
Moderated: 1
|
|
IsSpam: 0
|
|
thirdComG:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.third
|
|
Name: TC
|
|
Comment: textTC
|
|
Moderated: 1
|
|
IsSpam: 0
|
|
thirdComH:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.third
|
|
Name: TC
|
|
Comment: textTC
|
|
Moderated: 1
|
|
IsSpam: 0
|
|
thirdComI:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.third
|
|
Name: TC
|
|
Comment: textTC
|
|
Moderated: 1
|
|
IsSpam: 0
|
|
thirdComJ:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.third
|
|
Name: TC
|
|
Comment: textTC
|
|
Moderated: 1
|
|
IsSpam: 0
|
|
thirdComK:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.third
|
|
Name: TC
|
|
Comment: textTC
|
|
Moderated: 1
|
|
IsSpam: 0
|
|
disabledCom:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.nocomments
|
|
Name: Disabled
|
|
Moderated: 0
|
|
IsSpam: 1
|
|
testCommentList1:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.spammed
|
|
Name: Comment 1
|
|
Moderated: 0
|
|
IsSpam: 0
|
|
testCommentList2:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.spammed
|
|
Name: Comment 2
|
|
Moderated: 1
|
|
IsSpam: 1
|
|
testCommentList3:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.spammed
|
|
Name: Comment 3
|
|
Moderated: 1
|
|
IsSpam: 0
|
|
testCommentList4:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.spammed
|
|
Name: Comment 4
|
|
Moderated: 0
|
|
IsSpam: 1
|
|
testModeratedComment1:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.moderated
|
|
Name: Moderated comment 1
|
|
Moderated: 0
|
|
IsSpam: 0
|
|
testModeratedComment2:
|
|
Parent: =>SilverStripe\Comments\Tests\Stubs\CommentableItem.moderated
|
|
Name: Moderated comment 2
|
|
Moderated: 0
|
|
IsSpam: 1
|