function TriggerActionTestCase::assertSystemMessageTokenReplacement

Asserts correct token replacement for the given trigger and account.

Parameters

$trigger: A trigger like 'user_login'.

$account: The user account which triggered the action.

2 calls to TriggerActionTestCase::assertSystemMessageTokenReplacement()
TriggerActionTestCase::assertSystemMessageAndEmailTokenReplacement in drupal-7.x/modules/trigger/trigger.test
Asserts correct token replacement in both system message and email.
TriggerActionTestCase::assertSystemMessageAndEmailTokenReplacement in drupal-7.x/modules/trigger/trigger.test
Asserts correct token replacement in both system message and email.

Archivo

drupal-7.x/modules/trigger/trigger.test, line 402
Tests for trigger.module.

Class

TriggerActionTestCase
Provides a base class with trigger assignments and test comparisons.

Código

function assertSystemMessageTokenReplacement($trigger, $account) {
  $expected = $this->generateTokenExpandedComparison($trigger, $account);
  $this->assertText($expected, format_string('Expected system message to contain token-replaced text "@expected" found in configured system message action', array('@expected' => $expected)));
}