Documentation

PathUrlTest extends CiviEndToEndTestCase
in package

Class PathUrlTest

Tags
group

e2e

Check that various paths and URLs are generated correctly.

Table of Contents

Methods

setUpBeforeClass()  : void
testGetUrl_WpAdmin()  : void
testPaths_getPath()  : void
`Civi::paths()->getPath()` should generate working paths.
testPaths_getUrl()  : void
`Civi::paths()->getUrl()` should generate working URLs.
testPaths_getVariable()  : void
`Civi::paths()->getVariable()` should generate working paths+URLs.
testSystemRouter()  : void
`CRM_Utils_System::url()` should generate working URLs.
testUrl()  : void
Get URLs through Civi::url().
testUrl_DefaultUI()  : void
testUrl_FrontBackCurrent()  : void
Check that 'frontend://', 'backend://', and 'current://' have the expected relations.
assertFileContentRegex()  : mixed
assertUrlContentRegex()  : mixed

Methods

testPaths_getPath()

`Civi::paths()->getPath()` should generate working paths.

public testPaths_getPath() : void

testPaths_getUrl()

`Civi::paths()->getUrl()` should generate working URLs.

public testPaths_getUrl() : void

testPaths_getVariable()

`Civi::paths()->getVariable()` should generate working paths+URLs.

public testPaths_getVariable() : void

testSystemRouter()

`CRM_Utils_System::url()` should generate working URLs.

public testSystemRouter() : void

testUrl()

Get URLs through Civi::url().

public testUrl() : void
Tags
see
UrlTest

testUrl_DefaultUI()

public testUrl_DefaultUI() : void

testUrl_FrontBackCurrent()

Check that 'frontend://', 'backend://', and 'current://' have the expected relations.

public testUrl_FrontBackCurrent() : void

assertFileContentRegex()

private assertFileContentRegex(string $expectContentRegex, string $file) : mixed
Parameters
$expectContentRegex : string
$file : string

assertUrlContentRegex()

private assertUrlContentRegex(string $expectContentRegex, string $url) : mixed
Parameters
$expectContentRegex : string
$url : string

        
On this page

Search results