Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 5df5bb02 authored by escuriola's avatar escuriola Committed by drishu
Browse files

OEL-1552: Restore call to createExamplePersonWithRequiredFieldsOnly when...

OEL-1552: Restore call to createExamplePersonWithRequiredFieldsOnly when create Person node with all fields.
parent 674b48e2
No related branches found
No related tags found
1 merge request!162OEL-1552: Theme the person content type
......@@ -213,18 +213,7 @@ class PersonContentRenderTest extends WhitelabelBrowserTestBase {
*/
protected function createExamplePersonWithAllFields(): NodeInterface {
/** @var \Drupal\node\Entity\Node $node */
$node = \Drupal::entityTypeManager()
->getStorage('node')
->create([
'type' => 'oe_sc_person',
'oe_sc_person_first_name' => 'Stefan',
'oe_sc_person_last_name' => 'Mayer',
'oe_sc_person_country' => 'DE',
'oe_sc_person_occupation' => 'DG Test',
'oe_sc_person_position' => 'Director',
'uid' => 1,
'status' => 1,
]);
$node = $this->createExamplePersonWithRequiredFieldsOnly();
// Create a sample image media entity to be embedded.
$image_file = File::create([
'uri' => $this->getTestFiles('image')[0]->uri,
......
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