// Check the checkbox and ensure that it is submitted properly.
$this->submitForm([
"{$field_name}[0][display]"=>TRUE,
],'Save');
$node=$this->drupalGetNodeByTitle($title,TRUE);
$this->assertEquals(1,$node->get($field_name)->getValue()[0]['display'],'The checkbox is disabled because display_default option is marked as false.');