Asserts correct token replacement for the given trigger and account.
$trigger: A trigger like 'user_login'.
$account: The user account which triggered the action.
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,
)));
}