function HeadLinksTestCase::setUp

Overrides DrupalWebTestCase::setUp

File

page_manager/tests/head_links.test, line 27

Class

HeadLinksTestCase
Test the head links.

Code

public function setUp() {
    parent::setUp('page_manager');
    // First add an override for "node/%node".
    variable_set('page_manager_node_view_disabled', FALSE);
    $record = (object) array(
        'name' => 'node_view__http_response_707659df-062d-4252-8c2a-22a8e0289cd4',
        'task' => 'node_view',
        'subtask' => '',
        'handler' => 'http_response',
        'weight' => '1',
        'conf' => array(
            'title' => 'Test',
            'contexts' => array(
                0 => array(
                    'identifier' => 'String',
                    'keyword' => 'string',
                    'name' => 'string',
                    'string' => 'Test',
                    'id' => 1,
                ),
            ),
            'relationships' => array(),
            'code' => '404',
            'destination' => '',
            'name' => '',
        ),
    );
    page_manager_save_task_handler($record);
    menu_rebuild();
}