You are here

public function ElementsTableSelectTest::testMultipleFalseSubmit in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/Form/ElementsTableSelectTest.php \Drupal\Tests\system\Functional\Form\ElementsTableSelectTest::testMultipleFalseSubmit()
  2. 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\Form

Code

public function testMultipleFalseSubmit() {
  $edit['tableselect'] = 'row1';
  $this
    ->drupalGet('form_test/tableselect/multiple-false');
  $this
    ->submitForm($edit, 'Submit');
  $this
    ->assertSession()
    ->pageTextContains('Submitted: row1');
}