public function WebformViewsSelectViewEnabledTestCase::testEnabledView in Webform Views Select 7
Test that a enabled view is listed as an options source.
File
- tests/
webform_views_select.test, line 50 - Contains WebformViewsSelectViewEnabledTestCase.
Class
- WebformViewsSelectViewEnabledTestCase
- Test that a view only appears in the webform select list if it is enabled.
Code
public function testEnabledView() {
$items = webform_views_select_webform_select_options_info();
$this
->assertTrue(isset($items['webform_views_select_test_view-webform_select_1']), 'Enabled view is listed in the select options info.');
}