1 views_handler_filter_string.test ViewsHandlerFilterStringTest::testFilterStringGroupedExposedLonger()

File

core/modules/views/tests/handlers/views_handler_filter_string.test, line 637
Definition of ViewsHandlerFilterStringTest.

Class

ViewsHandlerFilterStringTest
Tests the core views_handler_filter_string handler.

Code

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

  // Filter: Name, Operator: longerthan, Value: 4
  $filters['name']['group_info']['default_group'] = 5;
  $view->set_display('page_1');
  $view->display['page_1']->handler->override_option('filters', $filters);

  $this->executeView($view);
  $resultset = array(
    array(
      'name' => 'Meredith',
    ),
  );
  $this->assertIdenticalResultset($view, $resultset, $this->column_map);
}