diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php index 971d2eb..017f15b 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php @@ -211,7 +211,10 @@ public function query() { } /** + * Adds a where condition to the query for a boolean value. + * * @param string $field + * The field name to add the where condition for. */ protected function queryOpBoolean($field) { if (empty($this->value)) { diff --git a/core/modules/views/lib/Drupal/views/Tests/Handler/FilterBooleanOperatorTest.php b/core/modules/views/lib/Drupal/views/Tests/Handler/FilterBooleanOperatorTest.php index 883ff22..d354f0f 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Handler/FilterBooleanOperatorTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Handler/FilterBooleanOperatorTest.php @@ -10,7 +10,9 @@ use Drupal\views\Tests\ViewUnitTestBase; /** - * Tests the core Drupal\views\Plugin\views\filter\InOperator handler. + * Tests the BooleanOperator filter handler. + * + * @see \Drupal\views\Plugin\views\filter\BooleanOperator */ class FilterBooleanOperatorTest extends ViewUnitTestBase { @@ -46,11 +48,14 @@ protected function setUp() { $this->installSchema('system', array('menu_router', 'variable', 'key_value_expire')); } + /** + * Tests the BooleanOperator filter. + */ public function testFilterBooleanOperator() { $view = views_get_view('test_view'); $view->setDisplay(); - // Add a in_operator ordering. + // Add a the status boolean filter. $view->displayHandlers->get('default')->overrideOption('filters', array( 'status' => array( 'id' => 'status', @@ -72,7 +77,7 @@ public function testFilterBooleanOperator() { $view->destroy(); $view->setDisplay(); - // Add a in_operator ordering. + // Add the status boolean filter. $view->displayHandlers->get('default')->overrideOption('filters', array( 'status' => array( 'id' => 'status',