function FilterEntityReferenceWebTest::testFilterConfigUi
Tests the filter UI for config reference.
File
-
core/
modules/ views_ui/ tests/ src/ Functional/ FilterEntityReferenceWebTest.php, line 120
Class
- FilterEntityReferenceWebTest
- Tests the entity reference filter UI.
Namespace
Drupal\Tests\views_ui\FunctionalCode
public function testFilterConfigUi() : void {
$this->drupalGet('admin/structure/views/nojs/handler/test_filter_entity_reference/default/filter/field_test_config_target_id');
$options = $this->getUiOptions();
// We should expect the content types defined as options.
$this->assertEquals([
'article',
'page',
], array_column($options, 'label'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.