function FormsElementsTableSelectFunctionalTest::testMultipleFalseSubmit
7.x form.test | FormsElementsTableSelectFunctionalTest::testMultipleFalseSubmit() |
Test submission of values when #multiple is FALSE.
File
- drupal-7.x/
modules/ simpletest/ tests/ form.test, line 865 - Unit tests for the Drupal Form API.
Class
- FormsElementsTableSelectFunctionalTest
- Test the tableselect form element for expected behavior.
Code
function testMultipleFalseSubmit() {
$edit['tableselect'] = 'row1';
$this->drupalPost('form_test/tableselect/multiple-false', $edit, 'Submit');
$this->assertText(t('Submitted: row1'), 'Selected radio button');
}