function PathautoTestHelper::assertEntityAlias in Pathauto 6
Same name and namespace in other branches
- 6.2 pathauto.test \PathautoTestHelper::assertEntityAlias()
- 7 pathauto.test \PathautoTestHelper::assertEntityAlias()
8 calls to PathautoTestHelper::assertEntityAlias()
- PathautoBookTokenTestCase::testBookPathAlias in ./
pathauto.test - PathautoFunctionalTestCase::testNodeOperations in ./
pathauto.test - Test node operations.
- PathautoFunctionalTestCase::testUserOperations in ./
pathauto.test - Test user operations.
- PathautoLocaleTestCase::testLanguageAliases in ./
pathauto.test - Test that when an English node is updated, its old English alias is updated and its newer French alias is left intact.
- PathautoTestHelper::assertNoEntityAlias in ./
pathauto.test
File
- ./
pathauto.test, line 44 - Functionality tests for Pathauto.
Class
- PathautoTestHelper
- Helper test class with some added functions for testing.
Code
function assertEntityAlias($entity_type, $entity, $expected_alias, $language = '') {
$uri = $this
->entity_uri($entity_type, $entity);
$this
->assertAlias($uri['path'], $expected_alias, $language);
}