You are here

property MenuTreeOutputTestCase::$tree_data in Drupal 7

Dummy link structure acceptable for menu_tree_output().

File

modules/simpletest/tests/menu.test, line 990
Provides SimpleTests for menu.inc.

Class

MenuTreeOutputTestCase
Menu tree output related tests.

Code

var $tree_data = array(
  '1' => array(
    'link' => array(
      'menu_name' => 'main-menu',
      'mlid' => 1,
      'hidden' => 0,
      'has_children' => 1,
      'title' => 'Item 1',
      'in_active_trail' => 1,
      'access' => 1,
      'href' => 'a',
      'localized_options' => array(
        'attributes' => array(
          'title' => '',
        ),
      ),
    ),
    'below' => array(
      '2' => array(
        'link' => array(
          'menu_name' => 'main-menu',
          'mlid' => 2,
          'hidden' => 0,
          'has_children' => 1,
          'title' => 'Item 2',
          'in_active_trail' => 1,
          'access' => 1,
          'href' => 'a/b',
          'localized_options' => array(
            'attributes' => array(
              'title' => '',
            ),
          ),
        ),
        'below' => array(
          '3' => array(
            'link' => array(
              'menu_name' => 'main-menu',
              'mlid' => 3,
              'hidden' => 0,
              'has_children' => 0,
              'title' => 'Item 3',
              'in_active_trail' => 0,
              'access' => 1,
              'href' => 'a/b/c',
              'localized_options' => array(
                'attributes' => array(
                  'title' => '',
                ),
              ),
            ),
            'below' => array(),
          ),
          '4' => array(
            'link' => array(
              'menu_name' => 'main-menu',
              'mlid' => 4,
              'hidden' => 0,
              'has_children' => 0,
              'title' => 'Item 4',
              'in_active_trail' => 0,
              'access' => 1,
              'href' => 'a/b/d',
              'localized_options' => array(
                'attributes' => array(
                  'title' => '',
                ),
              ),
            ),
            'below' => array(),
          ),
        ),
      ),
    ),
  ),
  '5' => array(
    'link' => array(
      'menu_name' => 'main-menu',
      'mlid' => 5,
      'hidden' => 1,
      'has_children' => 0,
      'title' => 'Item 5',
      'in_active_trail' => 0,
      'access' => 1,
      'href' => 'e',
      'localized_options' => array(
        'attributes' => array(
          'title' => '',
        ),
      ),
    ),
    'below' => array(),
  ),
  '6' => array(
    'link' => array(
      'menu_name' => 'main-menu',
      'mlid' => 6,
      'hidden' => 0,
      'has_children' => 0,
      'title' => 'Item 6',
      'in_active_trail' => 0,
      'access' => 0,
      'href' => 'f',
      'localized_options' => array(
        'attributes' => array(
          'title' => '',
        ),
      ),
    ),
    'below' => array(),
  ),
  '7' => array(
    'link' => array(
      'menu_name' => 'main-menu',
      'mlid' => 7,
      'hidden' => 0,
      'has_children' => 0,
      'title' => 'Item 7',
      'in_active_trail' => 0,
      'access' => 1,
      'href' => 'g',
      'localized_options' => array(
        'attributes' => array(
          'title' => '',
        ),
      ),
    ),
    'below' => array(),
  ),
);