You are here

function ViewsPluginDisplayTestCase::testFilterGroupsUpdating in Views (for Drupal 7) 7.3

Based on a bug some filter_groups landed in the overridden display.

Even the filters weren't overridden. This caused multiple issues. Take sure that the value from the default display are used.

See also

http://drupal.org/node/1259608

views_plugin_display::init()

File

tests/plugins/views_plugin_display.test, line 96
Definition of ViewsPluginDisplayTestCase.

Class

ViewsPluginDisplayTestCase

Code

function testFilterGroupsUpdating() {
  $view = $this
    ->viewFilterGroupsUpdating();
  $view
    ->init_display();
  $this
    ->assertFalse($view->display['page']->handler->options['defaults']['filter_groups']);
  $this
    ->assertEqual($view->display['default']->handler->options['filter_groups'], $view->display['page']->handler->options['filter_groups'], 'Take sure the default options are used for the filter_groups');
}