1.20.x common.test CommonBackdropSortUnitTest::setUp()

Sets up unit test environment.

Unlike BackdropWebTestCase::setUp(), BackdropUnitTestCase::setUp() does not install modules because tests are performed without accessing the database. Any required files must be explicitly included by the child class setUp() method.

Overrides BackdropUnitTestCase::setUp

File

modules/simpletest/tests/common.test, line 3241
Tests for common.inc functionality.

Class

CommonBackdropSortUnitTest
Test that backdrop_sort() works correctly.

Code

function setUp() {
  parent::setUp();

  $this->test_array = array(
    'breadcrumb' => array(
      'info' => 'Breadcrumb',
      'weight' => 4,
      'description' => 'A trail of links from the homepage to the current page.',
      'render last' => TRUE,
    ),
    'main-menu' => array(
      'info' => 'Primary navigation',
      'weight' => 2,
      'description' => 'A hierarchical list of links for the Primary navigation.',
    ),
    'recent' => array(
      'info' => 'Recent content',
      'weight' => 3,
      'description' => 'A list of recently published content.',
    ),
    'content' => array(
      'info' => 'Content block',
      'weight' => 1,
      'description' => 'Displays a node in a block.',
      'class' => 'NodeBlock',
    ),
    'form' => array(
      'info' => 'Search form',
      'weight' => -2,
      'description' => 'The search form for searching site content.',
    ),
    'custom_block' => array(
      'info' => 'Add a custom block',
      'weight' => -1,
      'description' => 'A basic block for adding custom text.',
      'class' => 'BlockText',
    ),
  );
}