You are here

function PathautoTestHelper::assertNoEntityAlias in Pathauto 6

Same name and namespace in other branches
  1. 6.2 pathauto.test \PathautoTestHelper::assertNoEntityAlias()
  2. 7 pathauto.test \PathautoTestHelper::assertNoEntityAlias()
2 calls to PathautoTestHelper::assertNoEntityAlias()
PathautoUnitTestCase::testNoExistingPathAliases in ./pathauto.test
PathautoUnitTestCase::testNoTokensNoAlias in ./pathauto.test
Test that pathauto_create_alias() will not create an alias for a pattern that does not get any tokens replaced.

File

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

Class

PathautoTestHelper
Helper test class with some added functions for testing.

Code

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