$this->assertEqual('Drupal\views\Plugin\views\\'.$type.'\Broken',get_class($handler),newFormattableMarkup('Make sure that a broken handler of type: @type is created.',['@type'=>$type]));
$types=[
'field'=>BrokenField::class,
'area'=>BrokenArea::class,
'filter'=>BrokenFilter::class,
];
// Test non-existent tables/fields.
$items=[
[
'table'=>'table_invalid',
'field'=>'id',
],
[
'table'=>'views_test_data',
'field'=>'field_invalid',
],
];
$form_state=newFormState();
$description_top='<p>'.t('The handler for this item is broken or missing. The following details are available:').'</p>';
$description_bottom='<p>'.t('Enabling the appropriate module may solve this issue. Otherwise, check to see if there is a module update available.').'</p>';
$this->assertStringContainsString(newFormattableMarkup("Missing handler: @table @field @type",['@table'=>'views_test_data','@field'=>'field_invalid','@type'=>'field']),$this->lastErrorMessage,'An invalid field name throws a debug message.');