function PathautoTestHelper::assertAlias in Pathauto 7
Same name and namespace in other branches
- 6.2 pathauto.test \PathautoTestHelper::assertAlias()
- 6 pathauto.test \PathautoTestHelper::assertAlias()
1 call to PathautoTestHelper::assertAlias()
File
- ./
pathauto.test, line 67 - Functionality tests for Pathauto.
Class
- PathautoTestHelper
- Helper test class with some added functions for testing.
Code
function assertAlias($source, $expected_alias, $language = LANGUAGE_NONE) {
drupal_clear_path_cache($source);
$alias = drupal_get_path_alias($source, $language);
$this
->assertIdentical($alias, $expected_alias, t("Alias for %source with language '@language' was %actual, expected %expected.", array(
'%source' => $source,
'%actual' => $alias,
'%expected' => $expected_alias,
'@language' => $language,
)));
}