\DMSShortcodeHandlerTest
Tests DMS shortcode linking functionality.
Synopsis
class DMSShortcodeHandlerTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = 'dmstest.yml';
- // methods
- public void testShortcodeOperation()
- public void testShortcodeWithContentReturnsParsedContentInLink()
- public void testReturnErrorPageWhenIdIsEmpty()
- public void testReturnEmptyStringWhenNoErrorPageExistsAndIdIsEmpty()
Hierarchy
Extends
- SapphireTest
Members
protected
- $fixture_file
Methods
public
- testReturnEmptyStringWhenNoErrorPageExistsAndIdIsEmpty() — When invalid or no data is available to return from the arguments and no error page exists to use for a link, return a blank string
- testReturnErrorPageWhenIdIsEmpty() — An error page link should be returned if the arguments are not valid, empty or the document is not available etc.
- testShortcodeOperation()
- testShortcodeWithContentReturnsParsedContentInLink() — When the document is valid, the correct arguments are provided and some content is given, the content should be parsed and added into an anchor to the document