function CategorizingPluginManagerTraitTest::testGetCategories
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php \Drupal\Tests\Core\Plugin\CategorizingPluginManagerTraitTest::testGetCategories()
- 10 core/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php \Drupal\Tests\Core\Plugin\CategorizingPluginManagerTraitTest::testGetCategories()
- 11.x core/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php \Drupal\Tests\Core\Plugin\CategorizingPluginManagerTraitTest::testGetCategories()
@covers ::getCategories
File
-
core/
tests/ Drupal/ Tests/ Core/ Plugin/ CategorizingPluginManagerTraitTest.php, line 49
Class
- CategorizingPluginManagerTraitTest
- @coversDefaultClass \Drupal\Core\Plugin\CategorizingPluginManagerTrait @group Plugin
Namespace
Drupal\Tests\Core\PluginCode
public function testGetCategories() {
$this->assertSame([
'fruits',
'vegetables',
], array_values($this->pluginManager
->getCategories()));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.