function FormsElementsTableSelectFunctionalTest::testMultipleFalseSubmit in Drupal 7
Test submission of values when #multiple is FALSE.
File
- modules/
simpletest/ tests/ form.test, line 953 - 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');
}