You are here

function PathautoPersistTestCase::assertNoEntityAliasExists in Pathauto Persistent State 7

1 call to PathautoPersistTestCase::assertNoEntityAliasExists()
PathautoPersistTestCase::testNodeAPI in ./pathauto_persist.test

File

./pathauto_persist.test, line 39

Class

PathautoPersistTestCase
Tests for the pathauto_persist module.

Code

function assertNoEntityAliasExists($entity_type, $entity, $alias = NULL) {
  $uri = entity_uri($entity_type, $entity);
  $path = array(
    'source' => $uri['path'],
  );
  if (isset($alias)) {
    $path['alias'] = $alias;
  }
  $this
    ->assertNoAliasExists($path);
}