SilverStripe\CMS\Tests\Model\SiteTreeBacklinksTest
Tests {@see SiteTreeLinkTracking} broken links feature: LinkTracking
Synopsis
class SiteTreeBacklinksTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = "SiteTreeBacklinksTest.yml";
- protected static array $required_extensions = ;
- protected static array $extra_dataobjects = ;
- // methods
- protected void setUp()
- public void testSavingPageWithLinkAddsBacklink()
- public void testRemovingLinkFromPageRemovesBacklink()
- public void testChangingUrlOnDraftSiteRewritesLink()
- public void testChangingUrlOnLiveSiteRewritesLink()
- public void testPublishingPageWithModifiedUrlRewritesLink()
- public void testPublishingPageWithModifiedLinksRewritesLinks()
- public void testLinkTrackingOnExtraContentFields()
- public void testLinkTrackingWithUntitledObjectsDisplaysAReadableIdentifier()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $extra_dataobjects
- $fixture_file
- $required_extensions
Methods
protected
public
- testChangingUrlOnDraftSiteRewritesLink()
- testChangingUrlOnLiveSiteRewritesLink()
- testLinkTrackingOnExtraContentFields()
- testLinkTrackingWithUntitledObjectsDisplaysAReadableIdentifier()
- testPublishingPageWithModifiedLinksRewritesLinks()
- testPublishingPageWithModifiedUrlRewritesLink()
- testRemovingLinkFromPageRemovesBacklink()
- testSavingPageWithLinkAddsBacklink()