You are here

public function GroupTypeTest::testGetInstalledContentPlugin in Group 8

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

Tests the retrieval of an installed plugin.

@covers ::getContentPlugin

File

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

Class

GroupTypeTest
Tests the general behavior of group type entities.

Namespace

Drupal\Tests\group\Kernel

Code

public function testGetInstalledContentPlugin() {
  $plugin = $this->groupType
    ->getContentPlugin('group_membership');
  $this
    ->assertInstanceOf('\\Drupal\\group\\Plugin\\GroupContentEnablerInterface', $plugin, 'Loaded the group_membership plugin.');
}