1.20.x form.test FormsElementsTableSelectFunctionalTest::testEmptyText()

Test the display of the #empty text when #options is an empty array.

File

modules/simpletest/tests/form.test, line 940
Unit tests for the Backdrop Form API.

Class

FormsElementsTableSelectFunctionalTest
Test the tableselect form element for expected behavior.

Code

function testEmptyText() {
  $this->backdropGet('form_test/tableselect/empty-text');
  $this->assertText(t('Empty text.'), 'Empty text should be displayed.');
}