Skip to content
Snippets Groups Projects
Commit 0566cf0b authored by Jacinto Capote Robles's avatar Jacinto Capote Robles Committed by Tim Plunkett
Browse files

Issue #1784072 by fastangel | tim.plunkett: Add a unit test for View::getPluginTypes().

parent 7a5b9028
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
<?php
/**
* @file
* Definition of Drupal\views\Tests\PluginTypeListTest.
*/
namespace Drupal\views\Tests;
use Drupal\views\ViewExecutable;
use Drupal\simpletest\UnitTestBase;
/**
* Class for plugin list testing.
*/
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');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment