From dbec9a4c8a7f40a97271ab58c1ac308fefba807c Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 21 Feb 2010 21:35:33 +0000 Subject: [PATCH] MINOR Fixed SapphireTest->logInWithPermission() spelling git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@99492 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/CMSMainTest.php | 4 ++-- tests/CommentAdminTest.php | 2 +- tests/FilesystemPublisherTest.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/CMSMainTest.php b/tests/CMSMainTest.php index a6612090..81249472 100644 --- a/tests/CMSMainTest.php +++ b/tests/CMSMainTest.php @@ -109,7 +109,7 @@ class CMSMainTest extends FunctionalTest { } function testCanPublishPageWithUnpublishedParentWithStrictHierarchyOff() { - $this->logInWithPermssion('ADMIN'); + $this->logInWithPermission('ADMIN'); SiteTree::set_enforce_strict_hierarchy(true); $parentPage = $this->objFromFixture('Page','page3'); @@ -177,7 +177,7 @@ class CMSMainTest extends FunctionalTest { function testDeletedPagesSiteTreeFilter() { $id = $this->idFromFixture('Page', 'page3'); - $this->logInWithPermssion('ADMIN'); + $this->logInWithPermission('ADMIN'); $result = $this->get('admin/getfilteredsubtree?filter=CMSSiteTreeFilter_DeletedPages&ajax=1&ID=' . $id); $this->assertEquals(200, $result->getStatusCode()); } 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()); } diff --git a/tests/FilesystemPublisherTest.php b/tests/FilesystemPublisherTest.php index 6c42f8b7..4e9afb93 100644 --- a/tests/FilesystemPublisherTest.php +++ b/tests/FilesystemPublisherTest.php @@ -40,7 +40,7 @@ class FilesystemPublisherTest extends SapphireTest { } function testHomepageMapIsWithStaticPublishing() { - $this->logInWithPermssion('ADMIN'); + $this->logInWithPermission('ADMIN'); $p1 = new Page(); $p1->URLSegment = strtolower(__CLASS__).'-page-1';