You are here

function PanelizerTestHelper::simpleEnablePage in Panelizer 7.3

Enable a Page Manager page handler.

Parameters

string $page_name: The Page Manager page handler that needs to be enabled.

9 calls to PanelizerTestHelper::simpleEnablePage()
PanelizerExportablesTest::setUp in tests/panelizer.exportables.test
Sets up a Drupal site for running functional and integration tests.
PanelizerNodeContentTranslationTest::testContentTranslation in tests/panelizer.node_content_translation.test
Verify that when a node is translated the customized Panelizer display is cloned to the new node.
PanelizerNodeRevisionTest::testRevisionHandling in tests/panelizer.node_revisions.test
Confirm various aspects of revision handling work correctly.
PanelizerNodeTest::testCloningDefaults in tests/panelizer.node.test
Make sure that cloning a default display works correctly.
PanelizerNodeTest::testNodeCustomDisplay in tests/panelizer.node.test
Confirm that overriding a default display works correctly.

... See full list

File

tests/panelizer.helper.test, line 77
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 simpleEnablePage($page_name) {
  $page = page_manager_get_page_cache($page_name);
  $function = ctools_plugin_get_function($page->subtask, 'enable callback');
  $function($page, FALSE);
  menu_rebuild();
}