1 path.test PathLanguageUITestCase::testDefaultLanguageURLs()

Tests that a default language URL alias works.

File

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

Class

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

Code

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

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