function TriggerActionTestCase::assertSystemMessageAndEmailTokenReplacement in Drupal 7
Asserts correct token replacement in both system message and email.
Parameters
$trigger: A trigger like 'user_login'.
$account: The user account which triggered the action.
$email_depth: Number of emails to scan, starting with most recent.
1 call to TriggerActionTestCase::assertSystemMessageAndEmailTokenReplacement()
- TriggerUserTokenTestCase::testUserTriggerTokenReplacement in modules/
trigger/ trigger.test - Tests a variety of token replacements in actions.
File
- modules/
trigger/ trigger.test, line 389 - Tests for trigger.module.
Class
- TriggerActionTestCase
- Provides a base class with trigger assignments and test comparisons.
Code
function assertSystemMessageAndEmailTokenReplacement($trigger, $account, $email_depth = 1) {
$this
->assertSystemMessageTokenReplacement($trigger, $account);
$this
->assertSystemEmailTokenReplacement($trigger, $account, $email_depth);
}