function CategorizingPluginManagerTraitTest::testGetSortedDefinitions
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php \Drupal\Tests\Core\Plugin\CategorizingPluginManagerTraitTest::testGetSortedDefinitions()
- 10 core/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php \Drupal\Tests\Core\Plugin\CategorizingPluginManagerTraitTest::testGetSortedDefinitions()
- 9 core/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php \Drupal\Tests\Core\Plugin\CategorizingPluginManagerTraitTest::testGetSortedDefinitions()
- 8.9.x core/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php \Drupal\Tests\Core\Plugin\CategorizingPluginManagerTraitTest::testGetSortedDefinitions()
Tests get sorted definitions.
File
-
core/
tests/ Drupal/ Tests/ Core/ Plugin/ CategorizingPluginManagerTraitTest.php, line 69
Class
Namespace
Drupal\Tests\Core\PluginCode
public function testGetSortedDefinitions() : void {
$sorted = $this->pluginManager
->getSortedDefinitions();
$this->assertSame([
'apple',
'mango',
'cucumber',
], array_keys($sorted));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.