You are here

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\Kernel

Code

public function testGetDefinitionsMethod() {
  $manager = \Drupal::service('plugin.manager.config_inspector');
  $this
    ->assertInstanceOf(ConfigInspectorManager::class, $manager);
  $this
    ->assertArrayHasKey('label', $manager
    ->getDefinition('user.settings'));
}