You are here

function DomainTokenTest::mapTokenNames in Domain Access 7.3

1 call to DomainTokenTest::mapTokenNames()
DomainTokenTest::assertTokens in tests/domain.test
Function copied from TokenTestHelper::assertTokens().

File

tests/domain.test, line 1137
Simpletest for Domain Access.

Class

DomainTokenTest

Code

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