You are here

function PathautoPersistTestCase::assertEntityAlias in Pathauto Persistent State 7

2 calls to PathautoPersistTestCase::assertEntityAlias()
PathautoPersistTestCase::assertNoEntityAlias in ./pathauto_persist.test
PathautoPersistTestCase::testNodeAPI in ./pathauto_persist.test

File

./pathauto_persist.test, line 24

Class

PathautoPersistTestCase
Tests for the pathauto_persist module.

Code

function assertEntityAlias($entity_type, $entity, $expected_alias, $language = LANGUAGE_NONE) {
  $uri = entity_uri($entity_type, $entity);
  $this
    ->assertAlias($uri['path'], $expected_alias, $language);
}