Test the display of the #empty text when #options is an empty array.
File
- drupal/core/modules/system/lib/Drupal/system/Tests/Form/ElementsTableSelectTest.php, line 95
- Definition of Drupal\system\Tests\Form\ElementsTableSelectTest.
Class
- ElementsTableSelectTest
- Test the tableselect form element for expected behavior.
Namespace
Drupal\system\Tests\Form
Code
function testEmptyText() {
$this
->drupalGet('form_test/tableselect/empty-text');
$this
->assertText(t('Empty text.'), 'Empty text should be displayed.');
}