From 42f237bb8f5d413bec184c429ab9c845e113fb40 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 3 Jun 2010 01:43:20 +0000 Subject: [PATCH] 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 --- tests/CMSMainTest.yml | 11 +++++++++++ tests/CommentAdminTest.php | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/CMSMainTest.yml b/tests/CMSMainTest.yml index 32285a2b..088d3596 100644 --- a/tests/CMSMainTest.yml +++ b/tests/CMSMainTest.yml @@ -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 \ No newline at end of file diff --git a/tests/CommentAdminTest.php b/tests/CommentAdminTest.php index c86ea1b7..f534a41d 100644 --- a/tests/CommentAdminTest.php +++ b/tests/CommentAdminTest.php @@ -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()); }