You are here

public function ConfigDependencyManagerTest::testSortAll in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Config/ConfigDependencyManagerTest.php \Drupal\Tests\Core\Config\ConfigDependencyManagerTest::testSortAll()
  2. 9 core/tests/Drupal/Tests/Core/Config/ConfigDependencyManagerTest.php \Drupal\Tests\Core\Config\ConfigDependencyManagerTest::testSortAll()

@dataProvider providerTestSortAll

File

core/tests/Drupal/Tests/Core/Config/ConfigDependencyManagerTest.php, line 20

Class

ConfigDependencyManagerTest
Tests the ConfigDependencyManager class.

Namespace

Drupal\Tests\Core\Config

Code

public function testSortAll(array $data, array $expected_order) {
  $dependency_manager = new ConfigDependencyManager();
  $dependency_manager
    ->setData($data);
  $this
    ->assertEquals($expected_order, $dependency_manager
    ->sortAll());
}