function FormsElementsTableSelectFunctionalTest::testEmptyText in SimpleTest 7
Test the display of the #empty text when #options is an empty array.
File
- tests/
form.test, line 186 - Unit tests for the Drupal Form API.
Class
- FormsElementsTableSelectFunctionalTest
- Test the tableselect form element for expected behavior.
Code
function testEmptyText() {
$this
->drupalGet('form_test/tableselect/empty-text');
$this
->assertText(t('Empty text.'), t('Empty text should be displayed.'));
}