You are here

function PathautoTestHelper::assertEntityAliasExists in Pathauto 7

Same name and namespace in other branches
  1. 6.2 pathauto.test \PathautoTestHelper::assertEntityAliasExists()
  2. 6 pathauto.test \PathautoTestHelper::assertEntityAliasExists()
1 call to PathautoTestHelper::assertEntityAliasExists()
PathautoBulkUpdateTestCase::testBulkUpdate in ./pathauto.test

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'],
  ));
}