Loading core/modules/views/tests/src/Functional/Update/ViewsMultiValueFieldUpdateTest.php +5 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,11 @@ protected function setDatabaseDumpFiles() { * Tests views_post_update_field_names_for_multivalue_fields(). */ public function testViewsPostUpdateFieldNamesForMultiValueFields() { $key_value_store = \Drupal::keyValue('post_update'); $existing_update_functions = $key_value_store->get('existing_updates', []); $existing_update_functions = array_diff($existing_update_functions, ['views_post_update_field_names_for_multivalue_fields']); $key_value_store->set('existing_updates', $existing_update_functions); $this->runUpdates(); $this->assertSession()->pageTextContainsOnce('Updates failed for the entity type View, for test_another_broken_config_multi_value, test_broken_config_multi_value. Check the logs.'); Loading core/modules/views/views.post_update.php +1 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ function views_removed_post_updates() { /** * Update field names for multi-value base fields. */ function views_post_update_field_names_for_multivalue_fields_followup(&$sandbox = NULL) { function views_post_update_field_names_for_multivalue_fields(&$sandbox = NULL) { /** @var \Drupal\views\ViewsConfigUpdater $view_config_updater */ $view_config_updater = \Drupal::classResolver(ViewsConfigUpdater::class); $view_config_updater->setDeprecationsEnabled(FALSE); Loading Loading
core/modules/views/tests/src/Functional/Update/ViewsMultiValueFieldUpdateTest.php +5 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,11 @@ protected function setDatabaseDumpFiles() { * Tests views_post_update_field_names_for_multivalue_fields(). */ public function testViewsPostUpdateFieldNamesForMultiValueFields() { $key_value_store = \Drupal::keyValue('post_update'); $existing_update_functions = $key_value_store->get('existing_updates', []); $existing_update_functions = array_diff($existing_update_functions, ['views_post_update_field_names_for_multivalue_fields']); $key_value_store->set('existing_updates', $existing_update_functions); $this->runUpdates(); $this->assertSession()->pageTextContainsOnce('Updates failed for the entity type View, for test_another_broken_config_multi_value, test_broken_config_multi_value. Check the logs.'); Loading
core/modules/views/views.post_update.php +1 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ function views_removed_post_updates() { /** * Update field names for multi-value base fields. */ function views_post_update_field_names_for_multivalue_fields_followup(&$sandbox = NULL) { function views_post_update_field_names_for_multivalue_fields(&$sandbox = NULL) { /** @var \Drupal\views\ViewsConfigUpdater $view_config_updater */ $view_config_updater = \Drupal::classResolver(ViewsConfigUpdater::class); $view_config_updater->setDeprecationsEnabled(FALSE); Loading