function PathautoTestHelper::saveEntityAlias in Pathauto 6
Same name and namespace in other branches
- 6.2 pathauto.test \PathautoTestHelper::saveEntityAlias()
- 7 pathauto.test \PathautoTestHelper::saveEntityAlias()
2 calls to PathautoTestHelper::saveEntityAlias()
- PathautoBookTokenTestCase::testBookPathAlias in ./
pathauto.test - 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.
File
- ./
pathauto.test, line 39 - Functionality tests for Pathauto.
Class
- PathautoTestHelper
- Helper test class with some added functions for testing.
Code
function saveEntityAlias($entity_type, $entity, $alias, $language = '') {
$uri = $this
->entity_uri($entity_type, $entity);
return $this
->saveAlias($uri['path'], $alias, $language);
}