public function ConfigInspectorManagerTest::testGetDefinitionsMethod in Configuration Inspector 8
Tests retrieving definitions list.
File
- tests/
src/ Kernel/ ConfigInspectorManagerTest.php, line 23
Class
- ConfigInspectorManagerTest
- Tests configuration inspector manager.
Namespace
Drupal\Tests\config_inspector\KernelCode
public function testGetDefinitionsMethod() {
$manager = \Drupal::service('plugin.manager.config_inspector');
$this
->assertInstanceOf(ConfigInspectorManager::class, $manager);
$this
->assertArrayHasKey('label', $manager
->getDefinition('user.settings'));
}