function FilterStringTest::testFilterStringGroupedExposedLonger

File

drupal/core/modules/views/lib/Drupal/views/Tests/Handler/FilterStringTest.php, line 676
Definition of Drupal\views\Tests\Handler\FilterStringTest.

Class

FilterStringTest
Tests the core Drupal\views\Plugin\views\filter\String handler.

Namespace

Drupal\views\Tests\Handler

Code

function testFilterStringGroupedExposedLonger() {
  $filters = $this
    ->getGroupedExposedFilters();
  $view = $this
    ->getBasicPageView();

  // Filter: Name, Operator: longerthan, Value: 4
  $filters['name']['group_info']['default_group'] = 5;
  $view
    ->setDisplay('page_1');
  $view->displayHandlers
    ->get('page_1')
    ->overrideOption('filters', $filters);
  $this
    ->executeView($view);
  $resultset = array(
    array(
      'name' => 'Meredith',
    ),
  );
  $this
    ->assertIdenticalResultset($view, $resultset, $this->column_map);
}