From 411abed7b888da6fe815d05cbcd678bf1aedd8e1 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 30 Apr 2013 15:42:36 +1200 Subject: [PATCH] Removing tests related to MetaTitle, this field doesn't exist anymore --- tests/SubsiteTest.yml | 1 - tests/SubsitesVirtualPageTest.php | 32 ------------------------------- 2 files changed, 33 deletions(-) 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