Removing tests related to MetaTitle, this field doesn't exist anymore

This commit is contained in:
Sean Harvey 2013-04-30 15:42:36 +12:00
parent 3848f90a5a
commit 411abed7b8
2 changed files with 0 additions and 33 deletions

View File

@ -48,7 +48,6 @@ Page:
SubsiteID: =>Subsite.main
linky:
Title: Linky
MetaTitle: Linky
SubsiteID: =>Subsite.main
staff:
Title: Staff

View File

@ -48,38 +48,6 @@ class SubsitesVirtualPageTest extends BaseSubsiteTest {
$this->assertEquals($svp->SubsiteID, $subsite->ID);
$this->assertEquals($svp->Title, $linky->Title);
}
/**
* Test custom metadata. Reloading Content should not
* obliterate our custom fields
*/
function testCustomMetadata() {
Subsite::$write_hostmap = false;
$subsite = $this->objFromFixture('Subsite', 'main');
Subsite::changeSubsite($subsite->ID);
$orig = $this->objFromFixture('Page', 'linky');
$svp = new SubsitesVirtualPage();
$svp->CopyContentFromID = $orig->ID;
$svp->SubsiteID = $subsite->ID;
$svp->URLSegment = 'linky-'.rand();
$svp->write();
$this->assertEquals($svp->MetaTitle, 'Linky');
$svp->CustomMetaTitle = 'SVPTitle';
$svp->write();
$this->assertEquals($svp->MetaTitle, 'SVPTitle');
$svp->copyFrom($svp->CopyContentFrom());
$svp->write();
$this->assertEquals($svp->MetaTitle, 'SVPTitle');
}
function testFileLinkRewritingOnVirtualPages() {
// File setup