Test the display of the #empty text when #options is an empty array.
function testEmptyText() { $this ->drupalGet('form_test/tableselect/empty-text'); $this ->assertText(t('Empty text.'), 'Empty text should be displayed.'); }