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