function PluginTypeListTest::testPluginList
Same name in other branches
- 9 core/modules/views/tests/src/Unit/PluginTypeListTest.php \Drupal\Tests\views\Unit\PluginTypeListTest::testPluginList()
- 8.9.x core/modules/views/tests/src/Unit/PluginTypeListTest.php \Drupal\Tests\views\Unit\PluginTypeListTest::testPluginList()
- 11.x core/modules/views/tests/src/Unit/PluginTypeListTest.php \Drupal\Tests\views\Unit\PluginTypeListTest::testPluginList()
Tests the plugins list is correct.
File
-
core/
modules/ views/ tests/ src/ Unit/ PluginTypeListTest.php, line 20
Class
- PluginTypeListTest
- Tests that list of plugin is correct.
Namespace
Drupal\Tests\views\UnitCode
public function testPluginList() : void {
$plugin_list = [
'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->assertEmpty($diff);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.