public function CategorizingPluginManagerTraitTest::testGetGroupedDefinitions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php \Drupal\Tests\Core\Plugin\CategorizingPluginManagerTraitTest::testGetGroupedDefinitions()
@covers ::getGroupedDefinitions
File
- core/
tests/ Drupal/ Tests/ Core/ Plugin/ CategorizingPluginManagerTraitTest.php, line 67 - Contains \Drupal\Tests\Core\Plugin\CategorizingPluginManagerTraitTest.
Class
- CategorizingPluginManagerTraitTest
- @coversDefaultClass \Drupal\Core\Plugin\CategorizingPluginManagerTrait @group Plugin
Namespace
Drupal\Tests\Core\PluginCode
public function testGetGroupedDefinitions() {
$grouped = $this->pluginManager
->getGroupedDefinitions();
$this
->assertSame(array_keys($grouped), [
'fruits',
'vegetables',
]);
$this
->assertSame(array_keys($grouped['fruits']), [
'apple',
'mango',
]);
$this
->assertSame(array_keys($grouped['vegetables']), [
'cucumber',
]);
}