mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
ENHANCEMENT: added PageComment for CommentAdminTest (from r99069)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@106140 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c850ba9aca
commit
42f237bb8f
@ -62,3 +62,14 @@ SiteConfig_CreateTopLevelGroups:
|
||||
createtoplevelgroups1:
|
||||
siteconfigid: 1
|
||||
GroupID: =>Group.rooteditusers
|
||||
PageComment:
|
||||
Comment1:
|
||||
Name: Person
|
||||
Comment: Very cool page
|
||||
NeedsModeration: 1
|
||||
EmailAddress: person@server.com
|
||||
Comment2:
|
||||
Name: Someone
|
||||
Comment: I am a person
|
||||
NeedsModeration: 0
|
||||
EmailAddress: someone@somewhere.com
|
@ -27,7 +27,7 @@ class CommentAdminTest extends FunctionalTest {
|
||||
|
||||
function testacceptmarked(){
|
||||
$id = $this->idFromFixture('PageComment', 'Comment1');
|
||||
$this->logInWithPermssion('ADMIN');
|
||||
$this->logInWithPermission('ADMIN');
|
||||
$result = $this->get('admin/comments/EditForm/field/Comments/item/2/delete');
|
||||
$this->assertEquals(200, $result->getStatusCode());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user