1 path_pattern.test | PathPatternTestHelper::assertEntityAlias($entity_type, $entity, $expected_alias, $language = LANGUAGE_NONE) |
File
- core/
modules/ path/ tests/ path_pattern.test, line 53 - Functionality tests for automatic path generation.
Class
- PathPatternTestHelper
- Helper test class with some added functions for testing.
Code
function assertEntityAlias($entity_type, $entity, $expected_alias, $language = LANGUAGE_NONE) {
$uri = entity_uri($entity_type, $entity);
$this->assertAlias($uri['path'], $expected_alias, $language);
}