diff --git a/src/VersionFeed.php b/src/VersionFeed.php index ecac76b..ad7e1bc 100644 --- a/src/VersionFeed.php +++ b/src/VersionFeed.php @@ -203,7 +203,6 @@ class VersionFeed extends SiteTreeExtension public function getSiteRSSLink() { - // TODO: This link should be from the homepage, not this page. if (Config::inst()->get(get_class(), 'allchanges_enabled') && SiteConfig::current_site_config()->AllChangesEnabled ) { diff --git a/tests/VersionFeedFunctionalTest.php b/tests/VersionFeedFunctionalTest.php index a1143d0..91521bc 100644 --- a/tests/VersionFeedFunctionalTest.php +++ b/tests/VersionFeedFunctionalTest.php @@ -175,7 +175,7 @@ class VersionFeedFunctionalTest extends FunctionalTest $titles = array_map(function ($item) { return (string)$item->title; }, $xml->xpath('//item') ?? []); - // TODO Unclear if this should contain the original version + $this->assertContains('Changed: Page1', $titles); $this->assertNotContains('Changed: Page2', $titles); @@ -184,7 +184,7 @@ class VersionFeedFunctionalTest extends FunctionalTest $titles = array_map(function ($item) { return (string)$item->title; }, $xml->xpath('//item') ?? []); - // TODO Unclear if this should contain the original version + $this->assertNotContains('Changed: Page1', $titles); $this->assertContains('Changed: Page2', $titles); }