ClickTrackerTest
extends TestCase
in package
implements
HeadlessInterface, HookInterface, TransactionalInterface
Tests that URLs are converted to tracked ones if at all possible.
Tags
Table of Contents
Interfaces
- HeadlessInterface
- Interface HeadlessInterface
- HookInterface
- TransactionalInterface
- Interface HeadlessInterface
Properties
- $mailing_id : mixed
Methods
- setUp() : void
- setUpHeadless() : mixed
- The setupHeadless function runs at the start of each test case, right before the headless environment reboots.
- tearDown() : void
- testHtmlLinkWithUnicode() : void
- testLinkWithoutTokens() : void
- Example: Test that a link without any tokens works.
- testLinkWithTokensInDomainFails() : void
- We can't handle tokens in the domain so it should not be tracked.
- testLinkWithTokensInFragment() : void
- Example: Test that a link with tokens in the fragment works.
- testLinkWithTokensInPathFails() : void
- We can't handle tokens in the path so it should not be tracked.
- testLinkWithTokensInQueryAndFragment() : void
- Example: Test that a link with tokens in the fragment works.
- testLinkWithTokensInQueryWithMultipleStaticParams() : void
- Example: Test that a link with tokens in the query works.
- testLinkWithTokensInQueryWithMultipleStaticParamsHtml() : void
- Example: Test that a link with tokens in the query works.
- testLinkWithTokensInQueryWithoutStaticParams() : void
- Example: Test that a link with tokens in the query works.
- testLinkWithTokensInQueryWithStaticParams() : void
- Example: Test that a link with tokens in the query works.
- testLinkWithUnicode() : void
- testTraditionalViewMailingTokenFormat() : void
Properties
$mailing_id
protected
mixed
$mailing_id
Methods
setUp()
public
setUp() : void
setUpHeadless()
The setupHeadless function runs at the start of each test case, right before the headless environment reboots.
public
setUpHeadless() : mixed
It should perform any necessary steps required for putting the database in a consistent baseline -- such as loading schema and extensions.
The utility \Civi\Test::headless()
provides a number of helper functions
for managing this setup, and it includes optimizations to avoid redundant
setup work.
tearDown()
public
tearDown() : void
testHtmlLinkWithUnicode()
public
testHtmlLinkWithUnicode() : void
testLinkWithoutTokens()
Example: Test that a link without any tokens works.
public
testLinkWithoutTokens() : void
testLinkWithTokensInDomainFails()
We can't handle tokens in the domain so it should not be tracked.
public
testLinkWithTokensInDomainFails() : void
testLinkWithTokensInFragment()
Example: Test that a link with tokens in the fragment works.
public
testLinkWithTokensInFragment() : void
Seems browsers maintain the fragment when they receive a redirect, so a token here might still work.
testLinkWithTokensInPathFails()
We can't handle tokens in the path so it should not be tracked.
public
testLinkWithTokensInPathFails() : void
testLinkWithTokensInQueryAndFragment()
Example: Test that a link with tokens in the fragment works.
public
testLinkWithTokensInQueryAndFragment() : void
Seems browsers maintain the fragment when they receive a redirect, so a token here might still work.
testLinkWithTokensInQueryWithMultipleStaticParams()
Example: Test that a link with tokens in the query works.
public
testLinkWithTokensInQueryWithMultipleStaticParams() : void
testLinkWithTokensInQueryWithMultipleStaticParamsHtml()
Example: Test that a link with tokens in the query works.
public
testLinkWithTokensInQueryWithMultipleStaticParamsHtml() : void
testLinkWithTokensInQueryWithoutStaticParams()
Example: Test that a link with tokens in the query works.
public
testLinkWithTokensInQueryWithoutStaticParams() : void
testLinkWithTokensInQueryWithStaticParams()
Example: Test that a link with tokens in the query works.
public
testLinkWithTokensInQueryWithStaticParams() : void
testLinkWithUnicode()
public
testLinkWithUnicode() : void
testTraditionalViewMailingTokenFormat()
public
testTraditionalViewMailingTokenFormat() : void