You are here

function TokenTestHelper::mapTokenNames in Token 7

2 calls to TokenTestHelper::mapTokenNames()
TokenTestHelper::assertNoTokens in ./token.test
TokenTestHelper::assertTokens in ./token.test

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;
}