function FormsElementsTableSelectFunctionalTest::testEmptyText
Test the display of the #empty text when #options is an empty array.
Archivo
- drupal-7.x/
modules/ simpletest/ tests/ form.test, line 832 - Unit tests for the Drupal Form API.
Class
- FormsElementsTableSelectFunctionalTest
- Test the tableselect form element for expected behavior.
Código
function testEmptyText() {
$this->drupalGet('form_test/tableselect/empty-text');
$this->assertText(t('Empty text.'), 'Empty text should be displayed.');
}