
| Current Path : /var/www/html/dataninja.cn/core/modules/system/tests/src/Kernel/Form/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/dataninja.cn/core/modules/system/tests/src/Kernel/Form/FormObjectTest.php |
<?php
namespace Drupal\Tests\system\Kernel\Form;
use Drupal\form_test\FormTestObject;
use Drupal\KernelTests\ConfigFormTestBase;
/**
* Tests building a form from an object.
*
* @group Form
*/
class FormObjectTest extends ConfigFormTestBase {
/**
* Modules to enable.
*
* @var array
*/
public static $modules = ['form_test'];
protected function setUp() {
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',
],
];
}
}