public function ElementsTableSelectTest::testMultipleFalseSubmit in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/src/Functional/Form/ElementsTableSelectTest.php \Drupal\Tests\system\Functional\Form\ElementsTableSelectTest::testMultipleFalseSubmit()
Test submission of values when #multiple is FALSE.
File
- core/
modules/ system/ tests/ src/ Functional/ Form/ ElementsTableSelectTest.php, line 123
Class
- ElementsTableSelectTest
- Tests the tableselect form element for expected behavior.
Namespace
Drupal\Tests\system\Functional\FormCode
public function testMultipleFalseSubmit() {
$edit['tableselect'] = 'row1';
$this
->drupalPostForm('form_test/tableselect/multiple-false', $edit, 'Submit');
$this
->assertSession()
->pageTextContains('Submitted: row1', 'Selected radio button');
}