'changeable' => 'a changeable field storage setting',
'unchangeable' => 'an unchangeable field storage setting',
'translatable_storage_setting' => 'a translatable field storage setting',
'test_field_setting' => 'dummy test string',
'translatable_field_setting' => 'a translatable field setting',
];
$this->
assertEquals($expected_settings,
$base_field->
getSettings());
// Change one single setting using setSettings(), and check that the other
// expected settings are still present.
$expected_settings['test_field_setting'
] = 'another test string';
$base_field->
setSettings(['test_field_setting' =>
$expected_settings['test_field_setting'
]]);
$this->
assertEquals($expected_settings,
$base_field->
getSettings());
} /**
* Tests the base field settings on a cloned base field definition object.
*/
public function testBaseFieldSettingsOnClone() { $base_field = BaseFieldDefinition::
create('test_field'
);
// Check that the default settings have been populated.
$expected_settings =
[