diff --git a/tests/SubsiteTest.yml b/tests/SubsiteTest.yml index adcd7e1..7053cad 100644 --- a/tests/SubsiteTest.yml +++ b/tests/SubsiteTest.yml @@ -48,7 +48,6 @@ Page: SubsiteID: =>Subsite.main linky: Title: Linky - MetaTitle: Linky SubsiteID: =>Subsite.main staff: Title: Staff diff --git a/tests/SubsitesVirtualPageTest.php b/tests/SubsitesVirtualPageTest.php index 03ddb72..6da2166 100644 --- a/tests/SubsitesVirtualPageTest.php +++ b/tests/SubsitesVirtualPageTest.php @@ -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