function ConfigDependencyManagerTest::testSortAll

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Config/ConfigDependencyManagerTest.php \Drupal\Tests\Core\Config\ConfigDependencyManagerTest::testSortAll()
  2. 10 core/tests/Drupal/Tests/Core/Config/ConfigDependencyManagerTest.php \Drupal\Tests\Core\Config\ConfigDependencyManagerTest::testSortAll()
  3. 11.x 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());
}

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