ConfigInspectorManagerTest.php in Configuration Inspector 8
Namespace
Drupal\Tests\config_inspector\KernelFile
tests/src/Kernel/ConfigInspectorManagerTest.phpView 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
Name | Description |
---|---|
ConfigInspectorManagerTest | Tests configuration inspector manager. |