You are here

class PluginTypeListTest in Views (for Drupal 7) 8.3

Class for plugin list testing.

Hierarchy

Expanded class hierarchy of PluginTypeListTest

File

lib/Drupal/views/Tests/PluginTypeListTest.php, line 15
Definition of Drupal\views\Tests\PluginTypeListTest.

Namespace

Drupal\views\Tests
View 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

Namesort descending Modifiers Type Description Overrides
PluginTypeListTest::getInfo public static function
PluginTypeListTest::testPluginList public function Tests the plugins list is correct.