function TokenTestHelper::mapTokenNames in Token 7
2 calls to TokenTestHelper::mapTokenNames()
File
- ./
token.test, line 49 - 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;
}