\LivePubHelperTest
Tests for LivePubHelper and LivePubWrapper.
- Author: Mark Guinn <mark@adaircreative.com>
Synopsis
class LivePubHelperTest
extends SapphireTest
{
- // methods
- public void testIsPublishing()
- public void testInitCode()
- public void testEvalPhp()
- public void testExecPhp()
- public void testIncludePhp()
- public void testWrapperUnpublished()
- public void testWrapperPublished()
- public void testRequireSilverstripeDB()
- protected void getArrayWrapper()
- protected void getObjectWrapper()
- protected void getTestTemplate()
Hierarchy
Extends
- SapphireTest
Methods
protected
public
- testEvalPhp() — checks eval_php
- testExecPhp() — checks exec_php
- testIncludePhp()
- testInitCode() — tests the functionality related to the init code
- testIsPublishing() — tests that the is_publishing method is working correctly
- testRequireSilverstripeDB() — check silverstripe db stub
- testWrapperPublished() — checks that ViewableWrapper works in published mode
- testWrapperUnpublished() — checks that ViewableWrapper works in normal mode