You are here

protected function NestedArrayTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Component/Utility/NestedArrayTest.php \Drupal\Tests\Component\Utility\NestedArrayTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Component/Utility/NestedArrayTest.php, line 36
Contains \Drupal\Tests\Component\Utility\NestedArrayTest.

Class

NestedArrayTest
@coversDefaultClass \Drupal\Component\Utility\NestedArray @group Utility

Namespace

Drupal\Tests\Component\Utility

Code

protected 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',
  );
}