$this->
helperButtonHasLabel('edit-submit-test-exposed-form-buttons', 'Apply'
);
} /**
* Tests the exposed form with a non-standard identifier.
*/
public function testExposedIdentifier() { // Alter the identifier of the filter to a random string.
$view = Views::
getView('test_exposed_form_buttons'
);
$view->
setDisplay();
$identifier = 'new_identifier';
$view->displayHandlers->
get('default'
)->
overrideOption('filters',
[ 'type' =>
[ 'exposed' => TRUE,
'field' => 'type',
'id' => 'type',
'table' => 'node_field_data',
'plugin_id' => 'in_operator',
'entity_type' => 'node',
'entity_field' => 'type',
'expose' =>
[ 'identifier' =>
$identifier,
'label' => 'Content: Type',