function FilterPluginBaseTest::testAcceptExposedInput
Same name in other branches
- 9 core/modules/views/tests/src/Unit/Plugin/filter/FilterPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\filter\FilterPluginBaseTest::testAcceptExposedInput()
- 11.x core/modules/views/tests/src/Unit/Plugin/filter/FilterPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\filter\FilterPluginBaseTest::testAcceptExposedInput()
@covers ::acceptExposedInput
@dataProvider acceptExposedInputProvider
File
-
core/
modules/ views/ tests/ src/ Unit/ Plugin/ filter/ FilterPluginBaseTest.php, line 21
Class
- FilterPluginBaseTest
- @coversDefaultClass \Drupal\views\Plugin\views\filter\FilterPluginBase @group views
Namespace
Drupal\Tests\views\Unit\Plugin\filterCode
public function testAcceptExposedInput(bool $expected_result, array $options, array $input) : void {
$definition = [
'title' => 'Accept exposed input Test',
'group' => 'Test',
];
$filter = new FilterPluginBaseStub([], 'stub', $definition);
$filter->options = $options;
$this->assertSame($expected_result, $filter->acceptExposedInput($input));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.