1 path_pattern.test PathPatternTestHelper::saveEntityAlias($entity_type, $entity, $alias, $language = LANGUAGE_NONE)

File

core/modules/path/tests/path_pattern.test, line 48
Functionality tests for automatic path generation.

Class

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