You are here

public function GroupTypeTest::testGetInstalledContentPlugin in Group 2.0.x

Same name and namespace in other branches
  1. 8 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\\Group\\Relation\\GroupRelationInterface', $plugin, 'Loaded the group_membership plugin.');
}