You are here

public function GroupTypeTest::testGetInstalledContentPlugins in Group 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Kernel/GroupTypeTest.php \Drupal\Tests\group\Kernel\GroupTypeTest::testGetInstalledContentPlugins()

Tests the retrieval of the collection of installed plugins.

@covers ::getInstalledContentPlugins

File

tests/src/Kernel/GroupTypeTest.php, line 57

Class

GroupTypeTest
Tests the general behavior of group type entities.

Namespace

Drupal\Tests\group\Kernel

Code

public function testGetInstalledContentPlugins() {
  $plugins = $this->groupType
    ->getInstalledContentPlugins();
  $this
    ->assertInstanceOf('\\Drupal\\group\\Plugin\\GroupContentEnablerCollection', $plugins, 'Loaded the installed plugin collection.');
  $this
    ->assertCount(1, $plugins, 'Plugin collection has one plugin instance.');
}