1.20.x path_pattern.test | PathPatternTestHelper::assertEntityAliasExists($entity_type, $entity) |
File
- modules/
path/ tests/ path_pattern.test, line 58 - Functionality tests for automatic path generation.
Class
- PathPatternTestHelper
- Helper test class with some added functions for testing.
Code
function assertEntityAliasExists($entity_type, $entity) {
$uri = entity_uri($entity_type, $entity);
return $this->assertAliasExists(array('source' => $uri['path']));
}