PHP Class Bolt\Tests\Asset\AssetsProviderTest

Author: Ross Riley ([email protected])
Author: Gawain Lynch ([email protected])
Inheritance: extends AbstractExtensionsUnitTest
Datei anzeigen Open project: bolt/bolt

Public Properties

Property Type Description
$expectedAfterCss
$expectedAfterMeta
$expectedBeforeCss
$expectedCss
$expectedEndOfHead
$expectedEndOfHtml
$expectedJs
$expectedLateCss
$expectedLateJs
$expectedStartOfBody
$expectedStartOfHead
$snippetException
$template

Public Methods

Method Description
testAddCss ( )
testAddJquery ( )
testAddJqueryOnlyOnce ( )
testAddJs ( )
testCssProcessAssets ( )
testEmptyProcessAssetsFile ( )
testEmptyProcessAssetsSnippets ( )
testJsProcessAssets ( )
testLateCss ( )
testLateJs ( )
testSnippet ( )
testSnippetsWorkWithBadHtml ( )

Protected Methods

Method Description
getApp ( $boot = true )
getRequest ( ) : Request
html ( $string ) This method normalises the html so that differeing whitespace doesn't effect the strings.

Private Methods

Method Description
getSnippet ( $location, $callback, $extensionName = 'core', $callbackArguments = [] ) : Bolt\Asset\Snippet\Snippet

Method Details

getApp() protected method

protected getApp ( $boot = true )

getRequest() protected method

protected getRequest ( ) : Request
return Symfony\Component\HttpFoundation\Request

html() protected method

This method normalises the html so that differeing whitespace doesn't effect the strings.
protected html ( $string )

testAddCss() public method

public testAddCss ( )

testAddJquery() public method

public testAddJquery ( )

testAddJqueryOnlyOnce() public method

testAddJs() public method

public testAddJs ( )

testCssProcessAssets() public method

testEmptyProcessAssetsFile() public method

testEmptyProcessAssetsSnippets() public method

testJsProcessAssets() public method

public testJsProcessAssets ( )

testLateCss() public method

public testLateCss ( )

testLateJs() public method

public testLateJs ( )

testSnippet() public method

public testSnippet ( )

testSnippetsWorkWithBadHtml() public method

Property Details

$expectedAfterCss public_oe property

public $expectedAfterCss

$expectedAfterMeta public_oe property

public $expectedAfterMeta

$expectedBeforeCss public_oe property

public $expectedBeforeCss

$expectedCss public_oe property

public $expectedCss

$expectedEndOfHead public_oe property

public $expectedEndOfHead

$expectedEndOfHtml public_oe property

public $expectedEndOfHtml

$expectedJs public_oe property

public $expectedJs

$expectedLateCss public_oe property

public $expectedLateCss

$expectedLateJs public_oe property

public $expectedLateJs

$expectedStartOfBody public_oe property

public $expectedStartOfBody

$expectedStartOfHead public_oe property

public $expectedStartOfHead

$snippetException public_oe property

public $snippetException

$template public_oe property

public $template