Documentation

AssetBuilderTest extends CiviEndToEndTestCase
in package

Class AssetBuilderTest

Tags
group

e2e

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

Methods

getExamples()

Get a list of example assets to build/request.

public getExamples() : array<string|int, mixed>
Return values
array<string|int, mixed>

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
dataProvider

getExamples

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
dataProvider

getExamples

testInvalid()

public testInvalid() : void
Tags
group

ornery

throws
GuzzleException

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
dataProvider

getExamples


        
On this page

Search results