diff --git a/core/modules/content_translation/src/Tests/ContentTranslationContextualLinksTest.php b/core/modules/content_translation/src/Tests/ContentTranslationContextualLinksTest.php index 47566fd..36a0d20 100644 --- a/core/modules/content_translation/src/Tests/ContentTranslationContextualLinksTest.php +++ b/core/modules/content_translation/src/Tests/ContentTranslationContextualLinksTest.php @@ -9,7 +9,6 @@ use Drupal\Component\Serialization\Json; use Drupal\language\Entity\ConfigurableLanguage; -use Drupal\language\Entity\ContentLanguageSettings; use Drupal\node\Entity\NodeType; use Drupal\simpletest\WebTestBase; @@ -72,7 +71,9 @@ protected function setUp() { $this->bundle = $this->randomMachineName(); $this->contentType = $this->drupalCreateContentType(array('type' => $this->bundle)); - // Add a translatable field to the content type. + // Add a field to the content type. This will be made translatable by the + // test through the UI. This is important because it tests that caches are + // cleared as expected when doing this. entity_create('field_storage_config', array( 'field_name' => 'field_test_text', 'entity_type' => 'node', @@ -92,11 +93,6 @@ protected function setUp() { )) ->save(); - // Enable content translation. - ContentLanguageSettings::loadByEntityTypeBundle('node', $this->bundle) - ->setLanguageAlterable(TRUE) - ->setDefaultLangcode(\Drupal::languageManager()->getDefaultLanguage()->getId()) - ->save(); // Create a translator user. $permissions = array( 'access contextual links',