You are here

function LanguageHierarchyPathsFunctionalTest::createPathsThroughUI in Language Hierarchy 7

Create paths through the UI (as opposed to calling path_save()).

1 call to LanguageHierarchyPathsFunctionalTest::createPathsThroughUI()
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 192
Tests for language_hierarchy_paths.module.

Class

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

Code

function createPathsThroughUI($paths) {
  foreach ($paths as $edit) {
    $this
      ->drupalPost('admin/config/search/path/add', $edit, t('Save'));
  }
}