You are here

function PathLanguageUiTest::testLanguageNeutralUrl in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/path/src/Tests/PathLanguageUiTest.php \Drupal\path\Tests\PathLanguageUiTest::testLanguageNeutralUrl()

Tests that a language-neutral URL alias works.

File

core/modules/path/src/Tests/PathLanguageUiTest.php, line 45
Contains \Drupal\path\Tests\PathLanguageUiTest.

Class

PathLanguageUiTest
Confirm that the Path module user interface works with languages.

Namespace

Drupal\path\Tests

Code

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