protected function FormCacheTest::setUp in Drupal 8
Same name in this branch
- 8 core/tests/Drupal/Tests/Core/Form/FormCacheTest.php \Drupal\Tests\Core\Form\FormCacheTest::setUp()
- 8 core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php \Drupal\KernelTests\Core\Form\FormCacheTest::setUp()
Same name and namespace in other branches
- 9 core/tests/Drupal/KernelTests/Core/Form/FormCacheTest.php \Drupal\KernelTests\Core\Form\FormCacheTest::setUp()
Overrides KernelTestBase::setUp
File
- core/
tests/ Drupal/ KernelTests/ Core/ Form/ FormCacheTest.php, line 41
Class
- FormCacheTest
- Tests \Drupal::formBuilder()->setCache() and \Drupal::formBuilder()->getCache().
Namespace
Drupal\KernelTests\Core\FormCode
protected function setUp() {
parent::setUp();
$this
->installSchema('system', [
'key_value_expire',
]);
$this->formBuildId = $this
->randomMachineName();
$this->form = [
'#property' => $this
->randomMachineName(),
];
$this->formState = new FormState();
$this->formState
->set('example', $this
->randomMachineName());
}