diff --git a/core/modules/comment/src/Tests/CommentTranslationUITest.php b/core/modules/comment/src/Tests/CommentTranslationUITest.php index 3a6dd5e..0067297 100644 --- a/core/modules/comment/src/Tests/CommentTranslationUITest.php +++ b/core/modules/comment/src/Tests/CommentTranslationUITest.php @@ -9,7 +9,6 @@ use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface; use Drupal\content_translation\Tests\ContentTranslationUITest; -use Drupal\field\Entity\FieldConfig; /** * Tests the Comment Translation UI. @@ -71,16 +70,6 @@ protected function getTranslatorPermissions() { } /** - * Overrides \Drupal\content_translation\Tests\ContentTranslationUITest::setupTestFields(). - */ - function setupTestFields() { - parent::setupTestFields(); - $field = FieldConfig::loadByName('comment', $this->bundle, 'comment_body'); - $field->setTranslatable(TRUE); - $field->save(); - } - - /** * Overrides \Drupal\content_translation\Tests\ContentTranslationUITest::createEntity(). */ protected function createEntity($values, $langcode, $comment_type = 'comment_article') { diff --git a/core/modules/comment/src/Tests/Views/CommentFieldFilterTest.php b/core/modules/comment/src/Tests/Views/CommentFieldFilterTest.php index eae5ee8..4fd7d58 100644 --- a/core/modules/comment/src/Tests/Views/CommentFieldFilterTest.php +++ b/core/modules/comment/src/Tests/Views/CommentFieldFilterTest.php @@ -7,7 +7,6 @@ namespace Drupal\comment\Tests\Views; -use Drupal\field\Entity\FieldConfig; use Drupal\language\Entity\ConfigurableLanguage; /** @@ -44,12 +43,6 @@ function setUp() { ConfigurableLanguage::createFromLangcode('fr')->save(); ConfigurableLanguage::createFromLangcode('es')->save(); - // Make the comment body field translatable. The title is already - // translatable by definition. - $field = FieldConfig::loadByName('comment', $this->comment->bundle(), 'comment_body'); - $field->setTranslatable(TRUE); - $field->save(); - // Set up comment titles. $this->commentTitles = array( 'en' => 'Food in Paris', diff --git a/core/modules/content_translation/src/Tests/ContentTranslationSyncImageTest.php b/core/modules/content_translation/src/Tests/ContentTranslationSyncImageTest.php index c3edad2..1efe28a 100644 --- a/core/modules/content_translation/src/Tests/ContentTranslationSyncImageTest.php +++ b/core/modules/content_translation/src/Tests/ContentTranslationSyncImageTest.php @@ -61,7 +61,6 @@ protected function setupTestFields() { 'field_name' => $this->fieldName, 'bundle' => $this->entityTypeId, 'label' => 'Test translatable image field', - 'translatable' => TRUE, 'third_party_settings' => array( 'content_translation' => array( 'translation_sync' => array( diff --git a/core/modules/content_translation/src/Tests/ContentTranslationTestBase.php b/core/modules/content_translation/src/Tests/ContentTranslationTestBase.php index 2dea201..cd4e482 100644 --- a/core/modules/content_translation/src/Tests/ContentTranslationTestBase.php +++ b/core/modules/content_translation/src/Tests/ContentTranslationTestBase.php @@ -187,7 +187,6 @@ protected function setupTestFields() { 'field_name' => $this->fieldName, 'bundle' => $this->bundle, 'label' => 'Test translatable text-field', - 'translatable' => TRUE, ))->save(); entity_get_form_display($this->entityTypeId, $this->bundle, 'default') ->setComponent($this->fieldName, array( diff --git a/core/modules/field/src/Tests/TranslationTest.php b/core/modules/field/src/Tests/TranslationTest.php index 8cf744d..c03c65f 100644 --- a/core/modules/field/src/Tests/TranslationTest.php +++ b/core/modules/field/src/Tests/TranslationTest.php @@ -92,7 +92,6 @@ protected function setUp() { $this->field_definition = array( 'field_storage' => $this->fieldStorage, 'bundle' => 'entity_test', - 'translatable' => TRUE, ); $this->field = entity_create('field_config', $this->field_definition); $this->field->save(); diff --git a/core/modules/field/src/Tests/TranslationWebTest.php b/core/modules/field/src/Tests/TranslationWebTest.php index 24a7616..4fe28b2 100644 --- a/core/modules/field/src/Tests/TranslationWebTest.php +++ b/core/modules/field/src/Tests/TranslationWebTest.php @@ -70,7 +70,6 @@ protected function setUp() { $field = array( 'field_storage' => $this->fieldStorage, 'bundle' => $this->entity_type, - 'translatable' => TRUE, ); entity_create('field_config', $field)->save(); $this->field = FieldConfig::load($this->entity_type . '.' . $field['bundle'] . '.' . $this->field_name); diff --git a/core/modules/file/src/Tests/FileFieldTestBase.php b/core/modules/file/src/Tests/FileFieldTestBase.php index af365ec..0cf36c3 100644 --- a/core/modules/file/src/Tests/FileFieldTestBase.php +++ b/core/modules/file/src/Tests/FileFieldTestBase.php @@ -105,7 +105,6 @@ function attachFileField($name, $entity_type, $bundle, $field_settings = array() 'bundle' => $bundle, 'required' => !empty($field_settings['required']), 'settings' => $field_settings, - 'translatable' => TRUE, ); entity_create('field_config', $field)->save(); diff --git a/core/modules/node/src/Tests/NodeAccessLanguageAwareCombinationTest.php b/core/modules/node/src/Tests/NodeAccessLanguageAwareCombinationTest.php index e65d75e..93c4bb6 100644 --- a/core/modules/node/src/Tests/NodeAccessLanguageAwareCombinationTest.php +++ b/core/modules/node/src/Tests/NodeAccessLanguageAwareCombinationTest.php @@ -68,7 +68,6 @@ protected function setUp() { entity_create('field_config', array( 'field_storage' => $field_storage, 'bundle' => 'page', - 'translatable' => TRUE, 'widget' => array( 'type' => 'options_buttons', ), diff --git a/core/modules/node/src/Tests/NodeAccessLanguageAwareTest.php b/core/modules/node/src/Tests/NodeAccessLanguageAwareTest.php index 53ba868..0b0fcd1 100644 --- a/core/modules/node/src/Tests/NodeAccessLanguageAwareTest.php +++ b/core/modules/node/src/Tests/NodeAccessLanguageAwareTest.php @@ -66,7 +66,6 @@ protected function setUp() { entity_create('field_config', array( 'field_storage' => $field_storage, 'bundle' => 'page', - 'translatable' => TRUE, 'widget' => array( 'type' => 'options_buttons', ), diff --git a/core/modules/node/src/Tests/Views/NodeFieldFilterTest.php b/core/modules/node/src/Tests/Views/NodeFieldFilterTest.php index 13cc3f9..85f87e3 100644 --- a/core/modules/node/src/Tests/Views/NodeFieldFilterTest.php +++ b/core/modules/node/src/Tests/Views/NodeFieldFilterTest.php @@ -7,7 +7,6 @@ namespace Drupal\node\Tests\Views; -use Drupal\field\Entity\FieldConfig; use Drupal\language\Entity\ConfigurableLanguage; /** @@ -48,12 +47,6 @@ function setUp() { ConfigurableLanguage::createFromLangcode('fr')->save(); ConfigurableLanguage::createFromLangcode('es')->save(); - // Make the body field translatable. The title is already translatable by - // definition. - $field = FieldConfig::loadByName('node', 'page', 'body'); - $field->setTranslatable(TRUE); - $field->save(); - // Set up node titles. $this->node_titles = array( 'en' => 'Food in Paris', diff --git a/core/modules/system/src/Tests/Entity/EntityQueryTest.php b/core/modules/system/src/Tests/Entity/EntityQueryTest.php index bbfed0a..2620b42 100644 --- a/core/modules/system/src/Tests/Entity/EntityQueryTest.php +++ b/core/modules/system/src/Tests/Entity/EntityQueryTest.php @@ -84,7 +84,6 @@ protected function setUp() { entity_create('field_config', array( 'field_storage' => $field_storage, 'bundle' => $bundle, - 'translatable' => TRUE, ))->save(); } $bundles[] = $bundle; diff --git a/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldFilterTest.php b/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldFilterTest.php index cd51b13..b181323 100644 --- a/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldFilterTest.php +++ b/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldFilterTest.php @@ -72,7 +72,6 @@ function setUp() { 'entity_type' => 'taxonomy_term', 'label' => 'Foo', 'bundle' => 'views_testing_tags', - 'translatable' => TRUE, ))->save(); // Create term with translations.