1 views_plugin_display.test ViewsPluginDisplayTestCase::testFilterGroupsOverriding()

Tests the overriding of filter_groups.

File

core/modules/views/tests/plugins/views_plugin_display.test, line 16
Definition of ViewsPluginDisplayTestCase.

Class

ViewsPluginDisplayTestCase

Code

function testFilterGroupsOverriding() {
  $view = $this->viewFilterGroupsUpdating();
  $view->init_display();

  // mark is as overridden, yes FALSE, means overridden.
  $view->display['page']->handler->set_override('filter_groups', FALSE);
  $this->assertFalse($view->display['page']->handler->is_defaulted('filter_groups'), "Take sure that 'filter_groups' is marked as overridden.");
  $this->assertFalse($view->display['page']->handler->is_defaulted('filters'), "Take sure that 'filters'' is marked as overridden.");
}