1 token.test TokenTestHelper::mapTokenNames($type, array $tokens = array())

File

core/modules/simpletest/tests/token.test, line 226
Test integration for the token module.

Class

TokenTestHelper
Helper test class with some added functions for testing.

Code

function mapTokenNames($type, array $tokens = array()) {
  $return = array();
  foreach ($tokens as $token) {
    $return[$token] = "[$type:$token]";
  }
  return $return;
}