function FormsElementsTableSelectFunctionalTest::testMultipleFalseSubmit in SimpleTest 7
Test submission of values when #multiple is FALSE.
File
- tests/
form.test, line 219 - 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'), t('Selected radio button'));
}