From 44e47bfb16cd405e1187bc62579211554882e99f Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 9 Dec 2010 08:01:56 +0000 Subject: #967330 by Dave Reid: Fixed The [current-user:?] token should provide the actual loaded user --- modules/node/node.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/node') diff --git a/modules/node/node.test b/modules/node/node.test index c0b6096c2..bffe03bb1 100644 --- a/modules/node/node.test +++ b/modules/node/node.test @@ -2054,7 +2054,7 @@ class NodeTokenReplaceTestCase extends DrupalWebTestCase { $tests['[node:url]'] = url('node/' . $node->nid, $url_options); $tests['[node:edit-url]'] = url('node/' . $node->nid . '/edit', $url_options); $tests['[node:author:uid]'] = $node->uid; - $tests['[node:author:name]'] = check_plain($account->name); + $tests['[node:author:name]'] = check_plain(format_username($account)); $tests['[node:created:since]'] = format_interval(REQUEST_TIME - $node->created, 2, $language->language); $tests['[node:changed:since]'] = format_interval(REQUEST_TIME - $node->changed, 2, $language->language); @@ -2071,7 +2071,7 @@ class NodeTokenReplaceTestCase extends DrupalWebTestCase { $tests['[node:body]'] = $node->body[$node->language][0]['value']; $tests['[node:summary]'] = $node->body[$node->language][0]['summary']; $tests['[node:language]'] = $node->language; - $tests['[node:author:name]'] = $account->name; + $tests['[node:author:name]'] = format_username($account); foreach ($tests as $input => $expected) { $output = token_replace($input, array('node' => $node), array('language' => $language, 'sanitize' => FALSE)); -- cgit v1.2.3