class PluginTypeListTest in Views (for Drupal 7) 8.3
Class for plugin list testing.
Hierarchy
- class \Drupal\views\Tests\PluginTypeListTest extends \Drupal\simpletest\UnitTestBase
Expanded class hierarchy of PluginTypeListTest
File
- lib/
Drupal/ views/ Tests/ PluginTypeListTest.php, line 15 - Definition of Drupal\views\Tests\PluginTypeListTest.
Namespace
Drupal\views\TestsView source
class PluginTypeListTest extends UnitTestBase {
public static function getInfo() {
return array(
'name' => 'Plugin list',
'description' => 'Tests that list of plugin is correct.',
'group' => 'Views',
);
}
/**
* Tests the plugins list is correct.
*/
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');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginTypeListTest:: |
public static | function | ||
PluginTypeListTest:: |
public | function | Tests the plugins list is correct. |