1 token.test TokenTestHelper::saveEntityAlias($entity_type, $entity, $alias, $language = LANGUAGE_NONE)

File

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

Class

TokenTestHelper
Helper test class with some added functions for testing.

Code

function saveEntityAlias($entity_type, $entity, $alias, $language = LANGUAGE_NONE) {
  $uri = entity_uri($entity_type, $entity);
  return $this->saveAlias($uri['path'], $alias, $language);
}