mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Removing tests related to MetaTitle, this field doesn't exist anymore
This commit is contained in:
parent
3848f90a5a
commit
411abed7b8
@ -48,7 +48,6 @@ Page:
|
||||
SubsiteID: =>Subsite.main
|
||||
linky:
|
||||
Title: Linky
|
||||
MetaTitle: Linky
|
||||
SubsiteID: =>Subsite.main
|
||||
staff:
|
||||
Title: Staff
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user