AssetBuilderTest
extends CiviEndToEndTestCase
in package
Class AssetBuilderTest
Tags
Table of Contents
Properties
- $fired : mixed
Methods
- buildSquareJs() : mixed
- buildSquareTxt() : mixed
- counter() : mixed
- getExamples() : array<string|int, mixed>
- Get a list of example assets to build/request.
- setUpBeforeClass() : void
- testGetUrl_cached() : mixed
- testGetUrl_uncached() : mixed
- testInvalid() : void
- testRender() : mixed
- setUp() : void
- tearDown() : void
Properties
$fired
protected
mixed
$fired
Methods
buildSquareJs()
public
buildSquareJs(GenericHookEvent $e) : mixed
Parameters
- $e : GenericHookEvent
Tags
buildSquareTxt()
public
buildSquareTxt(GenericHookEvent $e) : mixed
Parameters
- $e : GenericHookEvent
Tags
counter()
public
counter(GenericHookEvent $e) : mixed
Parameters
- $e : GenericHookEvent
Tags
getExamples()
Get a list of example assets to build/request.
public
getExamples() : array<string|int, mixed>
Return values
array<string|int, mixed>setUpBeforeClass()
public
static setUpBeforeClass() : void
testGetUrl_cached()
public
testGetUrl_cached(string $asset, array<string|int, mixed> $params, string $expectedMimeType, string $expectedContent) : mixed
Parameters
- $asset : string
-
Ex: 'square.txt'.
- $params : array<string|int, mixed>
-
Ex: [x=>12].
- $expectedMimeType : string
-
Ex: 'text/plain'.
- $expectedContent : string
-
Ex: 'Square: 144'.
Tags
testGetUrl_uncached()
public
testGetUrl_uncached(string $asset, array<string|int, mixed> $params, string $expectedMimeType, string $expectedContent) : mixed
Parameters
- $asset : string
-
Ex: 'square.txt'.
- $params : array<string|int, mixed>
-
Ex: [x=>12].
- $expectedMimeType : string
-
Ex: 'text/plain'.
- $expectedContent : string
-
Ex: 'Square: 144'.
Tags
testInvalid()
public
testInvalid() : void
Tags
testRender()
public
testRender(string $asset, array<string|int, mixed> $params, string $expectedMimeType, string $expectedContent) : mixed
Parameters
- $asset : string
-
Ex: 'square.txt'.
- $params : array<string|int, mixed>
-
Ex: [x=>12].
- $expectedMimeType : string
-
Ex: 'text/plain'.
- $expectedContent : string
-
Ex: 'Square: 144'.
Tags
setUp()
protected
setUp() : void
Tags
tearDown()
protected
tearDown() : void