public function GroupTypeTest::testGetInstalledContentPlugins in Group 2.0.x
Same name and namespace in other branches
- 8 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\KernelCode
public function testGetInstalledContentPlugins() {
$plugins = $this->groupType
->getInstalledContentPlugins();
$this
->assertInstanceOf('\\Drupal\\group\\Plugin\\Group\\Relation\\GroupRelationCollection', $plugins, 'Loaded the installed plugin collection.');
$this
->assertCount(1, $plugins, 'Plugin collection has one plugin instance.');
}