$this->groupFormUiErrors
['missing_title_empty_operator'
] = 'A label is required for the specified operator.';
} /**
* Tests the admin interface of exposed filter and sort items.
*/
public function testExposedAdminUi() { $edit =
[];
$this->
drupalGet('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type'
);
// Be sure that the button is called exposed.
$this->
helperButtonHasLabel('edit-options-expose-button-button', 'Expose filter'
);
// The first time the filter UI is displayed, the operator and the
// value forms should be shown.
$this->
assertSession()->
fieldValueEquals('edit-options-operator-in', 'in'
);
$this->
assertSession()->
fieldValueEquals('edit-options-operator-not-in', 'in'
);
$this->
assertSession()->
checkboxNotChecked('edit-options-value-page'
);
$this->
assertSession()->
checkboxNotChecked('edit-options-value-article'
);
// Click the Expose filter button.
$this->
drupalGet('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type'
);
$this->
submitForm($edit, 'Expose filter'
);