1 path.test PathLanguageUITestCase::testLanguageNeutralURLs()

Tests that a language-neutral URL alias works.

File

core/modules/path/tests/path.test, line 484
Tests for the Path module.

Class

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

Code

function testLanguageNeutralURLs() {
  $name = $this->randomName(8);
  $edit = array();
  $edit['source'] = 'admin/config/urls/path';
  $edit['alias'] = $name;
  $this->backdropPost('admin/config/urls/path/add', $edit, t('Save URL alias'));

  $this->backdropGet($name);
  $this->assertText(t('Filter aliases'), 'Language-neutral URL alias works');
}