Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / views / tests / src / Unit / PluginTypeListTest.php
1 <?php
2
3 namespace Drupal\Tests\views\Unit;
4
5 use Drupal\views\ViewExecutable;
6 use Drupal\Tests\UnitTestCase;
7
8 /**
9  * Tests that list of plugin is correct.
10  *
11  * @group views
12  */
13 class PluginTypeListTest extends UnitTestCase {
14
15   /**
16    * Tests the plugins list is correct.
17    */
18   public function testPluginList() {
19     $plugin_list = [
20       'access',
21       'area',
22       'argument',
23       'argument_default',
24       'argument_validator',
25       'cache',
26       'display_extender',
27       'display',
28       'exposed_form',
29       'field',
30       'filter',
31       'join',
32       'pager',
33       'query',
34       'relationship',
35       'row',
36       'sort',
37       'style',
38       'wizard',
39     ];
40
41     $diff = array_diff($plugin_list, ViewExecutable::getPluginTypes());
42     $this->assertTrue(empty($diff), 'The plugin list is correct');
43   }
44
45 }