MINOR Fixed SapphireTest->logInWithPermission() spelling

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@99491 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-02-21 21:35:06 +00:00 committed by Sam Minnee
parent 74b523f117
commit 508ead95e9
9 changed files with 18 additions and 18 deletions

View File

@ -134,7 +134,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
$i++;
}
$this->logInWithPermssion("ADMIN");
$this->logInWithPermission("ADMIN");
}
// Set up email
@ -673,7 +673,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
* Create a member and group with the given permission code, and log in with it.
* Returns the member ID.
*/
function logInWithPermssion($permCode = "ADMIN") {
function logInWithPermission($permCode = "ADMIN") {
if(!isset($this->cache_generatedMembers[$permCode])) {
$group = new Group();
$group->Title = "$permCode group";

View File

@ -8,7 +8,7 @@ class FileLinkTrackingTest extends SapphireTest {
function setUp() {
parent::setUp();
$this->logInWithPermssion('ADMIN');
$this->logInWithPermission('ADMIN');
touch(Director::baseFolder() . '/assets/testscript-test-file.pdf');
}
function tearDown() {

View File

@ -53,7 +53,7 @@ class SiteTreeActionsTest extends FunctionalTest {
function testActionsNoDeletePublishedRecord() {
if(class_exists('SiteTreeCMSWorkflow')) return true;
$this->logInWithPermssion('ADMIN');
$this->logInWithPermission('ADMIN');
$page = new SiteTreeActionsTest_Page();
$page->CanEditType = 'LoggedInUsers';

View File

@ -20,7 +20,7 @@ class SiteTreeBacklinksTest extends SapphireTest {
// Log in as admin so that we don't run into permission issues. That's not what we're
// testing here.
$this->logInWithPermssion('ADMIN');
$this->logInWithPermission('ADMIN');
}
function testSavingPageWithLinkAddsBacklink() {

View File

@ -71,7 +71,7 @@ class SiteTreeBrokenLinksTest extends SapphireTest {
}
function testDeletingMarksBackLinkedPagesAsBroken() {
$this->logInWithPermssion('ADMIN');
$this->logInWithPermission('ADMIN');
// Set up two published pages with a link from content -> about
$linkDest = $this->objFromFixture('Page','about');
@ -113,7 +113,7 @@ class SiteTreeBrokenLinksTest extends SapphireTest {
}
function testPublishingSourceBeforeDestHasBrokenLink() {
$this->logInWithPermssion('ADMIN');
$this->logInWithPermission('ADMIN');
// Set up two draft pages with a link from content -> about
$linkDest = $this->objFromFixture('Page','about');

View File

@ -32,7 +32,7 @@ class SiteTreePermissionsTest extends FunctionalTest {
function testPermissionCheckingWorksOnDeletedPages() {
// Set up fixture - a published page deleted from draft
$this->logInWithPermssion("ADMIN");
$this->logInWithPermission("ADMIN");
$page = $this->objFromFixture('Page','restrictedEditOnlySubadminGroup');
$pageID = $page->ID;
$this->assertTrue($page->doPublish());
@ -58,7 +58,7 @@ class SiteTreePermissionsTest extends FunctionalTest {
function testPermissionCheckingWorksOnUnpublishedPages() {
// Set up fixture - an unpublished page
$this->logInWithPermssion("ADMIN");
$this->logInWithPermission("ADMIN");
$page = $this->objFromFixture('Page','restrictedEditOnlySubadminGroup');
$pageID = $page->ID;
$page->doUnpublish();
@ -80,7 +80,7 @@ class SiteTreePermissionsTest extends FunctionalTest {
function testCanEditOnPageDeletedFromStageAndLiveReturnsFalse() {
// Find a page that exists and delete it from both stage and published
$this->logInWithPermssion("ADMIN");
$this->logInWithPermission("ADMIN");
$page = $this->objFromFixture('Page','restrictedEditOnlySubadminGroup');
$pageID = $page->ID;
$page->doUnpublish();
@ -324,7 +324,7 @@ class SiteTreePermissionsTest extends FunctionalTest {
$page = $this->objFromFixture('Page', 'restrictedEditLoggedInUsers');
$pageID = $page->ID;
$this->logInWithPermssion("ADMIN");
$this->logInWithPermission("ADMIN");
$page->doPublish();
$page->deleteFromStage('Stage');

View File

@ -94,7 +94,7 @@ class SiteTreeTest extends SapphireTest {
* Test that field which are set and then cleared are also transferred to the published site.
*/
function testPublishDeletedFields() {
$this->logInWithPermssion('ADMIN');
$this->logInWithPermission('ADMIN');
$obj = $this->objFromFixture('Page', 'about');
$obj->MetaTitle = "asdfasdf";
@ -334,7 +334,7 @@ class SiteTreeTest extends SapphireTest {
function testDeleteFromLiveOperatesRecursively() {
SiteTree::set_enforce_strict_hierarchy(false);
$this->logInWithPermssion('ADMIN');
$this->logInWithPermission('ADMIN');
$pageAbout = $this->objFromFixture('Page', 'about');
$pageAbout->doPublish();
@ -356,7 +356,7 @@ class SiteTreeTest extends SapphireTest {
function testUnpublishDoesNotDeleteChildrenWithLooseHierachyOn() {
SiteTree::set_enforce_strict_hierarchy(false);
$this->logInWithPermssion('ADMIN');
$this->logInWithPermission('ADMIN');
$pageAbout = $this->objFromFixture('Page', 'about');
$pageAbout->doPublish();
@ -378,7 +378,7 @@ class SiteTreeTest extends SapphireTest {
function testDeleteFromLiveOperatesRecursivelyStrict() {
$this->logInWithPermssion('ADMIN');
$this->logInWithPermission('ADMIN');
$pageAbout = $this->objFromFixture('Page', 'about');
$pageAbout->doPublish();

View File

@ -93,12 +93,12 @@ class ContentControllerTest extends FunctionalTest {
public function testViewDraft(){
// test when user does not have permission, should get login form
$this->logInWithPermssion('EDITOR');
$this->logInWithPermission('EDITOR');
$this->assertEquals('403', $this->get('/contact/?stage=Stage')->getstatusCode());
// test when user does have permission, should show page title and header ok.
$this->logInWithPermssion('ADMIN');
$this->logInWithPermission('ADMIN');
$this->assertEquals('200', $this->get('/contact/?stage=Stage')->getstatusCode());

View File

@ -30,7 +30,7 @@ class VirtualPageTest extends SapphireTest {
* virtual pages are published
*/
function testPublishingSourcePagePublishesAlreadyPublishedVirtualPages() {
$this->logInWithPermssion('ADMIN');
$this->logInWithPermission('ADMIN');
$master = $this->objFromFixture('Page', 'master');
$master->doPublish();