You are here

function PathautoTestHelper::assertEntityAlias in Pathauto 7

Same name and namespace in other branches
  1. 6.2 pathauto.test \PathautoTestHelper::assertEntityAlias()
  2. 6 pathauto.test \PathautoTestHelper::assertEntityAlias()
12 calls to PathautoTestHelper::assertEntityAlias()
PathautoFunctionalTestCase::testNodeOperations in ./pathauto.test
Test node operations.
PathautoFunctionalTestCase::testNodeState in ./pathauto.test
@todo Merge this with existing node test methods?
PathautoFunctionalTestCase::testProgrammaticEntityCreation in ./pathauto.test
Test programmatic entity creation for aliases.
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.

... See full list

File

./pathauto.test, line 43
Functionality tests for Pathauto.

Class

PathautoTestHelper
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);
}