public function ElementsTableSelectTest::testEmptyText in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/Form/ElementsTableSelectTest.php \Drupal\Tests\system\Functional\Form\ElementsTableSelectTest::testEmptyText()
- 10 core/modules/system/tests/src/Functional/Form/ElementsTableSelectTest.php \Drupal\Tests\system\Functional\Form\ElementsTableSelectTest::testEmptyText()
Tests the display of the #empty text when #options is an empty array.
File
- core/
modules/ system/ tests/ src/ Functional/ Form/ ElementsTableSelectTest.php, line 90
Class
- ElementsTableSelectTest
- Tests the tableselect form element for expected behavior.
Namespace
Drupal\Tests\system\Functional\FormCode
public function testEmptyText() {
$this
->drupalGet('form_test/tableselect/empty-text');
$this
->assertSession()
->pageTextContains('Empty text.');
}