| 7 form.test | FormsElementsTableSelectFunctionalTest::testEmptyText() |
| 8 form.test | FormsElementsTableSelectFunctionalTest::testEmptyText() |
Test the display of the #empty text when #options is an empty array.
File
- modules/
simpletest/ tests/ form.test, line 771 - Unit tests for the Drupal Form API.
Code
function testEmptyText() {
$this->drupalGet('form_test/tableselect/empty-text');
$this->assertText(t('Empty text.'), t('Empty text should be displayed.'));
}
Login or register to post comments