function ConfigDependencyTest::testFindConfigEntityDependentsAsEntitiesDeprecation

@group legacy

File

core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php, line 654

Class

ConfigDependencyTest
Tests for configuration dependencies.

Namespace

Drupal\KernelTests\Core\Config

Code

public function testFindConfigEntityDependentsAsEntitiesDeprecation() {
    $this->expectDeprecation('ConfigManagerInterface::findConfigEntityDependentsAsEntities() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Instead you should use ConfigManagerInterface::findConfigEntityDependenciesAsEntities(). See https://www.drupal.org/node/3225357');
    
    /** @var \Drupal\Core\Config\ConfigManagerInterface $config_manager */
    $config_manager = \Drupal::service('config.manager');
    $config_manager->findConfigEntityDependentsAsEntities('module', [
        'system',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.