public function FormCacheTest::setUp

Sets up Drupal unit test environment.

Overrides DrupalUnitTestBase::setUp

See also

DrupalUnitTestBase::$modules

DrupalUnitTestBase

File

drupal/core/modules/system/lib/Drupal/system/Tests/Form/FormCacheTest.php, line 32
Contains \Drupal\system\Tests\Form\FormCacheTest.

Class

FormCacheTest
Tests form caching.

Namespace

Drupal\system\Tests\Form

Code

public function setUp() {
  parent::setUp();
  $this
    ->installSchema('system', array(
    'key_value_expire',
  ));
  $this->form_build_id = $this
    ->randomName();
  $this->form = array(
    '#property' => $this
      ->randomName(),
  );
  $this->form_state = form_state_defaults();
  $this->form_state['example'] = $this
    ->randomName();
}