function PathautoTestHelper::assertEntityAliasExists in Pathauto 7
Same name and namespace in other branches
- 6.2 pathauto.test \PathautoTestHelper::assertEntityAliasExists()
- 6 pathauto.test \PathautoTestHelper::assertEntityAliasExists()
1 call to PathautoTestHelper::assertEntityAliasExists()
File
- ./
pathauto.test, line 48 - Functionality tests for Pathauto.
Class
- PathautoTestHelper
- 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'],
));
}