function ViewsPluginDisplayTestCase::testFilterGroupsOverriding

Tests the overriding of filter_groups.

File

tests/plugins/views_plugin_display.test, line 27

Class

ViewsPluginDisplayTestCase

Code

public 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.");
}