function ViewsPluginDisplayTestCase::testFilterGroupsOverriding in Views (for Drupal 7) 7.3
Tests the overriding of filter_groups.
File
- tests/
plugins/ views_plugin_display.test, line 27 - Definition of ViewsPluginDisplayTestCase.
Class
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.");
}