Version 1
[yaffs-website] / web / core / modules / views / tests / modules / views_test_data / src / Plugin / views / filter / FilterExceptionTest.php
1 <?php
2
3 namespace Drupal\views_test_data\Plugin\views\filter;
4
5 use Drupal\views\Plugin\views\filter\FilterPluginBase;
6
7 /**
8  * Breaks the query with adding an invalid where expression.
9  *
10  * @ViewsFilter("test_exception_filter")
11  */
12 class FilterExceptionTest extends FilterPluginBase {
13
14   /**
15    * {@inheritdoc}
16    */
17   public function query() {
18     $this->query->addWhereExpression(NULL, "syntax error");
19   }
20
21 }