function HandlerTest::testErrorMissingHelp
Ensures that no missing help text is shown.
See also
File
- 
              core/
modules/ views_ui/ tests/ src/ Functional/ HandlerTest.php, line 264  
Class
- HandlerTest
 - Tests handler UI for views.
 
Namespace
Drupal\Tests\views_ui\FunctionalCode
public function testErrorMissingHelp() {
  // Test that the error message is not shown for entity fields but an empty
  // description field is shown instead.
  $this->drupalGet('admin/structure/views/nojs/add-handler/test_node_view/default/field');
  $this->assertNoText('Error: missing help');
  $this->assertRaw('<td class="description"></td>', 'Empty description found');
  // Test that no error message is shown for other fields.
  $this->drupalGet('admin/structure/views/nojs/add-handler/test_view_empty/default/field');
  $this->assertNoText('Error: missing help');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.