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:
Ingo Schommer 2010-06-03 01:43:20 +00:00
parent c850ba9aca
commit 42f237bb8f
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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());
}