/**
* Tests the overriding of filter_groups.
*/
public function testFilterGroupsOverriding() { $view = Views::
getView('test_filter_groups'
);
$view->
initDisplay();
// mark is as overridden, yes FALSE, means overridden.
$view->displayHandlers->
get('page'
)->
setOverride('filter_groups', FALSE
);
$this->
assertFalse($view->displayHandlers->
get('page'
)->
isDefaulted('filter_groups'
), "Make sure that 'filter_groups' is marked as overridden."
);
$this->
assertFalse($view->displayHandlers->
get('page'
)->
isDefaulted('filters'
), "Make sure that 'filters'' is marked as overridden."
);
} /**
* Tests the getAttachedDisplays method.
*/
public function testGetAttachedDisplays() { $view = Views::
getView('test_get_attach_displays'
);
// Both the feed_1 and the feed_2 display are attached to the page display.
$view->
setDisplay('page_1'
);