You are here

function PathautoTestHelper::assertAliasExists in Pathauto 7

Same name and namespace in other branches
  1. 6.2 pathauto.test \PathautoTestHelper::assertAliasExists()
  2. 6 pathauto.test \PathautoTestHelper::assertAliasExists()
4 calls to PathautoTestHelper::assertAliasExists()
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.
PathautoTestHelper::assertEntityAliasExists in ./pathauto.test
PathautoUnitTestCase::testPathDeleteMultiple in ./pathauto.test
Test pathauto_path_delete_multiple().
PathautoUnitTestCase::testUpdateActions in ./pathauto.test
Test the different update actions in pathauto_create_alias().

File

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

Class

PathautoTestHelper
Helper test class with some added functions for testing.

Code

function assertAliasExists($conditions) {
  $path = path_load($conditions);
  $this
    ->assertTrue($path, t('Alias with conditions @conditions found.', array(
    '@conditions' => var_export($conditions, TRUE),
  )));
  return $path;
}