public function PluginTypeListTest::testPluginList in Views (for Drupal 7) 8.3
Tests the plugins list is correct.
File
- lib/
Drupal/ views/ Tests/ PluginTypeListTest.php, line 28 - Definition of Drupal\views\Tests\PluginTypeListTest.
Class
- PluginTypeListTest
- Class for plugin list testing.
Namespace
Drupal\views\TestsCode
public function testPluginList() {
$plugin_list = array(
'access',
'area',
'argument',
'argument_default',
'argument_validator',
'cache',
'display_extender',
'display',
'exposed_form',
'field',
'filter',
'join',
'pager',
'query',
'relationship',
'row',
'sort',
'style',
'wizard',
);
$diff = array_diff($plugin_list, ViewExecutable::getPluginTypes());
$this
->assertTrue(empty($diff), 'The plugin list is correct');
}