summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2014-01-03 05:55:59 (GMT)
committerwebchick2014-01-03 05:55:59 (GMT)
commit1420580cf2f71194f65583f53ca1d8969727f317 (patch)
tree85b8eb82f5c2fdf92848fedcf076fa5c96645814
parentee9fe14e8bd0dd955e98e05a77b390f5e11ca39a (diff)
Issue #2125497 by yched, Sweetchuck, areke: Field translation test is still use the old field_name property.
-rw-r--r--core/modules/field/lib/Drupal/field/Tests/TranslationTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/modules/field/lib/Drupal/field/Tests/TranslationTest.php b/core/modules/field/lib/Drupal/field/Tests/TranslationTest.php
index 7509fbd..b2a0b15 100644
--- a/core/modules/field/lib/Drupal/field/Tests/TranslationTest.php
+++ b/core/modules/field/lib/Drupal/field/Tests/TranslationTest.php
@@ -81,7 +81,7 @@ class TranslationTest extends FieldUnitTestBase {
$this->installConfig(array('language'));
- $this->field_name = drupal_strtolower($this->randomName() . '_field_name');
+ $this->field_name = drupal_strtolower($this->randomName());
$this->entity_type = 'entity_test';
@@ -92,16 +92,16 @@ class TranslationTest extends FieldUnitTestBase {
'cardinality' => 4,
'translatable' => TRUE,
);
- entity_create('field_entity', $this->field_definition)->save();
- $this->field = entity_load('field_entity', $this->entity_type . '.' . $this->field_name);
+ $this->field = entity_create('field_entity', $this->field_definition);
+ $this->field->save();
$this->instance_definition = array(
'field_name' => $this->field_name,
'entity_type' => $this->entity_type,
'bundle' => 'entity_test',
);
- entity_create('field_instance', $this->instance_definition)->save();
- $this->instance = entity_load('field_instance', 'entity_test.' . $this->instance_definition['bundle'] . '.' . $this->field_name);
+ $this->instance = entity_create('field_instance', $this->instance_definition);
+ $this->instance->save();
for ($i = 0; $i < 3; ++$i) {
$language = new Language(array(