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';