You are here

function PathLanguageUITestCase::testLanguageNeutralURLs in Drupal 7

Tests that a language-neutral URL alias works.

File

modules/path/path.test, line 511
Tests for the Path module.

Class

PathLanguageUITestCase
Tests the user interface for creating path aliases, with languages.

Code

function testLanguageNeutralURLs() {
  $name = $this
    ->randomName(8);
  $edit = array();
  $edit['source'] = 'admin/config/search/path';
  $edit['alias'] = $name;
  $this
    ->drupalPost('admin/config/search/path/add', $edit, t('Save'));
  $this
    ->drupalGet($name);
  $this
    ->assertText(t('Filter aliases'), 'Language-neutral URL alias works');
}