$this->langcodes
[] =
$langcode;
ConfigurableLanguage::
createFromLangcode($langcode)->
save();
} $this->testAuthor = User::
create([ 'name' => 'foo',
]);
$this->testAuthor->
save();
// Make sure we do not try to render non-existing user data.
$node_type = NodeType::
create(['type' => 'test'
]);
$node_type->
setDisplaySubmitted(FALSE
);
$node_type->
save();
FieldStorageConfig::
create([ 'entity_type' => 'node',
'type' => 'entity_reference',
'field_name' => 'field_reference',
])->
save();
FieldConfig::
create([ 'entity_type' => 'node',
'bundle' => 'test',
'field_name' => 'field_reference',
])