function test_form_id in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Form/FormTestBase.php \Drupal\Tests\Core\Form\test_form_id()
1 call to test_form_id()
- TestForm::buildForm in core/
tests/ Drupal/ Tests/ Core/ Form/ FormBuilderTest.php - Form constructor.
26 string references to 'test_form_id'
- FormBuilderTest::providerTestFormTokenCacheability in core/
tests/ Drupal/ Tests/ Core/ Form/ FormBuilderTest.php - Data provider for testFormTokenCacheability.
- FormBuilderTest::testBuildFormWithObject in core/
tests/ Drupal/ Tests/ Core/ Form/ FormBuilderTest.php - Tests the buildForm() method with a form object.
- FormBuilderTest::testBuildFormWithString in core/
tests/ Drupal/ Tests/ Core/ Form/ FormBuilderTest.php - Tests the buildForm() method with a string based form ID.
- FormBuilderTest::testBuildFormWithTriggeringElement in core/
tests/ Drupal/ Tests/ Core/ Form/ FormBuilderTest.php - Tests whether the triggering element is properly identified.
- FormBuilderTest::testExceededFileSize in core/
tests/ Drupal/ Tests/ Core/ Form/ FormBuilderTest.php - @covers ::buildForm
File
- core/
tests/ Drupal/ Tests/ Core/ Form/ FormTestBase.php, line 325 - Contains \Drupal\Tests\Core\Form\FormTestBase.
Namespace
Drupal\Tests\Core\FormCode
function test_form_id() {
$form['test'] = array(
'#type' => 'textfield',
'#title' => 'Test',
);
$form['options'] = array(
'#type' => 'radios',
'#options' => array(
'foo' => 'foo',
'bar' => 'bar',
),
);
$form['value'] = array(
'#type' => 'value',
'#value' => 'bananas',
);
$form['actions'] = array(
'#type' => 'actions',
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => 'Submit',
);
return $form;
}