1 path_pattern.test PathPatternTestHelper::saveAlias($source, $alias, $langcode = LANGUAGE_NONE)

File

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

Class

PathPatternTestHelper
Helper test class with some added functions for testing.

Code

function saveAlias($source, $alias, $langcode = LANGUAGE_NONE) {
  $alias = array(
    'source' => $source,
    'alias' => $alias,
    'langcode' => $langcode,
  );
  path_save($alias);
  return $alias;
}