$this->
assertInstanceOf(DefaultDisplay::
class,
$executable->displayHandlers->
get('display_test_1'
)->default_display
);
} /**
* Tests the setting/getting of properties.
*/
public function testPropertyMethods() { $view = Views::
getView('test_executable_displays'
);
// Test the setAjaxEnabled() method.
$this->
assertFalse($view->
ajaxEnabled());
$view->
setAjaxEnabled(TRUE
);
$this->
assertTrue($view->
ajaxEnabled());
$view->
setDisplay();
// There should be no pager set initially.
$this->
assertNull($view->
usePager());
// Add a pager, initialize, and test.
$view->displayHandlers->
get('default'
)->
overrideOption('pager',
[ 'type' => 'full',
'options' =>
['items_per_page' => 10
],
]);