diff --git a/core/modules/path/lib/Drupal/path/Tests/PathLanguageTest.php b/core/modules/path/lib/Drupal/path/Tests/PathLanguageTest.php index e321bb2..781e5ba 100644 --- a/core/modules/path/lib/Drupal/path/Tests/PathLanguageTest.php +++ b/core/modules/path/lib/Drupal/path/Tests/PathLanguageTest.php @@ -31,15 +31,15 @@ function setUp() { parent::setUp(); $permissions = array( - 'edit any page content', - 'create page content', - 'administer url aliases', - 'create url aliases', - 'administer languages', 'access administration pages', + 'administer content translation', 'administer content types', + 'administer languages', + 'administer url aliases', 'create content translations', - 'administer content translation', + 'create page content', + 'create url aliases', + 'edit any page content', 'translate any entity' ); // Create and login user. @@ -59,7 +59,6 @@ function setUp() { // Enable translation for page node. $edit = array('entity_types[node]' => 1, 'settings[node][page][translatable]' => 1, 'settings[node][page][fields][body]' => 1, 'settings[node][page][settings][language][language_show]' => 1); $this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save')); - } /** @@ -106,8 +105,7 @@ function testAliasTranslation() { $languages = language_list(); // Ensure the node was created. - $french_node = $english_node->getTranslation('fr'); - + $french_node = $english_node->getTranslation('fr'); $this->assertTrue(($french_node), 'Node found in database.'); // Confirm that the alias works. @@ -179,4 +177,5 @@ function testAliasTranslation() { $french_node_alias = $this->container->get('path.alias_manager')->getPathAlias('node/' . $french_node->id(), 'fr'); $this->assertEqual($french_node_alias, $french_alias, 'Alias is the same.'); } + }