'bundle' => 'entity_test',
'mode' => 'default',
'content' =>
[ 'foo' =>
[ 'type' => 'visible',
],
],
'hidden' =>
[ 'bar' => TRUE,
],
];
$this->
assertEntityValues($expected,
$entity_display->
toArray());
// Save the display.
// the 'content' property and the visible field has the default region set.
$entity_display->
save();
// The dependencies have been updated.
$expected['dependencies'
]['module'
] =
[ 'entity_test',
'field_layout',
'layout_discovery',
];