diff --git a/core/modules/path/lib/Drupal/path/Tests/PathLanguageTest.php b/core/modules/path/lib/Drupal/path/Tests/PathLanguageTest.php index 642a4af..63ebf66 100644 --- a/core/modules/path/lib/Drupal/path/Tests/PathLanguageTest.php +++ b/core/modules/path/lib/Drupal/path/Tests/PathLanguageTest.php @@ -7,6 +7,8 @@ namespace Drupal\path\Tests; +use Drupal\field\Field; + /** * Tests URL aliases for translated nodes. */ @@ -65,20 +67,16 @@ function setUp() { ); $this->drupalPostForm('admin/config/regional/content-language', $edit, t('Save')); + // Ensure configuration changes are picked up in the host environment. + Field::fieldInfo()->flush(); + $field = Field::fieldInfo()->getField('node', 'body'); + $this->assertTrue($field->isFieldTranslatable(), 'Node body is translatable.'); } /** * Test alias functionality through the admin interfaces. */ function testAliasTranslation() { - // Set 'page' content type to enable translation. - $edit = array( - 'language_configuration[language_show]' => TRUE, - ); - $this->drupalPostForm('admin/structure/types/manage/page', $edit, t('Save content type')); - $this->assertRaw(t('The content type %type has been updated.', array('%type' => 'Basic page')), 'Basic page content type has been updated.'); - variable_set('node_type_language_translation_enabled_page', TRUE); - $english_node = $this->drupalCreateNode(array('type' => 'page', 'langcode' => 'en')); $english_alias = $this->randomName();