diff -u b/core/lib/Drupal/Core/Config/StorageComparer.php b/core/lib/Drupal/Core/Config/StorageComparer.php --- b/core/lib/Drupal/Core/Config/StorageComparer.php +++ b/core/lib/Drupal/Core/Config/StorageComparer.php @@ -143,7 +143,7 @@ * * The list of deletes is sorted so that dependencies are deleted after * configuration entities that depend on them. For example, field instances - * should be deleted before fields. + * should be deleted after fields. */ protected function addChangelistDelete() { $deletes = array_diff(array_reverse($this->targetNames), $this->sourceNames); @@ -154,8 +154,8 @@ * Creates the create changelist. * * The list of creates is sorted so that dependencies are created before - * configuration entities that depend on them. For example, field instances - * should be created after fields. + * configuration entities that depend on them. For example, fields + * should be created before field instances. */ protected function addChangelistCreate() { $creates = array_diff($this->sourceNames, $this->targetNames); @@ -166,8 +166,8 @@ * Creates the update changelist. * * The list of updates is sorted so that dependencies are created before - * configuration entities that depend on them. For example, field instances - * should be updated after fields. + * configuration entities that depend on them. For example, fields + * should be updated before field instances. */ protected function addChangelistUpdate() { foreach (array_intersect($this->sourceNames, $this->targetNames) as $name) { diff -u b/core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php b/core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php --- b/core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php +++ b/core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php @@ -87,8 +87,8 @@ ), ), // Config entity not which has no dependencies on configuration. - 'views.view.frontpage' => array( - 'id' => 'frontpage', + 'views.view.test_view' => array( + 'id' => 'test_view', 'uuid' => $uuid->generate(), 'dependencies' => array( 'module' => array( @@ -137,7 +137,7 @@ $target_data = $source_data = $this->getConfigData(); unset($target_data['field.field.node.body']); unset($target_data['field.instance.node.article.body']); - unset($target_data['views.view.frontpage']); + unset($target_data['views.view.test_view']); $this->sourceStorage->expects($this->once()) ->method('listAll') @@ -155,7 +155,7 @@ $this->storageComparer->createChangelist(); $expected = array( 'field.field.node.body', - 'views.view.frontpage', + 'views.view.test_view', 'field.instance.node.article.body', ); $this->assertEquals($expected, $this->storageComparer->getChangelist('create')); @@ -170,7 +170,7 @@ $target_data = $source_data = $this->getConfigData(); unset($source_data['field.field.node.body']); unset($source_data['field.instance.node.article.body']); - unset($source_data['views.view.frontpage']); + unset($source_data['views.view.test_view']); $this->sourceStorage->expects($this->once()) ->method('listAll') @@ -188,7 +188,7 @@ $this->storageComparer->createChangelist(); $expected = array( 'field.instance.node.article.body', - 'views.view.frontpage', + 'views.view.test_view', 'field.field.node.body', ); $this->assertEquals($expected, $this->storageComparer->getChangelist('delete'));