FilterExceptionTest.php

Same filename in other branches
  1. 9 core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterExceptionTest.php
  2. 8.9.x core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterExceptionTest.php
  3. 11.x core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterExceptionTest.php

Namespace

Drupal\views_test_data\Plugin\views\filter

File

core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterExceptionTest.php

View source
<?php

namespace Drupal\views_test_data\Plugin\views\filter;

use Drupal\views\Attribute\ViewsFilter;
use Drupal\views\Plugin\views\filter\FilterPluginBase;

/**
 * Breaks the query with adding an invalid where expression.
 */
class FilterExceptionTest extends FilterPluginBase {
    
    /**
     * {@inheritdoc}
     */
    public function query() {
        $this->query
            ->addWhereExpression(NULL, "syntax error");
    }

}

Classes

Title Deprecated Summary
FilterExceptionTest Breaks the query with adding an invalid where expression.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.