Symbiote\Cloudflare\Tests\CloudflarePurgeFileTest
Synopsis
class CloudflarePurgeFileTest
extends FunctionalTest
{
- // constants
- const ASSETS_DIR = 'vendor/symbiote/silverstripe-oldman/tests/assets';
- const FRAMEWORK_CSS_FILE = 'vendor/silverstripe/framework/src/Dev/Install/client/styles/install.css';
- // members
- protected static boolean $disable_themes = true;
- // methods
- public void testPurgeCSSAndJS()
- public void testAllowBlacklistedDirectories()
- private array getFilesToPurgeByExtensions()
Hierarchy
Extends
- SilverStripe\Dev\FunctionalTest
Constants
Name | Value |
---|---|
ASSETS_DIR | 'vendor/symbiote/silverstripe-oldman/tests/assets' |
FRAMEWORK_CSS_FILE | 'vendor/silverstripe/framework/src/Dev/Install/client/styles/install.css' |
Members
protected
- $disable_themes
Methods
private
- getFilesToPurgeByExtensions() — Wrapper to expose private method 'getFilesToPurgeByExtensions'
public
- testAllowBlacklistedDirectories() — Test if this can detect the CSS file in framework when the default blacklist is disabled.
- testPurgeCSSAndJS() — This tests if we get the correct files from a project when purging CSS and JS.