You are here

function TokenTestHelper::saveAlias in Token 7

2 calls to TokenTestHelper::saveAlias()
TokenTestHelper::saveEntityAlias in ./token.test
TokenURLTestCase::setUp in ./token.test
Sets up a Drupal site for running functional and integration tests.

File

./token.test, line 67
Test integration for the token module.

Class

TokenTestHelper
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;
}