You are here

function TokenTestHelper::saveEntityAlias in Token 7

File

./token.test, line 77
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);
}