function NestedArrayUnitTest::setUp

File

drupal/core/tests/Drupal/Tests/Core/NestedArrayUnitTest.php, line 38
Contains \Drupal\Core\NestedArrayUnitTest.

Class

NestedArrayUnitTest
Tests the NestedArray helper class.

Namespace

Drupal\Tests\Core

Code

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

  // Create a form structure with a nested element.
  $this->form['details']['element'] = array(
    '#value' => 'Nested element',
  );

  // Set up parent array.
  $this->parents = array(
    'details',
    'element',
  );
}