WebTorque\SilverstripeHelpers\Tests\Blocks\AutoPublishElementalBlocksExtensionTest
Synopsis
class AutoPublishElementalBlocksExtensionTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = 'AutoPublishElementalBlocksExtensionTest.yml';
- // methods
- public void testAutoPublishElementalDisable()
- public void testOnAfterPublish()
- public void testOnAfterPublishWithDisableAutoPublishing()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $fixture_file
Methods
public
- testAutoPublishElementalDisable() — Make sure AutoPublishElementalFields default to `ElementalArea`.
- testOnAfterPublish() — Make sure child blocks are published after their parent page is published
- testOnAfterPublishWithDisableAutoPublishing() — If auto_publish_elemental_disable is disable, no auto publish should occur.