Skip to content
Snippets Groups Projects
Commit 1420580c authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2125497 by yched, Sweetchuck, areke: Field translation test is still...

Issue #2125497 by yched, Sweetchuck, areke: Field translation test is still use the old field_name property.
parent ee9fe14e
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -81,7 +81,7 @@ function setUp() {
$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 @@ function setUp() {
'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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment