function FormsElementsTableSelectFunctionalTest::testEmptyText
Test the display of the #empty text when #options is an empty array.
File
-
modules/
simpletest/ tests/ form.test, line 920
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.'), 'Empty text should be displayed.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.