Documentation

UrlFacadeTest extends CiviEndToEndTestCase
in package

Test generation of URLs via `Civi::url()` (`Civi\Core\Url`).

This class is focused on portable aspects of the functionality. There is also some coverage of the UF-specific parts in the E2E suite.

Tags
see
PathUrlTest
group

e2e

Table of Contents

Methods

setUp()  : void
setUpBeforeClass()  : void
testAbsoluteRelative()  : void
testCustomSchemeClean()  : void
testCustomSchemeDirty()  : void
testFragment()  : void
testFragmentQuery()  : mixed
testFunkyStartPoints()  : void
testHttp()  : void
testPath()  : mixed
testQuery()  : mixed
testVars()  : void
assertUrlComponentContains()  : void
remote()  : mixed
tearDown()  : void

Methods

testCustomSchemeClean()

public testCustomSchemeClean() : void

testCustomSchemeDirty()

public testCustomSchemeDirty() : void

testFunkyStartPoints()

public testFunkyStartPoints() : void

assertUrlComponentContains()

protected assertUrlComponentContains(mixed $expectField, mixed $expectValue, string $renderedUrl[, string $message = '' ]) : void
Parameters
$expectField : mixed
$expectValue : mixed
$renderedUrl : string
$message : string = ''

remote()

protected remote(string $name, Closure $closure[, array<string|int, mixed> $args = [] ]) : mixed
Parameters
$name : string

Logical name of the remote function. Most tests only have one, so they tend to use eponymous FUNCTION. But if you have multiple RFCs, they should differ.

$closure : Closure

Function to call. Note: For debugging, you may look to the adjacent file ("myFunction.rfc.php").

$args : array<string|int, mixed> = []

Data to pass into the function.


        
On this page

Search results