You are here

ConfigInspectorManagerTest.php in Configuration Inspector 8

File

tests/src/Kernel/ConfigInspectorManagerTest.php
View source
<?php

namespace Drupal\Tests\config_inspector\Kernel;

use Drupal\config_inspector\ConfigInspectorManager;
use Drupal\KernelTests\KernelTestBase;

/**
 * Tests configuration inspector manager.
 *
 * @group config_inspector
 */
class ConfigInspectorManagerTest extends KernelTestBase {

  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'user',
    'config_inspector',
  ];

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

}

Classes

Namesort descending Description
ConfigInspectorManagerTest Tests configuration inspector manager.