You are here

function PathautoTestHelper::saveAlias in Pathauto 7

Same name and namespace in other branches
  1. 6.2 pathauto.test \PathautoTestHelper::saveAlias()
  2. 6 pathauto.test \PathautoTestHelper::saveAlias()
3 calls to PathautoTestHelper::saveAlias()
PathautoLocaleTestCase::testLanguageAliases in ./pathauto.test
Test that when an English node is updated, its old English alias is updated and its newer French alias is left intact.
PathautoTestHelper::saveEntityAlias in ./pathauto.test
PathautoUnitTestCase::testPathDeleteMultiple in ./pathauto.test
Test pathauto_path_delete_multiple().

File

./pathauto.test, line 28
Functionality tests for Pathauto.

Class

PathautoTestHelper
Helper test class with some added functions for testing.

Code

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