function TriggerActionTestCase::assertSystemMessageAndEmailTokenReplacement

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

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.