// Test the plugin get methods.
$display_plugin =
$view->
getDisplay();
$this->
assertInstanceOf(DefaultDisplay::
class,
$display_plugin);
$this->
assertInstanceOf(DefaultDisplay::
class,
$view->display_handler
);
$this->
assertSame($display_plugin,
$view->
getDisplay(), 'The same display plugin instance was returned.'
);
$style_plugin =
$view->
getStyle();
$this->
assertInstanceOf(DefaultStyle::
class,
$style_plugin);
$this->
assertInstanceOf(DefaultStyle::
class,
$view->style_plugin
);
$this->
assertSame($style_plugin,
$view->
getStyle(), 'The same style plugin instance was returned.'
);
$pager_plugin =
$view->
getPager();
$this->
assertInstanceOf(PagerPluginBase::
class,
$pager_plugin);
$this->
assertInstanceOf(PagerPluginBase::
class,
$view->pager
);
$this->
assertSame($pager_plugin,
$view->
getPager(), 'The same pager plugin instance was returned.'
);
$query_plugin =
$view->
getQuery();
$this->
assertInstanceOf(QueryPluginBase::
class,
$query_plugin);
$this->
assertInstanceOf(QueryPluginBase::
class,
$view->query
);
$this->
assertSame($query_plugin,
$view->
getQuery(), 'The same query plugin instance was returned.'
);
} /**
* Tests the generation of the executable object.
*/