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
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
setUp()
public
setUp() : void
setUpBeforeClass()
public
static setUpBeforeClass() : void
testAbsoluteRelative()
public
testAbsoluteRelative() : void
testCustomSchemeClean()
public
testCustomSchemeClean() : void
testCustomSchemeDirty()
public
testCustomSchemeDirty() : void
testFragment()
public
testFragment() : void
testFragmentQuery()
public
testFragmentQuery() : mixed
testFunkyStartPoints()
public
testFunkyStartPoints() : void
testHttp()
public
testHttp() : void
testPath()
public
testPath() : mixed
testQuery()
public
testQuery() : mixed
testVars()
public
testVars() : 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.
tearDown()
protected
tearDown() : void