diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-09 08:01:56 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-09 08:01:56 +0000 |
commit | 44e47bfb16cd405e1187bc62579211554882e99f (patch) | |
tree | 44b2ab78f738144e1bcb5f016bce59365c1f2264 /modules/node | |
parent | 4b277a7e3e3c3c52513df0b6553676cd36de5214 (diff) | |
download | brdo-44e47bfb16cd405e1187bc62579211554882e99f.tar.gz brdo-44e47bfb16cd405e1187bc62579211554882e99f.tar.bz2 |
#967330 by Dave Reid: Fixed The [current-user:?] token should provide the actual loaded user
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.test | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |