You are here

function ElementsTableSelectTest::testMultipleFalseSubmit in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/system/src/Tests/Form/ElementsTableSelectTest.php \Drupal\system\Tests\Form\ElementsTableSelectTest::testMultipleFalseSubmit()

Test submission of values when #multiple is FALSE.

File

core/modules/system/src/Tests/Form/ElementsTableSelectTest.php, line 123
Contains \Drupal\system\Tests\Form\ElementsTableSelectTest.

Class

ElementsTableSelectTest
Tests the tableselect form element for expected behavior.

Namespace

Drupal\system\Tests\Form

Code

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