1.20.x form.test FormsElementsTableSelectFunctionalTest::testMultipleFalseSubmit()

Test submission of values when #multiple is FALSE.

File

modules/simpletest/tests/form.test, line 973
Unit tests for the Backdrop Form API.

Class

FormsElementsTableSelectFunctionalTest
Test the tableselect form element for expected behavior.

Code

function testMultipleFalseSubmit() {
  $edit['tableselect'] = 'row1';
  $this->backdropPost('form_test/tableselect/multiple-false', $edit, 'Submit');
  $this->assertText(t('Submitted: row1'), 'Selected radio button');
}