]);
// Create node 2 relying on defaults.
$this->
createNode([ 'type' => 'test_node_type',
'title' => 'Test Node 2 Uses Defaults',
]);
// Add default value to field_string_late_default.
$field = FieldConfig::
loadByName('node', 'test_node_type', 'field_string_late_default'
);
$field->
setDefaultValue('Too late!'
);
$field->
save();
} /**
* Tests display of default field values.
*/
public function testDefaultValues() { // Begin by viewing nodes with Layout Builder disabled.
$this->
assertNodeWithValues();
$this->
assertNodeWithDefaultValues();