You are here

function LanguageHierarchyPathsFunctionalTest::checkDirectLookup in Language Hierarchy 7

Directly check the alias for a system path in a given language.

1 call to LanguageHierarchyPathsFunctionalTest::checkDirectLookup()
LanguageHierarchyPathsFunctionalTest::testLanguageHierarchyPathsLookup in modules/language_hierarchy_paths/language_hierarchy_paths.test
Test if language hierarchies are used for path aliases associated with language.

File

modules/language_hierarchy_paths/language_hierarchy_paths.test, line 232
Tests for language_hierarchy_paths.module.

Class

LanguageHierarchyPathsFunctionalTest
Functional tests for configuring a different path alias per language.

Code

function checkDirectLookup($langcode, $system_path, $alias, $message = '') {
  $lookup_path = $this->pathinc_singleton
    ->drupal_lookup_path('alias', $system_path, $langcode);
  $this
    ->assertEqual($alias, $lookup_path, $message);
}