PathUrlTest
extends CiviEndToEndTestCase
in package
Class PathUrlTest
Tags
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
setUpBeforeClass()
public
static setUpBeforeClass() : void
testGetUrl_WpAdmin()
public
testGetUrl_WpAdmin() : void
Tags
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
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