protected function FormObjectTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Kernel/Form/FormObjectTest.php \Drupal\Tests\system\Kernel\Form\FormObjectTest::setUp()
Overrides KernelTestBase::setUp
File
- core/
modules/ system/ tests/ src/ Kernel/ Form/ FormObjectTest.php, line 22
Class
- FormObjectTest
- Tests building a form from an object.
Namespace
Drupal\Tests\system\Kernel\FormCode
protected function setUp() : void {
parent::setUp();
$this->form = new FormTestObject($this->container
->get('config.factory'));
$this->values = [
'bananas' => [
'#value' => $this
->randomString(10),
'#config_name' => 'form_test.object',
'#config_key' => 'bananas',
],
];
}