\AutomatedLinkTest
Class AutomatedLinkTest Run tests to check the Automated Link Object and it's functionality
Synopsis
class AutomatedLinkTest
extends SapphireTest
{
- // members
- public static string $fixture_file = 'fixtures/AutomatedLinkTest.yml';
- // methods
- public void testInsertion()
- public void testProperties()
- public void testDefaultProperties()
- public void testLimitFilter()
- public void testDisableFilter()
- public static DOMNameList getLinksFromPage()
- public static DOMDocument getLinkFromPage()
- public static Page createPage()
- public static DOMDocument getPageDOM()
Hierarchy
Extends
- SapphireTest
Members
public
- $fixture_file
Methods
public
- createPage() — Create a dummy object for testing functionality on the SiteTree
- getLinkFromPage() — Create a DOMDocument out of the $page supplied and check that it only has 1 link.
- getLinksFromPage() — Renders the passed $page and returns all links found if any
- getPageDOM() — Render the $page supplied into a DOMDocument object
- testDefaultProperties() — Test that the default properties match what we expect
- testDisableFilter() — Test that the default properties match what we expect
- testInsertion() — Test that links are included in the content field
- testLimitFilter() — Test that the default properties match what we expect
- testProperties() — Test the individual properties of the automated link