You are here

function PanelizerTestHelper::getDefaultPanelizerDisplay in Panelizer 7.3

Get the default Panelizer display for a specific entity bundle.

Parameters

string $entity_type:

string $bundle:

string $view_mode:

File

tests/panelizer.helper.test, line 91
Test integration for the panelizer module.

Class

PanelizerTestHelper
This will be extended by other tests to simplify them and make the code more reusable.

Code

function getDefaultPanelizerDisplay($entity_type, $bundle, $view_mode) {
  $handler = panelizer_entity_plugin_get_handler($entity_type);
  $this
    ->verbose(print_r($handler, TRUE));
  $this
    ->assertTrue($handler
    ->is_panelized($bundle), 'Entity bundle is panelized.');
  return $handler
    ->get_default_display($bundle, $view_mode);
}